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": 3,
- "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,
- "product": {
- "_object": "/purchase_order/line_item_product",
- "sku": "SKU-123",
- "name": "AC Adapter 12",
- "product_category": "furniture",
- "color": "red",
- "country_of_origin": "US",
- "dangerous": true,
- "ean_ucc_13": "1234567890123",
- "ean_ucc_8": "12345678",
- "lot_number": "123456789",
- "size": "m",
- "style": "classic",
- "upc": "123456789"
}, - "assigned_party": {
- "_object": "/company_entity",
- "id": 9281,
- "name": "My Manufacturer",
- "ref": "manufacturer_1",
- "mailing_address": {
- "_object": "/address",
- "street_address": "1641 Settlers Lane",
- "street_address2": "STE 2918",
- "city": "Albany",
- "state": "MN",
- "country": "United States of America",
- "country_code": "US",
- "zip": "56307",
- "unlocode": "US AL2",
- "timezone": "America/Los_Angeles",
- "ref": null
}, - "vat_numbers": [
- {
- "_object": "company_entity/vat_number",
- "country_code": "US",
- "number": "US 123746396"
}
]
}, - "item_key": "item1",
- "line_type": "main_line",
- "parent_line_key": null,
- "measurements": [
- {
- "_object": "/line_item_measure",
- "measure_type": "length",
- "unit_of_measure": "EA",
- "value": "1.0"
}
], - "units": 20,
- "incoterm": "FOB",
- "transportation_mode": "air",
- "unit_of_measure": "HUN",
- "must_arrive_date": "2019-03-11",
- "origin_port": null,
- "origin_location": {
- "_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,
- "metadata": {
- "size": [
- "M"
]
}, - "destination_addresses": [
- {
- "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"
}, - "units": 1
}
], - "hs_codes": [
- {
- "_object": "/hs_code",
- "code": "8309.90.10.00",
- "country_code": "US"
}
], - "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": 3,
- "data": {
- "_object": "/purchase_orders/line_item",
- "id": 123456,
- "purchase_order": {
- "_object": "/api/refs/object",
- "ref_type": "/purchase_order",
- "id": 12345
}, - "line_item_number": 1,
- "product": {
- "_object": "/purchase_order/line_item_product",
- "sku": "SKU-123",
- "name": "AC Adapter 12",
- "product_category": "furniture",
- "color": "red",
- "country_of_origin": "US",
- "dangerous": true,
- "ean_ucc_13": "1234567890123",
- "ean_ucc_8": "12345678",
- "lot_number": "123456789",
- "size": "m",
- "style": "classic",
- "upc": "123456789"
}, - "assigned_party": {
- "_object": "/company_entity",
- "id": 9281,
- "name": "My Manufacturer",
- "ref": "manufacturer_1",
- "mailing_address": {
- "_object": "/address",
- "street_address": "1641 Settlers Lane",
- "street_address2": "STE 2918",
- "city": "Albany",
- "state": "MN",
- "country": "United States of America",
- "country_code": "US",
- "zip": "56307",
- "unlocode": "US AL2",
- "timezone": "America/Los_Angeles",
- "ref": null
}, - "vat_numbers": [
- {
- "_object": "company_entity/vat_number",
- "country_code": "US",
- "number": "US 123746396"
}
]
}, - "item_key": "item1",
- "line_type": "main_line",
- "parent_line_key": null,
- "measurements": [
- {
- "_object": "/line_item_measure",
- "measure_type": "length",
- "unit_of_measure": "EA",
- "value": "1.0"
}
], - "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_location": {
- "_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,
- "metadata": {
- "size": [
- "M"
]
}, - "destination_addresses": [
- {
- "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"
}, - "units": 1
}
], - "hs_codes": [
- {
- "_object": "/hs_code",
- "code": "8309.90.10.00",
- "country_code": "US"
}
], - "unit_cost": {
- "_object": "/money",
- "amount": "121.00",
- "currency_code": "USD"
}, - "booking_line_items": {
- "_object": "/api/refs/collection",
- "ref_type": "/purchase_orders/booking_line_item",
}
}
}