Inbound Orders (Purchase Orders)
Endpoints related to Inbound Orders.
Create a new Inbound Order
Create a new inbound order (purchase order).
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.
IncludeComma-separated list of additional fields to include in the response.
Create a new Inbound Order › Request Body
Fields uniquely identifying Inbound 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.
measuresstatusStatus of the inbound order
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.
Details specific for the Inbound Order object
List of Inbound Item objects
Create a new Inbound Order › Responses
Order successfully created
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 Inbound 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.
Only returned when the Include request header contains measures.
statusStatus of the inbound order
Response only. How the order entered CartonCloud (not writable on create or update).
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.
Map of timestamp entries for various lifecycle events
versionExternal Metadata by a specific External meta key
Details specific for the Inbound Order object
List of Inbound Item objects
Bulk Delete Inbound Orders
Deletes inbound orders matching filter.condition. The condition is mandatory; omitting
filter or filter.condition, or sending an empty condition, returns 422 Unprocessable Entity
and no orders are deleted.
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.
Bulk Delete Inbound Orders › Request Body
Search filter selecting entities to delete. condition is required.
Bulk Delete Inbound Orders › Responses
Success - Returns per-entity success and failure results
Search Inbound Orders
Search for previously created inbound orders (purchase orders).
To perform this action, the API Client needs to have the “WMS Create Job” role.
Condition Fields
Custom property pointers (/properties/{name}) may also be searchable.
Supported ValueField Conditions
| Alias | Description |
|---|---|
arrivalDate | Arrival date |
createdDate | Created date |
customerId | Customer UUID |
customerName | Customer name |
productId | Warehouse product UUID; returns inbound orders containing that product |
reference | Customer reference |
For productId, use a ValueField named productId (not a JsonField pointer). It matches inbound orders that have at least one line item for the given warehouse product UUID.
| Condition type | Methods |
|---|---|
TextComparisonCondition | EQUAL_TO, NOT_EQUAL_TO |
ListComparisonCondition | EXISTS_IN, NOT_EXISTS_IN |
For ListComparisonCondition, the value is an array of product UUIDs. EXISTS_IN matches orders that contain any listed product; NOT_EXISTS_IN excludes orders that contain any listed product.
Supported JsonField Conditions
| Pointer | Description |
|---|---|
/customer/id | Customer UUID |
/customer/name | Customer name |
/details/arrivalDate | Arrival date |
/details/instructions | Special instructions |
/details/isAdjustment | Whether the order is an adjustment |
/details/parentId | Parent inbound order UUID |
/details/urgency | Urgency enum (NONE, CUSTOMER_REQUESTED, URGENT) |
/details/urgent | Whether the order is urgent |
/id | Inbound order UUID |
/invoice/id | Invoice ID (when the caller has VIEW_CHARGES, or Hide charging information is off) |
/references/customer | Customer reference |
/references/numericId | Numeric ID |
/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/allocated/time | Allocated timestamp (ISO 8601 format) |
/timestamps/created/time | Created timestamp (ISO 8601 format) |
/timestamps/modified/time | Last modified timestamp (ISO 8601 format) |
/timestamps/received/time | Received timestamp (ISO 8601 format) |
/timestamps/verified/time | Verified timestamp (ISO 8601 format) |
/warehouse/id | Warehouse UUID |
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 inbound order that contains one of those products. |
PRODUCT_ID | Product id. This is the same match as the productId ValueField. |
When EQUAL_TO or EXISTS_IN matches no product, the search returns no
inbound orders. When NOT_EQUAL_TO or NOT_EXISTS_IN matches no product,
every inbound order stays in the result.
Example:
Code
The productId ValueField remains supported.
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.
IncludeComma-separated list of additional fields to include in the response.
PreferWhen Prefer is applied, the Preference-Applied response header is returned.
| Value | Description |
|---|---|
| return=minimal | Switch the response into minimal representation (id only). |
Search Inbound 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 Inbound Orders › Responses
Success
Decision Table
| Variant | Matching Criteria |
|---|---|
| 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 Inbound 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.
Only returned when the Include request header contains measures.
statusStatus of the inbound order
Response only. How the order entered CartonCloud (not writable on create or update).
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.
Map of timestamp entries for various lifecycle events
versionExternal Metadata by a specific External meta key
Details specific for the Inbound Order object
List of Inbound Item objects
View Inbound Order
Retrieves a previously created inbound order (purchase order).
Response shape matches Create Inbound Order. Use Prefer: return=no-items to omit items. Use the Include header to add measures.
path Parameters
tenantIdTenant ID. Can be found in organisation settings
orderIdInbound 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.
IncludeComma-separated list of additional fields to include in the response.
PreferWhen Prefer is applied, the Preference-Applied response header is returned.
| Value | Description |
|---|---|
| return=no-items | Omit items from the response. |
View Inbound Order › Responses
Success. Response body depends on the Prefer request header: - Prefer: return=no-items → InboundOrder_NoItems - Prefer header omitted → InboundOrder_Default
Decision Table
| Variant | Matching Criteria |
|---|---|
| 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 Inbound 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.
Only returned when the Include request header contains measures.
statusStatus of the inbound order
Response only. How the order entered CartonCloud (not writable on create or update).
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.
Map of timestamp entries for various lifecycle events
versionExternal Metadata by a specific External meta key
Details specific for the Inbound Order object
List of Inbound Item objects
Delete an existing Inbound Order
Permanently deletes an inbound order. This cannot be undone.
Requires DELETE_INBOUND_ORDER. An API client can delete an inbound order only when its status is DRAFT, NOT_YET_RECEIVED, or REJECTED. Any other status returns 422 Unprocessable Entity.
Delete also returns 422 when the inbound order has been invoiced, has been billed, or has items packed onto outbound orders.
path Parameters
tenantIdTenant ID. Can be found in organisation settings
orderIdInbound 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 Inbound Order › Responses
Inbound order has been deleted