Download OpenAPI specification:
{- "error": "Refresh Token expired. Please log in to start a new session.",
- "error_code": "refresh_token_expired",
- "devmessage": {
- "class": "string",
- "code": 0,
- "message": "string",
- "location": "string",
- "line": 0
}
}{- "error": "Refresh Token expired. Please log in to start a new session.",
- "error_code": "refresh_token_expired",
- "devmessage": {
- "class": "string",
- "code": 0,
- "message": "string",
- "location": "string",
- "line": 0
}
}Creates a new order with shipping details and order line items.
| test | boolean Default: false Set to true if testing API integration. Set to false if this is a real order. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| pickup | boolean Default: false For advanced integrations only that allow for non-shippable orders. Will automatically be set to false if your integration doesn't support this feature. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | object (Shipping) Where the order is to be shipped / the address of the end-customer. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| provider_order_id required | string The Order ID / Order Number in your system. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| provider_order_date required | string <date-time> The date of the original customer order. Please use UTC. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| provider_order_callback_url required | string <uri> The URL to send the order status updates to. This is a webhook URL. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| provider_sales_channel | string The name of the marketplace / sales channel the order originates from. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| shipping_carrier | string Enum: "usps" "ups" "fedex" "dhl" "passportglobal" "gofo-express" "uniuni" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| shipping_service | string Shipping Carriers and Shipping Services Table
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | Array of objects (OrderLineItemRequest) Items in the order. Each item must have a unique order_line_item_id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects (OrderMetaAssetRequest) Additional files associated with this order. For example, a pre-made shipping label used to ship the fulfillment package, a packing list that is to be included in a fulfillment package, etc. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| location | string Default: "teale" Enum: "teale" "penn" Teale is West Coast of USA; Penn is East Coast of USA |
{- "test": false,
- "pickup": false,
- "shipping": {
- "full_name": "Jason Smith",
- "first_name": "Jason",
- "last_name": "Smith",
- "company_name": "ABC Corp.",
- "street": "123 Main St.",
- "street_2": "string",
- "street_3": "string",
- "city": "Los Angeles",
- "state": "CA",
- "postcode": "90001",
- "country": "US",
- "email": "jsmith@example.com",
- "phone": "3105551212"
}, - "provider_order_id": "1",
- "provider_order_date": "2019-08-24T14:15:22Z",
- "provider_sales_channel": "string",
- "shipping_carrier": "usps",
- "shipping_service": "string",
- "order_line_items": [
- {
- "order_line_item_id": "string",
- "product_title": "string",
- "quantity": 0,
- "sku": "string",
- "item_spec": "string",
- "preview_urls": "string",
- "location": "teale",
}
], - "order_meta_assets": [
], - "location": "teale"
}{- "id": 0
}{- "type": "shipments.created",
- "timestamp": "2019-08-24T14:15:22Z",
- "data": {
- "shipments": [
- {
- "id": 0,
- "title": "string",
- "shipping_carrier": "usps",
- "shipping_service": "ups-next-day-air",
- "combine_packages": false,
- "shipment_fulfillments": [
- {
- "id": 0,
- "tracking_number": "string",
- "fulfillment": {
- "id": 0,
- "title": "string",
- "fulfillment_line_items": [
- {
- "id": 0,
- "order_line_item_id": "string",
- "quantity": 0
}
]
}
}
], - "order_id": 0,
- "order_status": "processing",
- "provider_order_id": "1",
- "provider_order_number": "1"
}
]
}, - "event": "shipments.created"
}| id required | integer <int64> ID of the order to retrieve |
{- "id": 0,
- "test": false,
- "pickup": false,
- "order_number": "string",
- "order_date": "2019-08-24T14:15:22Z",
- "operational_date": "2019-08-24T14:15:22Z",
- "ship_by_date": "2019-08-24T14:15:22Z",
- "provider": "string",
- "order_status": "processing",
- "biller": {
- "id": 0,
- "name": "string",
- "title": "string"
}, - "provider_order_id": "1",
- "provider_order_date": "2019-08-24T14:15:22Z",
- "provider_sales_channel": "string",
- "shipping": {
- "full_name": "Jason Smith",
- "first_name": "Jason",
- "last_name": "Smith",
- "company_name": "ABC Corp.",
- "street": "123 Main St.",
- "street_2": "string",
- "street_3": "string",
- "city": "Los Angeles",
- "state": "CA",
- "postcode": "90001",
- "country": "US",
- "email": "jsmith@example.com",
- "phone": "3105551212"
}, - "order_meta_assets": [
], - "order_line_items": [
- {
- "id": 0,
- "product": 0,
- "order_line_item_id": "string",
- "product_title": "string",
- "quantity": 0,
- "sku": "string",
- "item_spec": "string",
- "preview_urls": "string",
- "location": "teale",
}
], - "fulfillment_orders": [
- {
- "id": 0,
- "location": "teale",
- "fulfillment_order_line_items": [
- {
- "id": 0,
- "order_line_item": 0,
- "quantity": 0,
- "fulfillable_quantity": 0
}
], - "fulfillments": [
- {
- "id": 0,
- "title": "string",
- "fulfillment_line_items": [
- {
- "id": 0,
- "fulfillment_order_line_item": 0,
- "fulfillment_line_item_error": "artwork-not-printable",
- "cancel": false,
- "fulfillment_line_item_jobs": [
- {
- "id": 0,
- "fulfillment_line_item_job_qc_status": "pass",
- "fulfillment_line_item_job_qc_fail_reason": "defective-artwork-transfer"
}
]
}
], - "package_type": "string",
- "fulfillment_status": "pending",
- "ship_by_date": "2019-08-24T14:15:22Z",
- "price": 0.1
}
], - "shipments": [
- {
- "id": 0,
- "title": "string",
- "shipping_carrier": "usps",
- "shipping_service": "ups-next-day-air",
- "combine_packages": false,
- "shipment_fulfillments": [
- {
- "id": 0,
- "tracking_number": "string",
- "fulfillment": {
- "id": 0,
- "title": "string",
- "fulfillment_line_items": [
- {
- "id": null,
- "order_line_item_id": null,
- "quantity": null
}
]
}
}
], - "order_id": 0,
- "order_status": "processing",
- "provider_order_id": "1",
- "provider_order_number": "1"
}
]
}
], - "shipping_carrier": "usps",
- "shipping_service": "string",
- "location": "teale"
}| id required | integer <int64> ID of the order to update |
| order_status | string Value: "canceled" |
object (Shipping) Where the order is to be shipped / the address of the end-customer. |
{- "order_status": "canceled",
- "shipping": {
- "full_name": "Jason Smith",
- "first_name": "Jason",
- "last_name": "Smith",
- "company_name": "ABC Corp.",
- "street": "123 Main St.",
- "street_2": "string",
- "street_3": "string",
- "city": "Los Angeles",
- "state": "CA",
- "postcode": "90001",
- "country": "US",
- "email": "jsmith@example.com",
- "phone": "3105551212"
}
}{- "id": 0,
- "test": false,
- "pickup": false,
- "order_number": "string",
- "order_date": "2019-08-24T14:15:22Z",
- "operational_date": "2019-08-24T14:15:22Z",
- "ship_by_date": "2019-08-24T14:15:22Z",
- "provider": "string",
- "order_status": "processing",
- "biller": {
- "id": 0,
- "name": "string",
- "title": "string"
}, - "provider_order_id": "1",
- "provider_order_date": "2019-08-24T14:15:22Z",
- "provider_sales_channel": "string",
- "shipping": {
- "full_name": "Jason Smith",
- "first_name": "Jason",
- "last_name": "Smith",
- "company_name": "ABC Corp.",
- "street": "123 Main St.",
- "street_2": "string",
- "street_3": "string",
- "city": "Los Angeles",
- "state": "CA",
- "postcode": "90001",
- "country": "US",
- "email": "jsmith@example.com",
- "phone": "3105551212"
}, - "order_meta_assets": [
], - "order_line_items": [
- {
- "id": 0,
- "product": 0,
- "order_line_item_id": "string",
- "product_title": "string",
- "quantity": 0,
- "sku": "string",
- "item_spec": "string",
- "preview_urls": "string",
- "location": "teale",
}
], - "fulfillment_orders": [
- {
- "id": 0,
- "location": "teale",
- "fulfillment_order_line_items": [
- {
- "id": 0,
- "order_line_item": 0,
- "quantity": 0,
- "fulfillable_quantity": 0
}
], - "fulfillments": [
- {
- "id": 0,
- "title": "string",
- "fulfillment_line_items": [
- {
- "id": 0,
- "fulfillment_order_line_item": 0,
- "fulfillment_line_item_error": "artwork-not-printable",
- "cancel": false,
- "fulfillment_line_item_jobs": [
- {
- "id": 0,
- "fulfillment_line_item_job_qc_status": "pass",
- "fulfillment_line_item_job_qc_fail_reason": "defective-artwork-transfer"
}
]
}
], - "package_type": "string",
- "fulfillment_status": "pending",
- "ship_by_date": "2019-08-24T14:15:22Z",
- "price": 0.1
}
], - "shipments": [
- {
- "id": 0,
- "title": "string",
- "shipping_carrier": "usps",
- "shipping_service": "ups-next-day-air",
- "combine_packages": false,
- "shipment_fulfillments": [
- {
- "id": 0,
- "tracking_number": "string",
- "fulfillment": {
- "id": 0,
- "title": "string",
- "fulfillment_line_items": [
- {
- "id": null,
- "order_line_item_id": null,
- "quantity": null
}
]
}
}
], - "order_id": 0,
- "order_status": "processing",
- "provider_order_id": "1",
- "provider_order_number": "1"
}
]
}
], - "shipping_carrier": "usps",
- "shipping_service": "string",
- "location": "teale"
}Get the status of multiple orders at once by providing an array of order IDs.
| order_ids required | Array of integers <int64> [ items <int64 > ] Array of order IDs to retrieve statuses for |
{- "order_ids": [
- 12345,
- 12346,
- 12347
]
}{- "data": [
- {
- "id": 0,
- "order_status": "string"
}
], - "meta": {
- "requested": 0,
- "found": 0,
- "not_found": [
- 0
]
}
}{- "error": "Refresh Token expired. Please log in to start a new session.",
- "error_code": "refresh_token_expired",
- "devmessage": {
- "class": "string",
- "code": 0,
- "message": "string",
- "location": "string",
- "line": 0
}
}