Create new Sales Orders in Zentail
Use this endpoint to create new Sales orders in Zentail. Once the order is in our system, you can use Zentail to manage the status and any future changes.
Integration ID
In order to create custom orders in Zentail, you will need to associate them with a Custom Order Integration. Each account will automatically create one when you create your first custom order.
This default integration will be used if the integration ID is not provided.
In order to retrieve the integration ID for each custom store, you can use the GET /customStores endpoint.
These Custom Order Integrations are really just placeholders and do not technically integrate with any external channels.
Order Statuses
You can control how the order is handled in Zential by setting the status value. Most new orders should be in either PENDING_PAYMENT or PENDING. See the table below for each status and what it means.
<Note>Currently the API only supports one status per order. Individual line items may have different statuses after the order is created by performing various actions in the Zentail UI. </Note>
| Status | Explanation | Action |
|---|---|---|
| PENDING_PAYMENT | An order that has not yet had a verified payment. | Zentail will try to reserve the inventory for up to 30 days but not actually fulfill the order or purchase labels |
| PENDING | A new order ready for fulfillment. | Zentail will route this order to a warehouse or warehouses and send a fulfillment order where applicable. |
| SHIPPED | An order that has already been shipped. | Zentail will not take any action on an already shipped custom order. |
| CANCELLED | An order that has been cancelled. | For new custom orders, Zentail will not take any action. Channel-synced cancelled orders may arrive without line items. |
| RETURNED | An order that has been successfully returned. | None |
| REFUNDED | An order that has been refunded. | None |
| RETURN_REQUESTED | An order for which a return has been requested but not yet complete. | None |
Shipping address
shippingAddress is optional (omit the field or send an empty object). When provided, all required address fields must be supplied. postalCode is optional outside the US, because some countries (for example the UAE) have none; omit it or send null, since an empty string is rejected.
Request
- Base URLhttps://api.zentail.com/v1
- AuthAPI key in header AUTHORIZATION
Request body
Response
Success
Changes
No recorded changes to this operation across all 1 revision of this API.