Endpoints relating to PurchaseOrder objects. The Purchase Order 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 orders
Success
{- "_object": "/api/response",
- "version": 2,
- "data": {
- "_object": "/api/collections/paginated",
- "next": null,
- "data": [
- {
- "_object": "/purchase_order",
- "id": 123456,
- "name": "PO1234",
- "seller": {
- "_object": "/company",
- "id": 1234,
- "name": "Seller Co.",
- "ref": "sellerco"
}, - "buyer": {
- "_object": "/company",
- "id": 2345,
- "name": "Studio Apparel",
- "ref": "studio"
}, - "incoterm": "FOB",
- "transportation_mode": "ocean",
- "cargo_ready_date": "2019-02-04",
- "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",
- "zip": null,
- "unlocode": null,
- "timezone": "China/Shenzhen",
- "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,
- "timezone": "America/Los_Angeles",
- "ref": "studiosantamonica"
}, - "line_items": {
- "_object": "/api/refs/collection",
- "ref_type": "/purchase_orders/line_item",
}, - "memo": "FTZ",
- "archived_at": "2019-06-05T15:32:08.723Z",
- "created_at": "2019-05-15T23:43:23.333Z",
- "updated_at": "2019-06-05T15:32:08.723Z"
}
]
}
}
Retrieves the details of a single purchase order.
Success
error
Success
{- "_object": "/api/response",
- "version": 2,
- "data": {
- "_object": "/purchase_order",
- "id": 123456,
- "name": "PO1234",
- "status": "open",
- "seller": {
- "_object": "/company",
- "id": 1234,
- "name": "Seller Co.",
- "ref": "sellerco"
}, - "buyer": {
- "_object": "/company",
- "id": 2345,
- "name": "Studio Apparel",
- "ref": "studio"
}, - "incoterm": "FOB",
- "transportation_mode": "ocean",
- "cargo_ready_date": "2019-02-04",
- "must_arrive_date": "2019-03-11",
- "origin_port": null,
- "origin_address": {
- "_object": "/address",
- "street_address": "10th YouSong Industrial District",
- "street_address2": "",
- "city": "Shenzhen",
- "state": "44",
- "country": "China",
- "country_code": "CN",
- "zip": null,
- "unlocode": null,
- "timezone": "China/Shenzhen",
- "ref": "sellingcoaddress"
}, - "destination_port": null,
- "destination_address": {
- "_object": "/address",
- "street_address": "1556 20TH ST STE 2D",
- "street_address2": "",
- "city": "SANTA MONICA",
- "state": "CA",
- "country": "United States",
- "country_code": "US",
- "zip": "90404-3465",
- "unlocode": null,
- "timezone": "America/Los_Angeles",
- "ref": "studiosantamonica"
}, - "line_items": {
- "_object": "/api/refs/collection",
- "ref_type": "/purchase_orders/line_item",
}, - "memo": "FTZ",
- "archived_at": "2019-06-05T15:32:08.723Z"
}
}