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.
Shipping can work in one of following ways:
| 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. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ship_by_date | string <date-time> The date the order should be shipped by. Please use UTC. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| shipping_carrier | string Enum: "usps" "ups" "fedex" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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 packing list that is to be included in a package. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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",
- "ship_by_date": "2019-08-24T14:15:22Z",
- "shipping_carrier": "usps",
- "shipping_service": "string",
- "order_line_items": [
- {
- "order_line_item_id": 0,
- "product_title": "string",
- "quantity": 0,
- "sku": "string",
- "item_spec": "string",
- "preview_urls": "string",
- "location": "teale",
}
], - "location": "teale"
}{- "id": 0
}{- "type": "shipment.created",
- "timestamp": "2019-08-24T14:15:22Z",
- "data": {
- "id": 0,
- "title": "string",
- "shipping_service": "string",
- "combine_packages": false,
- "shipment_fulfillments": [
], - "order_id": 0,
- "order_status": "processing"
}, - "event": "shipment.created"
}| id required | integer <int64> ID of the order to retrieve |
{- "id": 0,
- "order_number": "string",
- "order_date": "2019-08-24T14:15:22Z",
- "provider": "string",
- "order_status": "processing",
- "biller": {
- "id": 0,
- "name": "string",
- "title": "string"
}, - "timings": [
- {
- "id": 0,
- "timing_type": "proceed-after",
- "datetime": "2019-08-24T14:15:22Z"
}
], - "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-product"
}
]
}
], - "package": "string",
- "fulfillment_status": "ready",
- "ship_by_date": "2019-08-24T14:15:22Z",
- "ship_by_date_2": "2019-08-24T14:15:22Z",
- "price": 0.1
}
], - "shipments": [
- {
- "id": 0,
- "title": "string",
- "shipping_service": "string",
- "combine_packages": false,
- "shipment_fulfillments": [
]
}
]
}
], - "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",
- "ship_by_date": "2019-08-24T14:15:22Z",
- "shipping_carrier": "usps",
- "shipping_service": "string",
- "order_line_items": [
- {
- "order_line_item_id": 0,
- "product_title": "string",
- "quantity": 0,
- "sku": "string",
- "item_spec": "string",
- "preview_urls": "string",
- "location": "teale",
}
], - "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,
- "order_number": "string",
- "order_date": "2019-08-24T14:15:22Z",
- "provider": "string",
- "order_status": "processing",
- "biller": {
- "id": 0,
- "name": "string",
- "title": "string"
}, - "timings": [
- {
- "id": 0,
- "timing_type": "proceed-after",
- "datetime": "2019-08-24T14:15:22Z"
}
], - "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-product"
}
]
}
], - "package": "string",
- "fulfillment_status": "ready",
- "ship_by_date": "2019-08-24T14:15:22Z",
- "ship_by_date_2": "2019-08-24T14:15:22Z",
- "price": 0.1
}
], - "shipments": [
- {
- "id": 0,
- "title": "string",
- "shipping_service": "string",
- "combine_packages": false,
- "shipment_fulfillments": [
]
}
]
}
], - "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",
- "ship_by_date": "2019-08-24T14:15:22Z",
- "shipping_carrier": "usps",
- "shipping_service": "string",
- "order_line_items": [
- {
- "order_line_item_id": 0,
- "product_title": "string",
- "quantity": 0,
- "sku": "string",
- "item_spec": "string",
- "preview_urls": "string",
- "location": "teale",
}
], - "location": "teale"
}{- "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
}
}