Endpoints relating to PurchaseOrderLineItem objects. The Purchase Order Line Item endpoints need special permission to access. Please contact your Flexport Sales representative if you are interested in using these endpoints.
Returns a list of purchase order line items
Success
{- "_object": "/api/response",
- "version": 2,
- "data": {
- "_object": "/api/collections/paginated",
- "next": null,
- "data": [
- {
- "_object": "/purchase_orders/line_item",
- "id": 123456,
- "purchase_order": {
- "_object": "/api/refs/object",
- "ref_type": "/purchase_order",
- "id": 12345
}, - "line_item_number": 1,
- "item_key": "item1",
- "product": {
- "_object": "/product",
- "id": 54321,
- "sku": "CHAIRS-BL-1",
- "name": "Black chairs",
- "product_category": "Furniture",
- "country_of_origin": "Vietnam",
- "product_properties": [
- {
- "type": "material",
- "value": "cotton"
}
], - "hs_codes": [
- {
- "description": "Rock lobster and other sea crawfish ( Palinurus spp. Panulirus spp Jasus spp. )",
- "code": "0306.02"
}
]
}, - "units": 20,
- "incoterm": "FOB",
- "transportation_mode": "air",
- "unit_of_measure": "HUN",
- "cargo_ready_date": "2010-02-11",
- "must_arrive_date": "2019-03-11",
- "origin_port": null,
- "origin_address": {
- "_object": "/address",
- "street_address": "10th YouSong Industrial District",
- "street_address2": null,
- "city": "Shenzhen",
- "state": "44",
- "country": "China",
- "country_code": "CN",
- "timezone": "China/Shenzhen",
- "zip": null,
- "unlocode": null,
- "ref": "sellingcoaddress"
}, - "destination_port": null,
- "destination_address": {
- "_object": "/address",
- "street_address": "1556 20TH ST STE 2D",
- "street_address2": null,
- "city": "SANTA MONICA",
- "state": "CA",
- "country": "United States",
- "country_code": "US",
- "zip": "90404-3465",
- "unlocode": null,
- "ref": "studiosantamonica",
- "timezone": "America/Los Angeles"
}, - "hs_codes": [
- {
- "_object": "/hs_code",
- "code": "8309.90.10.00",
- "country_code": "US",
- "description": null
}
], - "unit_cost": {
- "_object": "/money",
- "amount": "121.00",
- "currency_code": "USD"
}, - "booking_line_items": {
- "_object": "/api/refs/collection",
- "ref_type": "/purchase_orders/booking_line_item",
}
}
]
}
}
Returns the details of a purchase order line item
collection of purchase order line items
error
Success
{- "_object": "/api/response",
- "version": 2,
- "data": {
- "_object": "/purchase_orders/line_item",
- "id": 123456,
- "purchase_order": {
- "_object": "/api/refs/object",
- "ref_type": "/purchase_order",
- "id": 12345
}, - "line_item_number": 1,
- "item_key": "item1",
- "product": {
- "_object": "/product",
- "id": 54321,
- "sku": "CHAIRS-BL-1",
- "name": "Black chairs",
- "product_category": "Furniture",
- "country_of_origin": "Vietnam",
- "product_properties": [
- {
- "type": "material",
- "value": "cotton"
}
], - "hs_codes": [
- {
- "description": "Rock lobster and other sea crawfish ( Palinurus spp. Panulirus spp Jasus spp. )",
- "code": "0306.21"
}
]
}, - "units": 20,
- "incoterm": "FOB",
- "transportation_mode": "air",
- "unit_of_measure": "HUN",
- "cargo_ready_date": "2019-02-11",
- "must_arrive_date": "2019-03-11",
- "origin_port": null,
- "origin_address": {
- "_object": "/address",
- "street_address": "10th YouSong Industrial District",
- "street_address2": null,
- "city": "Shenzhen",
- "state": "44",
- "country": "China",
- "country_code": "CN",
- "timezone": "China/Shenzhen",
- "zip": null,
- "unlocode": null,
- "ref": "sellingcoaddress"
}, - "destination_port": null,
- "destination_address": {
- "_object": "/address",
- "street_address": "1556 20TH ST STE 2D",
- "street_address2": null,
- "city": "SANTA MONICA",
- "state": "CA",
- "country": "United States",
- "country_code": "US",
- "zip": "90404-3465",
- "unlocode": null,
- "ref": "studiosantamonica",
- "timezone": "America/Los Angeles"
}, - "hs_codes": [
- {
- "_object": "/hs_code",
- "code": "8309.90.10.00",
- "country_code": "US",
- "description": null
}
], - "unit_cost": {
- "_object": "/money",
- "amount": "121.00",
- "currency_code": "USD"
}, - "booking_line_items": {
- "_object": "/api/refs/collection",
- "ref_type": "/purchase_orders/booking_line_item",
}
}
}