Outbound Orders (Sale Orders)
Endpoints related to Outbound Orders.
Run an action on an outbound order
Runs an action on an outbound order. Set the activityType query parameter to OUTBOUND.
The action is the request body. type selects the action, for example ASSIGN or START. The response returns the updated outbound order.
Requires EDIT_OUTBOUND_ORDER_ACTION. Outbound actions change the order lifecycle.
path Parameters
tenantIdTenant ID. Can be found in organisation settings
taskIdOutbound order id the action runs against.
query Parameters
activityTypeSelects which actions this call can run.
Headers
Accept-VersionAll API end points require Accept-Version in the request header.
Failure to provide the header will return a status code of 400, however, an invalid version can return a 404, 406 or 400.
Run an action on an outbound order › Request Body
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object |
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · requires: type | |
| type = object · requires: type | |
| type = object · requires: type | |
| type = object · requires: type | |
| type = object · requires: type | |
| type = object · requires: type | |
| type = object · requires: type, details | |
| type = object · requires: type | |
| type = object · requires: type | |
| type = object · requires: type | |
| type = object · requires: type |
Run an action on an outbound order › Responses
Updated outbound order, plus references to any related records the action changed.
Add Outbound order
Create a new outbound order (sale order).
This endpoint is rate limited to 30 requests per minute per user (no more than 1 request every 2 seconds).
path Parameters
tenantIdTenant ID. Can be found in organisation settings
Headers
Accept-VersionAll API end points require Accept-Version in the request header.
Failure to provide the header will return a status code of 400, however, an invalid version can return a 404, 406 or 400.
External-Meta-KeyThe External-Meta-Key header allows to specify the desired external meta key and only data associated with the specified key will be returned. If no key is specified or the key does not contain data, then externalMeta will not be returned.
Users with VIEW_ALL_EXTERNAL_META permission can specify * to return all available external meta. Data in externalMeta will be keyed by the external meta key.
Add Outbound order › Request Body
Fields uniquely identifying Outbound order
Identifies a customer. When more than one identifying property is supplied, they are
checked in this order: id, references.code, then name.
From Accept-Version 9, responses include status and references.numericId and omit enabled.
typeCustom and other property values keyed by name.
Custom fields may exist or may be requested by the tenant.
- For Address, Shipment, Container, Consignment Data, Consignment Item, Vehicle, Customer, Driver, Sale Order, Purchase Order, or Transport Product, use the name in Mapped Field from the tenant.
- For Sale Order Product (SOP) custom fields, use
sop_custom_field_1,sop_custom_field_2, and so on. - For other entities such as Purchase Order Product and Product, use
custom_field_1,custom_field_2, and so on.
measuresstatusOn create, the only accepted value is HELD.
Omit status to create the order in the default status.
Null is treated the same as an omitted status.
Any other value returns 422.
holdReasonsStored hold reasons a request can set.
HELD on create requires at least one reason.
holdReasons without HELD on create returns 422.
A customer user can set only CLIENT.
The request returns 422 when stored hold reasons are not available.
Smaller subset of warehouse fields. When both id and name are supplied, id is used first.
name must match the warehouse name in CartonCloud exactly.
External Metadata by a specific External meta key
sourceSource information for the entity
Reference to the Parent Order that this Outbound Order belongs to. Parent Orders are not yet implemented and are only stored as UUIDs.
Details specific for the Outbound Task object
Add Outbound order › Responses
Order successfully added
idThe customer that this entity is associated with. null for tenant data not associated with a specific customer. A user's access maybe restricted to specific customers. Also null for multi-customer groups. Pick To Tote as example (although each individual group member has its own customer reference).
Billing invoice this entity is assigned to. Only present when the entity has an assigned invoice and the user has VIEW_CHARGES permission.
typeFields uniquely identifying Outbound order
Custom and other property values keyed by name.
Custom fields may exist or may be requested by the tenant.
- For Address, Shipment, Container, Consignment Data, Consignment Item, Vehicle, Customer, Driver, Sale Order, Purchase Order, or Transport Product, use the name in Mapped Field from the tenant.
- For Sale Order Product (SOP) custom fields, use
sop_custom_field_1,sop_custom_field_2, and so on. - For other entities such as Purchase Order Product and Product, use
custom_field_1,custom_field_2, and so on.
Contains information about size of the order.
statusA search may send AWAITING_STOCK or HELD for the held status.
holdReasonsReasons this outbound order is held. Returned next to status.
Omitted when the order is not held or there is nothing to report.
Smaller subset of warehouse fields. When both id and name are supplied, id is used first.
name must match the warehouse name in CartonCloud exactly.
versionExternal Metadata by a specific External meta key
sourceSource information for the entity
Map of timestamp entries for various lifecycle events. A timestamp is omitted when that event has not happened.
User for the current stage. Before the order is picked, this is the picker, or the packer when no picker is set. From picked onwards, this is the packer.
Reference to the Parent Order that this Outbound Order belongs to. Parent Orders are not yet implemented and are only stored as UUIDs.
Details specific for the Outbound Task object
Queue an outbound order
Validates the outbound order and queues a background job to create it.
status and holdReasons use the same rules as create.
A successful request returns 202 Accepted with a confirmation message. The order is created by the job, not in this response.
path Parameters
tenantIdTenant ID. Can be found in organisation settings
query Parameters
createRejectedDefaults to true. When true, an item product that cannot be resolved does not fail this request. When false, that product check returns 422 and the order is not queued.
Headers
Accept-VersionAll API end points require Accept-Version in the request header.
Failure to provide the header will return a status code of 400, however, an invalid version can return a 404, 406 or 400.
External-Meta-KeyThe External-Meta-Key header allows to specify the desired external meta key and only data associated with the specified key will be returned. If no key is specified or the key does not contain data, then externalMeta will not be returned.
Users with VIEW_ALL_EXTERNAL_META permission can specify * to return all available external meta. Data in externalMeta will be keyed by the external meta key.
Queue an outbound order › Request Body
Fields uniquely identifying Outbound order
Identifies a customer. When more than one identifying property is supplied, they are
checked in this order: id, references.code, then name.
From Accept-Version 9, responses include status and references.numericId and omit enabled.
typeCustom and other property values keyed by name.
Custom fields may exist or may be requested by the tenant.
- For Address, Shipment, Container, Consignment Data, Consignment Item, Vehicle, Customer, Driver, Sale Order, Purchase Order, or Transport Product, use the name in Mapped Field from the tenant.
- For Sale Order Product (SOP) custom fields, use
sop_custom_field_1,sop_custom_field_2, and so on. - For other entities such as Purchase Order Product and Product, use
custom_field_1,custom_field_2, and so on.
measuresstatusOn create, the only accepted value is HELD.
Omit status to create the order in the default status.
Null is treated the same as an omitted status.
Any other value returns 422.
holdReasonsStored hold reasons a request can set.
HELD on create requires at least one reason.
holdReasons without HELD on create returns 422.
A customer user can set only CLIENT.
The request returns 422 when stored hold reasons are not available.
Smaller subset of warehouse fields. When both id and name are supplied, id is used first.
name must match the warehouse name in CartonCloud exactly.
External Metadata by a specific External meta key
sourceSource information for the entity
Reference to the Parent Order that this Outbound Order belongs to. Parent Orders are not yet implemented and are only stored as UUIDs.
Details specific for the Outbound Task object
Queue an outbound order › Responses
Accepted
messageSearch Outbound Orders
Search for previously created outbound orders (sale order).
Condition Fields
Prefer JsonField pointers. ValueField aliases remain supported but are deprecated where a JsonField pointer exists.
Custom property pointers (/properties/{name}) may also be searchable.
/invoice/id is available when the caller has VIEW_CHARGES, or Hide charging information is off.
Supported JsonField pointers
| Pointer | Description |
|---|---|
/assignee/id | Current stage assignee. Before the order is picked, this is the picker when one is set, otherwise the packer. From picked onwards, this is the packer. |
/assignee/task/id | Wave pick / assignee task ID |
/customer/id | Customer ID |
/customer/name | Customer name |
/details/collect/requiredDate | Required collection date |
/details/deliver/address/address1 | Delivery address line 1 |
/details/deliver/address/city | Delivery address city |
/details/deliver/address/companyName | Delivery address company name |
/details/deliver/address/contactName | Delivery address contact name |
/details/deliver/address/postcode | Delivery address postcode |
/details/deliver/address/suburb | Delivery address suburb |
/details/expectedShipDate | Expected ship date |
/details/packer/id | Packer user ID |
/details/picker/id | Picker user ID |
/details/tote/references/barcode | Tote barcode |
/details/urgent | Is urgent order |
/group/id | Pick To Tote task id (not the order group for split orders) |
/id | Order ID |
/references/customer | Customer reference |
/references/numericId | Numeric ID |
/source/application | The integration name the client sent when the order was created, up to 64 characters. Text comparison methods apply. Nothing fills this when the client omits it. |
/source/channel | The same label GET returns, such as Web Upload, Manual (Admin), or API. Use TextComparisonCondition with EQUAL_TO or NOT_EQUAL_TO. EQUAL_TO on Web Upload matches every order that entered by web upload, including system import. NOT_EQUAL_TO excludes that same set. |
/status | Status enum (e.g. DRAFT) |
/timestamps/created/time | Created (ISO 8601) |
/timestamps/dispatched/time | Dispatched (ISO 8601) |
/timestamps/modified/time | Modified (ISO 8601) |
/timestamps/packStarted/time | Pack started (ISO 8601) |
/timestamps/packed/time | Packed (ISO 8601) |
/timestamps/pickFinished/time | Pick finished (ISO 8601) |
/timestamps/pickStarted/time | Pick started (ISO 8601) |
/warehouse/id | Warehouse ID |
ValueField aliases (deprecated)
| ValueField | JsonField pointer |
|---|---|
createdDate | /timestamps/created/time |
customerId | /customer/id |
customerName | /customer/name |
reference | /references/customer |
references.numericId | /references/numericId |
Reference match
ReferenceMatchCondition accepts targets PRODUCT_CODE and PRODUCT_ID.
Methods are EQUAL_TO, NOT_EQUAL_TO, EXISTS_IN, and NOT_EXISTS_IN.
EQUAL_TO and NOT_EQUAL_TO use a string value. EXISTS_IN and
NOT_EXISTS_IN use an array of strings.
| Target | Description |
|---|---|
PRODUCT_CODE | Product code (references.code). The same code can exist for more than one customer. The search returns every outbound order that contains one of those products. |
PRODUCT_ID | Product id. |
When EQUAL_TO or EXISTS_IN matches no product, the search returns no
outbound orders. When NOT_EQUAL_TO or NOT_EXISTS_IN matches no product,
every outbound order stays in the result.
Do not combine ReferenceMatchCondition with FreeTextSearch.
path Parameters
tenantIdTenant ID. Can be found in organisation settings
query Parameters
pageThe page number to return results for
sizeThe number of elements per page. Default value may vary between endpoints
sortField name and sort order separated by a comma. {dot separated field name},{asc/desc}
nullHandlingHeaders
Accept-VersionAll API end points require Accept-Version in the request header.
Failure to provide the header will return a status code of 400, however, an invalid version can return a 404, 406 or 400.
PreferWhen Prefer is applied, the Preference-Applied response header is returned.
| Value | Description |
|---|---|
| return=minimal | Switch the response into minimal representation (id only). |
| return=lifecycle | Switch the response into lifecycle representation. |
| return=search-representation | Switch the response into search representation. |
Search Outbound Orders › Request Body
And and Or conditions must be accompanied with internal conditions property that provides all the fields level conditions that the wrapper must be applied to. Note: The FreeTextSearch condition cannot be combined with other fields level conditions.
Search Outbound Orders › Responses
Success
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = array | |
| type = array | |
| type = array | |
| type = array |
idThe customer that this entity is associated with. null for tenant data not associated with a specific customer. A user's access maybe restricted to specific customers. Also null for multi-customer groups. Pick To Tote as example (although each individual group member has its own customer reference).
Billing invoice this entity is assigned to. Only present when the entity has an assigned invoice and the user has VIEW_CHARGES permission.
typeFields uniquely identifying Outbound order
Custom and other property values keyed by name.
Custom fields may exist or may be requested by the tenant.
- For Address, Shipment, Container, Consignment Data, Consignment Item, Vehicle, Customer, Driver, Sale Order, Purchase Order, or Transport Product, use the name in Mapped Field from the tenant.
- For Sale Order Product (SOP) custom fields, use
sop_custom_field_1,sop_custom_field_2, and so on. - For other entities such as Purchase Order Product and Product, use
custom_field_1,custom_field_2, and so on.
Contains information about size of the order.
statusA search may send AWAITING_STOCK or HELD for the held status.
holdReasonsReasons this outbound order is held. Returned next to status.
Omitted when the order is not held or there is nothing to report.
Smaller subset of warehouse fields. When both id and name are supplied, id is used first.
name must match the warehouse name in CartonCloud exactly.
versionExternal Metadata by a specific External meta key
sourceSource information for the entity
Map of timestamp entries for various lifecycle events. A timestamp is omitted when that event has not happened.
User for the current stage. Before the order is picked, this is the picker, or the packer when no picker is set. From picked onwards, this is the packer.
If Outbound is part of Pick To Tote task, it's reference will be provided here
Details specific for the Outbound Task object
View Outbound Order
Retrieves a previously created outbound order (sale order).
path Parameters
tenantIdTenant ID. Can be found in organisation settings
orderIdOutbound Order Id
Headers
Accept-VersionAll API end points require Accept-Version in the request header.
Failure to provide the header will return a status code of 400, however, an invalid version can return a 404, 406 or 400.
PreferWhen Prefer is applied, the Preference-Applied response header is returned.
| Value | Description |
|---|---|
| return=minimal | Switch the response into minimal representation (id only). |
| return=lifecycle | Switch the response into lifecycle representation. |
| return=search-representation | Switch the response into search representation. |
External-Meta-KeyThe External-Meta-Key header allows to specify the desired external meta key and only data associated with the specified key will be returned. If no key is specified or the key does not contain data, then externalMeta will not be returned.
Users with VIEW_ALL_EXTERNAL_META permission can specify * to return all available external meta. Data in externalMeta will be keyed by the external meta key.
View Outbound Order › Responses
Success. Response body depends on the Prefer request header (see parameter outboundPreferHeader): - Prefer: return=search-representation → OutboundOrder_SearchResult - Prefer: return=lifecycle → OutboundOrder_Lifecycle - Prefer: return=minimal → OutboundOrder_Reference - Prefer header omitted → OutboundOrder_Default
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object | |
| type = object | |
| type = object | |
| type = object |
idThe customer that this entity is associated with. null for tenant data not associated with a specific customer. A user's access maybe restricted to specific customers. Also null for multi-customer groups. Pick To Tote as example (although each individual group member has its own customer reference).
Billing invoice this entity is assigned to. Only present when the entity has an assigned invoice and the user has VIEW_CHARGES permission.
typeFields uniquely identifying Outbound order
Custom and other property values keyed by name.
Custom fields may exist or may be requested by the tenant.
- For Address, Shipment, Container, Consignment Data, Consignment Item, Vehicle, Customer, Driver, Sale Order, Purchase Order, or Transport Product, use the name in Mapped Field from the tenant.
- For Sale Order Product (SOP) custom fields, use
sop_custom_field_1,sop_custom_field_2, and so on. - For other entities such as Purchase Order Product and Product, use
custom_field_1,custom_field_2, and so on.
Contains information about size of the order.
statusA search may send AWAITING_STOCK or HELD for the held status.
holdReasonsReasons this outbound order is held. Returned next to status.
Omitted when the order is not held or there is nothing to report.
Smaller subset of warehouse fields. When both id and name are supplied, id is used first.
name must match the warehouse name in CartonCloud exactly.
versionExternal Metadata by a specific External meta key
sourceSource information for the entity
Map of timestamp entries for various lifecycle events. A timestamp is omitted when that event has not happened.
User for the current stage. Before the order is picked, this is the picker, or the packer when no picker is set. From picked onwards, this is the packer.
If Outbound is part of Pick To Tote task, it's reference will be provided here
Details specific for the Outbound Task object
Update an existing Outbound Order
Update an existing outbound order (sale order).
The request may be a JSON Merge Patch object or a JSON Patch list.
Paths you can update:
/externalMeta. Send theExternal-Meta-Keyheader./details/deliver/incoterm/details/deliver/authorityToLeave/details/deliver/authorityToLeaveInstructions/details/deliver/instructions/details/deliver/address, including child paths/items/holdReasons
A customer user receives 422 when the order cannot be edited.
The server checks the whole request before it writes. A failed request returns 422 and does not change the order.
A JSON Merge Patch of /items or /holdReasons replaces the whole list when that list is absent.
A JSON null for /holdReasons returns 422. Send an empty array to clear stored reasons.
In a JSON Merge Patch, null removes a field other than /holdReasons. A field that is absent stays unchanged.
Replace an array. Do not patch one array item.
path Parameters
tenantIdTenant ID. Can be found in organisation settings
orderIdOutbound Order Id
Headers
Accept-VersionAll API end points require Accept-Version in the request header.
Failure to provide the header will return a status code of 400, however, an invalid version can return a 404, 406 or 400.
External-Meta-KeyThe External-Meta-Key header allows to specify the desired external meta key and only data associated with the specified key will be returned. If no key is specified or the key does not contain data, then externalMeta will not be returned.
Users with VIEW_ALL_EXTERNAL_META permission can specify * to return all available external meta. Data in externalMeta will be keyed by the external meta key.
Update an existing Outbound Order › Request Body
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = array | |
| type = object |
List of patch operations following the JSON Patch specification. See RFC 6902 - JSON Patch for the official documentation. (add, replace, remove operations are supported)
Update an existing Outbound Order › Responses
Outbound order updated successfully
idThe customer that this entity is associated with. null for tenant data not associated with a specific customer. A user's access maybe restricted to specific customers. Also null for multi-customer groups. Pick To Tote as example (although each individual group member has its own customer reference).
Billing invoice this entity is assigned to. Only present when the entity has an assigned invoice and the user has VIEW_CHARGES permission.
typeFields uniquely identifying Outbound order
Custom and other property values keyed by name.
Custom fields may exist or may be requested by the tenant.
- For Address, Shipment, Container, Consignment Data, Consignment Item, Vehicle, Customer, Driver, Sale Order, Purchase Order, or Transport Product, use the name in Mapped Field from the tenant.
- For Sale Order Product (SOP) custom fields, use
sop_custom_field_1,sop_custom_field_2, and so on. - For other entities such as Purchase Order Product and Product, use
custom_field_1,custom_field_2, and so on.
Contains information about size of the order.
statusA search may send AWAITING_STOCK or HELD for the held status.
holdReasonsReasons this outbound order is held. Returned next to status.
Omitted when the order is not held or there is nothing to report.
Smaller subset of warehouse fields. When both id and name are supplied, id is used first.
name must match the warehouse name in CartonCloud exactly.
versionExternal Metadata by a specific External meta key
sourceSource information for the entity
Map of timestamp entries for various lifecycle events. A timestamp is omitted when that event has not happened.
User for the current stage. Before the order is picked, this is the picker, or the packer when no picker is set. From picked onwards, this is the packer.
Reference to the Parent Order that this Outbound Order belongs to. Parent Orders are not yet implemented and are only stored as UUIDs.
Details specific for the Outbound Task object
Delete an existing Outbound Order
Deletes an outbound order (sale order).
Deletion is only allowed for certain Sale Order statuses, configurable via the organisation setting for Sale Order allowed edit/delete.
path Parameters
tenantIdTenant ID. Can be found in organisation settings
orderIdOutbound Order Id
Headers
Accept-VersionAll API end points require Accept-Version in the request header.
Failure to provide the header will return a status code of 400, however, an invalid version can return a 404, 406 or 400.
Delete an existing Outbound Order › Responses
Outbound order has been deleted