Download OpenAPI specification:Download
This site contains the specifications of the Active Ants ShopApi v3. This api is a rebuild from the earlier released v1 and v2 endpoints which are still online but are in the process of being replaced.
We're working hard to give you the best experience and complete control over your data through our APIs. To make sure that the endpoints follow a certain design pattern we've based the APIs on the JSON:API specifications. For more details about how to make the most of our endpoints see our online developer portal
The "Common" section of the API documentation provides a set of endpoints that are frequently used across different operations. These endpoints handle fundamental tasks, such as authentication and service status checks, which are essential for ensuring smooth communication between your application and the API. Understanding these endpoints is crucial for maintaining an efficient integration process.
One of the key endpoints in this section is POST /token. This operation is responsible for generating an authentication token. To access this endpoint, you must provide valid credentials, including a username and password specific to each shop. The returned token is essential for authenticating further requests. It's important to store the token securely and be prepared to request a new one if it becomes invalid, as unauthorized errors can occur.
Another important endpoint is GET status/get, which serves as a quick way to check the status of the ShopAPI. It requires no authentication and provides a simple confirmation that the API is functioning properly. When the service is available, the response includes a message confirming that the status is OK.
The operations of the shopapi/v3 require a bearer token to access the data. For each client a separate username and password can be requested which in turn can be used to request a bearer token for accessing the endpoints. The same bearer token will grant access to all shopapi/v3 endpoints and older, but only to the information of the client it belongs to. and need to be provided to the Token operation. This operation will
return a token string which needs to be provided in the header of each request.
401 Unauthorized error and a new token must be requested.
| grant_type required | any Default: "password" |
| username required | string |
| password required | string |
| access_token | string |
| token_type | string Default: "bearer" |
| expires_in | integer |
| userName | string |
| issued | string |
| expires | string |
grant_type=password&username=shopapi-user&password=your-secret-is-safe
{- "access_token": "WW91IGNvdWxkIG5vdCByZXNpc3QgdGhlIHVyZ2UgdG8gbG9vayBjb3VsZCB5b3U/,",
- "token_type": "bearer",
- "expires_in": 56499,
- "userName": "shopapi-user",
- "issued": "Tue, 05 Dec 2024 11:22:52 GMT",
- "expires": "Wed, 06 Dec 2024 03:22:52 GMT"
}This endpoint can be used to verify if the ShopApi is up and running. It requires no authentication and has no input requirements whatsoever.
When the ShopApi is functioning the response is a simple message with the following structure:
{
"messageCode": "OK",
"message": "Status is OK.",
"result": null
}
| messageCode | string |
| message | string |
| result | object or null |
{- "messageCode": "OK",
- "message": "Status is OK.",
- "result": null
}Returns all orders placed.
The endpoint supports pagination to split the large collection of resources into smaller, more manageable chunks or pages. This helps to reduce the response size and to improve performance. The endpoint supports only cursor-based technique for pagination.
The GET v3/orders endpoint supports filtering on the following attributes: orderedOn, externalOrderNumber, reference. Each of these are explained below. Filters can be used in combination with each other and with pagination to allow full access to the desired subset of orders.
orderedOnThe results returned by this service can be filtered based on the order date of the order. To do so make use of the filter[orderedOn] parameter in the following manner:
GET {host}/v3/orders?filter[orderedOn][lt]={date} will return order that have been ordered before the provided date. Orders that have been ordered on that date are not included in the results.GET {host}/v3/orders?filter[orderedOn][gt]={date} will return order that have been ordered after the provided date. Orders that have been ordered on that date are not included in the results.GET {host}/v3/orders?filter[orderedOn][gt]={date_1}&filter[orderedOn][lt]={date_2} will return orders that have ordered between dates {date_1} and {date_1}.
Orders that has been ordered on either date are not included in the results.externalOrderNumberIn order to find orders that have a specific externalOrderNumber it is possible to specify one or more values to search for. Be aware that each entry in the list must be URL-encoded in order to be accepted. This means that the characters !\"#$%&'()*+,\:;=?@[] and white-spaces must be percent-encoded (see also the example below). Make use of the filter[externalOrderNumber][in] filter as follows:
GET {host}\v3\orders?filter[externalOrderNumber][in]=%23UK-1003,NL123%2F433 will return all orders that have either #UK-1003 or NL123\433 as externalOrderNumber.referenceIn order to find orders that have a specific reference it is possible to specify one or more values to search for. Be aware that each entry in the list must be URL-encoded in order to be accepted. This means that the characters !\"#$%&'()*+,\:;=?@[] and white-spaces must be percent-encoded (see also the example below). Make use of the filter[reference][in] filter as follows:
GET{host}\v3\orders?filter[reference][in]=%23UK-1003,NL123%2F433
will return all orders that have either #UK-1003 or NL123\433 as reference.The endpoint also supports -to some
degree- the inclusion of information of related resources. The resources that
can be included in the response are limited to the orderItems, the deliveryAddress,
the billingAddress and the pickUpPoint. To get the details of related
entities the include parameter must be added to the URI in the following
way:
GET {host}/v3/orders?include=orderItems will return for each order
the list of orderItems with their details. GET {host}/v3/orders?include=deliveryAddress,billingAddress,pickUpPoint
will return all three types of addresses of each order if applicable. Note
that the deliveryAddress and billingAddress are both of type address
whereas the pickUpPoint is of type pickUpPoint.| page[cursor] | integer >= 0 Default: 0 optional parameter, excludes |
| page[size] | integer ( 0 .. 100 ] Default: 100 optional parameter indicating the size of the page, i.e. the maximum number of entities in the response. |
| include | Array of strings unique Items Enum: "orderItems" "deliveryAddress" "billingAddress" "pickUpPoint" Comma-separated list of |
| filter[orderedOn][gt] | string <date> Filters the response to only return items that have a value for the attribute |
| filter[orderedOn][lt] | string <date> Filters the response to only return items that have a value for the attribute |
| filter[externalOrderNumber][in] | Array of strings (externalOrderNumber) non-empty unique [ items <= 50 characters ] Examples:
A comma separated list of |
| filter[reference][in] | Array of strings unique A comma separated list of |
Array of objects (order) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object Pagination links that provided for convenience and in compliancy to the json:api specification for pagination. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "data": [
- {
- "id": 24006341,
- "type": "order",
- "attributes": {
- "externalOrderNumber": "1656-07-15",
- "orderedOn": "1656-07-01",
- "promotionCode": "BIRTHDAY_BOY",
- "currency": "EUR",
- "locale": "nl-NL",
- "email": "frans.hals@gmail.com",
- "phoneNumber": "+31650607080",
- "preferredShippingDate": "2019-08-24",
- "allowPartialDelivery": false,
- "onHold": false,
- "metadata": {
- "extra1": "Happy Birthday Rembrandt!"
}
}, - "relationships": {
- "orderType": {
- "data": {
- "id": 10045,
- "type": "orderType",
}
}, - "orderItems": {
- "data": [
- {
- "id": 53150128,
- "type": "orderItem",
}, - {
- "id": 53150129,
- "type": "orderItem",
}, - {
- "id": 53150130,
- "type": "orderItem",
}
]
}, - "deliveryAddress": {
- "data": {
- "id": 1,
- "type": "address"
}
}, - "billingAddress": {
- "data": {
- "id": 2,
- "type": "address"
}
}, - "preferredShippingMethod": {
- "data": {
- "id": 12,
- "type": "shippingMethod"
}
}
}, - "included": [
- {
- "id": 53150128,
- "type": "orderItem",
- "attributes": {
- "sku": "VDB-400",
- "quantity": 3,
- "fulfillFrom": "NR",
- "price": 13.95,
- "vat": 0.21,
- "name": "Van Dyke Brown - 400ml tube"
},
}, - {
- "id": 53150129,
- "type": "orderItem",
- "attributes": {
- "sku": "TPB-100",
- "quantity": 2,
- "fulfillFrom": "NR",
- "price": 58,
- "vat": 0.21,
- "name": "Phthalo Blue - 100ml tube"
},
}, - {
- "id": 53150130,
- "type": "orderItem",
- "attributes": {
- "sku": "BRUSH-DAV-3",
- "quantity": 1,
- "price": 24.99,
- "vat": 0.21,
- "name": "Da Vinci Maestro Series 35 Brush Set"
},
}, - {
- "id": 1,
- "type": "address",
- "attributes": {
- "firstName": "Rembrandt",
- "lastName": "Rijn",
- "prefix": "van",
- "street1": "Weddesteeg",
- "postcode": "2312 VD",
- "houseNumber": "4",
- "city": "Leiden",
- "countryCode": "NL"
}
}, - {
- "id": 2,
- "type": "address",
- "attributes": {
- "firstName": "Frans",
- "lastName": "Hals",
- "street1": "Groot Heiligland",
- "postcode": "2011 ES",
- "houseNumber": "62",
- "city": "Haarlem",
- "countryCode": "NL"
}
}
]
}, - {
- "id": 24044341,
- "type": "order",
- "attributes": {
- "externalOrderNumber": "1653-07-99",
- "orderedOn": "1656-07-01",
- "promotionCode": "BIRTHDAY_BOY",
- "currency": "EUR",
- "locale": "nl-NL",
- "email": "vincent@vangogh.com",
- "phoneNumber": "+3364604404380",
- "preferredShippingDate": "2019-08-24",
- "allowPartialDelivery": true,
- "onHold": false,
- "metadata": {
- "extra1": "Hurray! Another year for my buddy!"
}
}, - "relationships": {
- "orderType": {
- "data": {
- "id": 10045,
- "type": "orderType",
}
}, - "orderItems": {
- "data": [
- {
- "id": 53150199,
- "type": "orderItem",
}
]
}, - "deliveryAddress": {
- "data": {
- "id": 1,
- "type": "address"
}
}, - "billingAddress": {
- "data": {
- "id": 2,
- "type": "address"
}
}, - "preferredShippingMethod": {
- "data": {
- "id": 12,
- "type": "shippingMethod"
}
}
}, - "included": [
- {
- "id": 53150199,
- "type": "orderItem",
- "attributes": {
- "sku": "EAZLE_PEAZLE",
- "quantity": 3,
- "fulfillFrom": "NN",
- "price": 13.95,
- "vat": 0.21,
- "name": "Eazle Peazle - portable easel 150cm"
},
}, - {
- "id": 1,
- "type": "address",
- "attributes": {
- "firstName": "Rembrandt",
- "lastName": "Rijn",
- "prefix": "van",
- "street1": "Weddesteeg",
- "postcode": "2312 VD",
- "houseNumber": "4",
- "city": "Leiden",
- "countryCode": "NL"
}
}, - {
- "id": 2,
- "type": "address",
- "attributes": {
- "firstName": "Vincent",
- "prefix": "van",
- "lastName": "Gogh",
- "street1": "2 Rue de Bruxelles",
- "postcode": "89340",
- "houseNumber": "2",
- "city": "Auvers-sur-Oise",
- "countryCode": "FR"
}
}
]
}
], - "links": {
}
}This endpoint enables a client to create an order with its orderItems and related addresses.
When creating an order the related resources must be included in the request under the included attribute of the order (see the example). For the resources deliveryAddress and billingAddress it is required to provide a provisional id to be able to link the correct address-resource in the appropriate relationship. For orderItems and the pickUpPoint this is not required as these are effectively redundant. Resource orderAttachment is optional and, if provided, has to be set in included array (see the example below).
It is possible to submit pdf documents which will be printed-out and placed in the parcel with the products.
On order to make use of this print facility contact your account manager to arrange matters.
Upon successfulcreation of the orders and its orderItems the server responds with the complete order resource and related resources in a similar fashion as if invoked by a GET v3/orders/:id?include=orderItems,deliveryAddress,billingAddress,pickUpPoint.
object (orderIdentification) Identifies a resource as an | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object (order) An | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "data": {
- "id": 24006341,
- "type": "order",
- "included": [
- {
- "id": 1,
- "type": "orderItem",
- "attributes": {
- "sku": "VDB-400",
- "vat": 0.21,
- "name": "Van Dyke Brown - 400ml tube",
- "price": 13.95,
- "quantity": 3,
- "fulfillFrom": "NR"
}
}, - {
- "id": 2,
- "type": "orderItem",
- "attributes": {
- "sku": "TPB-100",
- "vat": 0.21,
- "name": "Phthalo Blue - 100ml tube",
- "price": 58,
- "quantity": 2,
- "fulfillFrom": "NR"
}
}, - {
- "id": 3,
- "type": "orderItem",
- "attributes": {
- "sku": "BRUSH-DAV-3",
- "vat": 0.21,
- "name": "Da Vinci Maestro Series 35 Brush Set",
- "price": 24.99,
- "quantity": 1
}
}, - {
- "id": 1,
- "type": "address",
- "attributes": {
- "city": "Leiden",
- "prefix": "van",
- "street1": "Weddesteeg",
- "lastName": "Rijn",
- "postcode": "2312 VD",
- "firstName": "Rembrandt",
- "countryCode": "NL",
- "houseNumber": "4",
- "houseNumberExtension": ""
}
}, - {
- "id": 2,
- "type": "address",
- "attributes": {
- "city": "Haarlem",
- "street1": "Groot Heiligland",
- "lastName": "Hals",
- "postcode": "2011 ES",
- "firstName": "Frans",
- "countryCode": "NL",
- "houseNumber": "62"
}
}
], - "attributes": {
- "email": "frans.hals@gmail.com",
- "locale": "nl-NL",
- "onHold": false,
- "currency": "EUR",
- "metadata": {
- "extra1": "Happy Birthday Rembrandt!"
}, - "orderedOn": "1656-07-01",
- "phoneNumber": "+31650607080",
- "promotionCode": "BIRTHDAY_BOY",
- "externalOrderNumber": "1656-07-15",
- "allowPartialDelivery": false,
- "preferredShippingDate": "2019-08-24"
}, - "relationships": {
- "orderType": {
- "data": {
- "id": 10045,
- "type": "orderType"
}
}, - "orderItems": {
- "data": [
- {
- "id": 1,
- "type": "orderItem"
}, - {
- "id": 2,
- "type": "orderItem"
}, - {
- "id": 3,
- "type": "orderItem"
}
]
}, - "billingAddress": {
- "data": {
- "id": 2,
- "type": "address"
}
}, - "deliveryAddress": {
- "data": {
- "id": 1,
- "type": "address"
}
}
}
}
}{- "data": {
- "id": 24006341,
- "type": "order",
- "attributes": {
- "externalOrderNumber": "1656-07-15",
- "orderedOn": "1656-07-01",
- "promotionCode": "BIRTHDAY_BOY",
- "currency": "EUR",
- "locale": "nl-NL",
- "email": "frans.hals@gmail.com",
- "phoneNumber": "+31650607080",
- "preferredShippingDate": "2019-08-24",
- "allowPartialDelivery": false,
- "onHold": false,
- "metadata": {
- "extra1": "Happy Birthday Rembrandt!"
}
}, - "relationships": {
- "orderType": {
- "data": {
- "id": 10045,
- "type": "orderType"
}
}, - "orderItems": {
- "data": [
- {
- "id": 1,
- "type": "orderItem"
}, - {
- "id": 2,
- "type": "orderItem"
}, - {
- "id": 3,
- "type": "orderItem"
}
]
}, - "deliveryAddress": {
- "data": {
- "id": 1,
- "type": "address"
}
}, - "billingAddress": {
- "data": {
- "id": 2,
- "type": "address"
}
}, - "preferredShippingMethod": {
- "data": {
- "id": 12,
- "type": "shippingMethod"
}
}
}, - "included": [
- {
- "id": 1,
- "type": "orderItem",
- "attributes": {
- "sku": "VDB-400",
- "quantity": 3,
- "fulfillFrom": "NR",
- "price": 13.95,
- "vat": 0.21,
- "name": "Van Dyke Brown - 400ml tube"
}
}, - {
- "id": 2,
- "type": "orderItem",
- "attributes": {
- "sku": "TPB-100",
- "quantity": 2,
- "fulfillFrom": "NR",
- "price": 58,
- "vat": 0.21,
- "name": "Phthalo Blue - 100ml tube"
}
}, - {
- "id": 3,
- "type": "orderItem",
- "attributes": {
- "sku": "BRUSH-DAV-3",
- "quantity": 1,
- "price": 24.99,
- "vat": 0.21,
- "name": "Da Vinci Maestro Series 35 Brush Set"
}
}, - {
- "id": 1,
- "type": "address",
- "attributes": {
- "firstName": "Rembrandt",
- "lastName": "Rijn",
- "prefix": "van",
- "street1": "Weddesteeg",
- "postcode": "2312 VD",
- "houseNumber": "4",
- "houseNumberExtension": "",
- "city": "Leiden",
- "countryCode": "NL"
}
}, - {
- "id": 2,
- "type": "address",
- "attributes": {
- "firstName": "Frans",
- "lastName": "Hals",
- "street1": "Groot Heiligland",
- "postcode": "2011 ES",
- "houseNumber": "62",
- "city": "Haarlem",
- "countryCode": "NL"
}
}
]
}
}Returns a specific order by the id assigned by Active Ants.
The endpoint also supports -to some degree- the inclusion of information of related resources.
The resources that can be included in the response are limited to the orderItems, the deliveryAddress, the billingAddress and the pickUpPoint. To get the details of related entities the include parameter must be added to the URI in the following way:
GET {host}/v3/orders?include=orderItems will return for each order the list of orderItems with their details.GET {host}/v3/orders?include=deliveryAddress,billingAddress,pickUpPoint will return all three types of addresses of each order if applicable.
Note that the deliveryAddress and billingAddress are both of type address whereas the pickUpPoint is of type pickUpPoint.| id required | string The unique id (integer) of the |
object (order) An | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "data": {
- "id": 24006341,
- "type": "order",
- "attributes": {
- "externalOrderNumber": "1656-07-15",
- "orderedOn": "1656-07-01",
- "promotionCode": "BIRTHDAY_BOY",
- "currency": "EUR",
- "locale": "nl-NL",
- "email": "frans.hals@gmail.com",
- "phoneNumber": "+31650607080",
- "preferredShippingDate": "2019-08-24",
- "allowPartialDelivery": false,
- "onHold": false,
- "metadata": {
- "extra1": "Happy Birthday Rembrandt!"
}
}, - "relationships": {
- "orderType": {
- "data": {
- "id": 10045,
- "type": "orderType",
}
}, - "orderItems": {
- "data": [
- {
- "id": 53150128,
- "type": "orderItem",
}, - {
- "id": 53150129,
- "type": "orderItem",
}, - {
- "id": 53150130,
- "type": "orderItem",
}
]
}, - "deliveryAddress": {
- "data": {
- "id": 1,
- "type": "address"
}
}, - "billingAddress": {
- "data": {
- "id": 2,
- "type": "address"
}
}, - "preferredShippingMethod": {
- "data": {
- "id": 12,
- "type": "shippingMethod"
}
}
}, - "included": [
- {
- "id": 53150128,
- "type": "orderItem",
- "attributes": {
- "sku": "VDB-400",
- "quantity": 3,
- "fulfillFrom": "NR",
- "price": 13.95,
- "vat": 0.21,
- "name": "Van Dyke Brown - 400ml tube"
},
}, - {
- "id": 53150129,
- "type": "orderItem",
- "attributes": {
- "sku": "TPB-100",
- "quantity": 2,
- "fulfillFrom": "NR",
- "price": 58,
- "vat": 0.21,
- "name": "Phthalo Blue - 100ml tube"
},
}, - {
- "id": 53150130,
- "type": "orderItem",
- "attributes": {
- "sku": "BRUSH-DAV-3",
- "quantity": 1,
- "price": 24.99,
- "vat": 0.21,
- "name": "Da Vinci Maestro Series 35 Brush Set"
},
}, - {
- "id": 1,
- "type": "address",
- "attributes": {
- "firstName": "Rembrandt",
- "lastName": "Rijn",
- "prefix": "van",
- "street1": "Weddesteeg",
- "postcode": "2312 VD",
- "houseNumber": "4",
- "city": "Leiden",
- "countryCode": "NL"
}
}, - {
- "id": 2,
- "type": "address",
- "attributes": {
- "firstName": "Frans",
- "lastName": "Hals",
- "street1": "Groot Heiligland",
- "postcode": "2011 ES",
- "houseNumber": "62",
- "city": "Haarlem",
- "countryCode": "NL"
}
}
]
}
}Invoking this endpoint will cause the server to make an effort to cancel an order by cancelling each of its orderItems. This may succeed when there is no shipment fulfilling any of the orderItems yet. Otherwise the cancellation will be at best partially successfull.
Depending on the result the server response will be slightly different. (See below and the examples)
The endpoint also supports -to some degree- the inclusion of information of related resources. The resources that can be included in the response are limited to the orderItems, the deliveryAddress, the billingAddress and the pickUpPoint. To get the details of related entities the include parameter must be added to the URI in the following way:
DELETE {host}/v3/orders?include=orderItems will attempt to cancel the order and return the order and all its orderItems in their new state.If the order was partially or completely cancelled (for example, if it was already partially fulfilled), the server will respond with a field meta.modified attribute set to true. This indicates that the order was modified. To determine which orderItems were modified as a result of this request, the server response will include an array of ids of orderItems in the element meta.modifiedItems. To determine the completeness of the cancellation, refer to the quantities on the orderItems.
If none of the orderItems of the order could be cancelled because they were already completely fulfilled, the server will still respond with a 200: OK. However, the attribute meta.modified will be set to false, indicating that the order was not modified as a result of this request.
| id required | string The unique id (integer) of the |
| include | Array of strings unique Items Enum: "orderItems" "deliveryAddress" "billingAddress" "pickUpPoint" Comma-separated list of |
object (order) An | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "data": {
- "id": 24006341,
- "type": "order",
- "attributes": {
- "externalOrderNumber": "1656-07-15T00:00:00.000Z",
- "orderedOn": "1656-07-01T00:00:00.000Z",
- "promotionCode": "BIRTHDAY_BOY",
- "currency": "EUR",
- "locale": "nl-NL",
- "email": "frans.hals@gmail.com",
- "phoneNumber": "+31650607080",
- "preferredShippingDate": "2019-08-24T00:00:00.000Z",
- "allowPartialDelivery": false,
- "onHold": false,
- "metadata": {
- "extra1": "Happy Birthday Rembrandt!"
}
}, - "relationships": {
- "orderType": {
- "data": {
- "id": 10045,
- "type": "orderType",
}
}, - "orderItems": {
- "data": [
- {
- "id": 53150128,
- "type": "orderItem",
}, - {
- "id": 53150129,
- "type": "orderItem",
}, - {
- "id": 53150130,
- "type": "orderItem",
}
]
}, - "deliveryAddress": {
- "data": {
- "id": 1,
- "type": "address"
}
}, - "billingAddress": {
- "data": {
- "id": 2,
- "type": "address"
}
}, - "preferredShippingMethod": {
- "data": {
- "id": 12,
- "type": "shippingMethod"
}
}
}, - "included": [
- {
- "id": 53150128,
- "type": "orderItem",
- "attributes": {
- "sku": "VDB-400",
- "quantity": 0,
- "fulfillFrom": "NR",
- "price": 13.95,
- "vat": 0.21,
- "name": "Van Dyke Brown - 400ml tube"
},
}, - {
- "id": 53150129,
- "type": "orderItem",
- "attributes": {
- "sku": "TPB-100",
- "quantity": 0,
- "fulfillFrom": "NR",
- "price": 58,
- "vat": 0.21,
- "name": "Phthalo Blue - 100ml tube"
},
}, - {
- "id": 53150130,
- "type": "orderItem",
- "attributes": {
- "sku": "BRUSH-DAV-3",
- "quantity": 0,
- "price": 24.99,
- "vat": 0.21,
- "name": "Da Vinci Maestro Series 35 Brush Set"
},
}
]
}, - "meta": {
- "modified": true,
- "modifiedItems": {
- "data": [
- {
- "id": 53150128,
- "type": "orderItem"
}, - {
- "id": 53150129,
- "type": "orderItem"
}, - {
- "id": 53150130,
- "type": "orderItem"
}
]
}
}
}This endpoint enables a client to make some changes to an existing order within certain limits. The order
cannot be modified after it is fulfilled in its entirety (i.e. there is nothing left to ship). The mutability of the attributes is indicated in the tables below.
When submitting changes for an order, the entire order in its desired state must be submitted; otherwise, the omitted fields may be erased.
order level| attribute | nullable | remarks |
|---|---|---|
externalOrderNumber |
no | The new value must also be unique. |
reference |
yes | Use an empty string to erase current value. |
consumerReference |
yes | Use an empty string to erase current value. |
promotionCode |
yes | Use an empty string to erase current value. |
email |
yes | When null or omitted, noreply@activeants.nl default will be used. |
locale |
no | |
phoneNumber |
yes | |
vatNumber |
yes | |
fulfillFrom |
yes | New warehouseCode must be part of the fulfillment strategy. |
preferredShippingDate |
yes | New date must be today or later. |
allowPartialDelivery |
yes | When null or omitted, the default for the orderType will take effect. |
onHold |
no | |
metadata/* |
yes | Note that not providing the full set will erase previous data. |
order level| attribute | remarks |
|---|---|
currency |
|
channelIdentifier |
Upon successful modification of the order, the server responds with the complete order resource and related resources in a similar fashion as if invoked by a GET v3/orders/:id?include=orderItems,deliveryAddress,billingAddress,pickUpPoint. It is the responsibility of the caller to validate that the changes made to the order are having the expected results.
When using this endpoint, the following limitations apply:
order's resource id. If not known, this can be obtained by invoking the GET v3/orders?filter[externalOrderNumber]={YOUR_ORDER_NUMBER}.orderItems.deliveryAddress, billingAddress, or pickUpPoint.preferredShippingMethod.orderType.| id required | string The unique id (integer) of the |
| include | Array of strings unique Items Enum: "orderItems" "deliveryAddress" "billingAddress" "pickUpPoint" Comma-separated list of |
object (orderIdentification) Identifies a resource as an | |||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
object (order) An | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "data": {
- "id": 24006341,
- "type": "order",
- "attributes": {
- "externalOrderNumber": "#1003-UK",
- "reference": "string",
- "orderedOn": "2019-08-24",
- "consumerReference": "string",
- "promotionCode": "BLACKFRIDAY",
- "locale": "nl-NL",
- "email": "consumer@example.com",
- "phoneNumber": "string",
- "vatNumber": "string",
- "fulfillFrom": "NR",
- "preferredShippingDate": "2019-08-24",
- "allowPartialDelivery": false,
- "onHold": false,
- "metadata": {
- "extra1": "string",
- "extra2": "string",
- "extra3": "string",
- "extra4": "string",
- "extra5": "string"
}
}
}
}{- "data": {
- "id": 24006341,
- "type": "order",
- "attributes": {
- "externalOrderNumber": "#1003-UK",
- "reference": "string",
- "orderedOn": "2019-08-24",
- "consumerReference": "string",
- "promotionCode": "BLACKFRIDAY",
- "locale": "nl-NL",
- "email": "consumer@example.com",
- "phoneNumber": "string",
- "vatNumber": "string",
- "fulfillFrom": "NR",
- "preferredShippingDate": "2019-08-24",
- "allowPartialDelivery": false,
- "onHold": false,
- "metadata": {
- "extra1": "string",
- "extra2": "string",
- "extra3": "string",
- "extra4": "string",
- "extra5": "string"
}, - "channelIdentifier": "2b55dd3c-b1d4-4107-acd2-56903ae5722b",
- "currency": "EUR"
}, - "relationships": {
- "orderType": {
- "data": {
- "id": 10045,
- "type": "orderType",
}
}, - "orderItems": {
- "data": [
- {
- "id": 52008118,
- "type": "orderItem",
}
]
}, - "deliveryAddress": {
- "data": {
- "id": 0,
- "type": "address"
}
}, - "billingAddress": {
- "data": {
- "id": 0,
- "type": "address"
}
}, - "pickUpPoint": {
- "data": {
- "id": 0,
- "type": "pickUpPoint"
}
}, - "preferredShippingMethod": {
- "data": {
- "id": 12,
- "type": "shippingMethod",
}
}
}, - "included": [
- {
- "id": 52008118,
- "type": "orderItem",
- "attributes": {
- "sku": "TSH-000-S",
- "channelIdentifier": "338fd344-c902-4b1c-8733-1e7fcd01495a",
- "quantity": 0,
- "fulfillFrom": "NR",
- "price": 0,
- "vat": "0.210",
- "name": "string",
- "metadata": {
- "serviceLevel": "premium",
- "purchases": "140",
- "reference": "#74571",
- "extra6": "string",
- "extra7": "string"
}
}, - "relationships": {
- "order": {
- "data": {
- "id": 24006341,
- "type": "order",
}
}, - "product": {
- "data": {
- "id": 1267733,
- "type": "product",
}
}
}
}
],
},
}Returns a specific orderItem by it's id.
The does not support inclusion of related resources.
object (orderItem) An | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "data": {
- "id": 52008118,
- "type": "orderItem",
- "attributes": {
- "sku": "TSH-000-S",
- "channelIdentifier": "338fd344-c902-4b1c-8733-1e7fcd01495a",
- "quantity": 0,
- "fulfillFrom": "NR",
- "price": 0,
- "vat": "0.210",
- "name": "string",
- "metadata": {
- "serviceLevel": "premium",
- "purchases": "140",
- "reference": "#74571",
- "extra6": "string",
- "extra7": "string"
}
}, - "relationships": {
- "order": {
- "data": {
- "id": 24006341,
- "type": "order",
}
}, - "product": {
- "data": {
- "id": 1267733,
- "type": "product",
}
}
},
},
}Invoking this endpoint will cause the server to make an effort to cancel an orderItem. This may succeed when there are no shipments fulfilling the orderItem yet. Otherwise the cancellation will be at best partially successfull. Depending on the outcome the server response will be (sligtly) different as outlined below
If the orderItem was partially or completely cancelled (for example, if it was already partially fulfilled), the server will respond with a field meta.modified attribute set to true. This indicates that the orderItem was modified. If the value of the quantity attribute equals zero then the orderItem was successfully cancelled. Otherwise, when the value is larger than zero, the orderItem was partially cancelled.
If the orderItem could not be cancelled, because it has already been fulfilled, the server will still respond also with a 200: OK. However, the attribute meta.modified will be set to false, indicating that the orderItem was not modified as a result of this request.
required | object (orderItemIdentification) Identifies a resource as an | ||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
{- "data": {
- "id": 52008118,
- "type": "orderItem",
- "attributes": {
- "sku": "TSH-000-S",
- "quantity": 0,
- "fulfillFrom": "NR",
- "price": 0,
- "vat": 0,
- "name": "string",
- "metadata": {
- "serviceLevel": "premium",
- "purchases": "140",
- "reference": "#74571",
- "extra6": "string",
- "extra7": "string"
}
},
}, - "meta": {
- "modified": true
}
}The POST /v3/orderAttachments endpoint allows linking an attachment to an
order for printing during the picking process.
⚠ See endpoint POST /v3/orders.
When submitting an orderAttachment, the order to which it will be attached must be created prior to
attaching, but before the order is fulfilled.
Upon successfulcreation of the orderAttachment the response will contain the
created orderAttachment resource and the relation to the order. The contents of the attachment is
suppressed from the response..
POST v3/orderAttachmentsThere are limitations to what and when orderAttachments can be attached to orders:
order is not completely fulfilled and some items remain to be shipped,
an orderAttachment can be added to the order. Attempting to add an orderAttachment afterwards
will result in an error.pdf documents can be submitted as orderAttachment.A4 or A5 are supported. So mixing of A4
with A5 formats is not possible in a single orderAttachment.orderAttachment.object (orderAttachmentIdentification) Identifies a resource as an | |||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
{ "data": { "id": 52005678, "type": "orderAttachment", "attributes": { "externalOrderNumber": "#1003-UK", "filename": "string", "contentType": "application/pdf", "printStrategy": "REQUIRED" }, "relationships": { "order": { "data": { "id": 24006341, "type": "order", "links": { "self": "https://shopapi.activeants.nl/v3/orders/24006341" } } } } } }
{- "data": {
- "data": {
- "id": 52005678,
- "type": "orderAttachment",
- "attributes": {
- "filename": "string",
- "contentType": "application/pdf",
- "printStrategy": "REQUIRED"
}, - "relationships": {
- "order": {
- "data": {
- "id": 24006341,
- "type": "order",
}
}
},
}
}
}Endpoints related to managing shipments for near-realtime notification of changes.
SHIPPED, all details in the shipment are subject to change.
Returns a collection of up to 100 shipment resources, non older than 90 days, that match the provided filerting criteria and allows for iterating over pages of more shipment resources if there are more available. The endpoint supports pagination and filtering as described in the chapters below.
The endpoint supports pagination to split the large collection of resources into smaller, more manageable chunks or pages. This helps to reduce the response size and to improve performance. The endpoint supports only cursor-based technique for pagination.
The GET v3/shipments endpoint supports filtering on the following attributes: shippedOn, orderType, status, orderId, externalOrderNumber. Each of these are explained below. Filters can be used in combination with eachother and with pagination as to allow full access to the desired subset of shipments.
shippedOnThe results returned by this service can be filtered based on the shipping date of the shipments. To do so make use of the filter[shippedOn] parameter in the following manner:
GET {host}/v3/shipments?filter[shippedOn][lt]={date} will return shipments that have shipped before the provided date. Shipments that shipped on that date are not included in the results.GET {host}/v3/shipments?filter[shippedOn][gt]={date} will return shipments that have shipped after the provided date. Shipments that shipped on that date are not included in the results.GET {host}/v3/shipments?filter[shippedOn][gt]={date_1}&filter[shippedOn][lt]={date_2} will return shipments that have shipped between dates {date_1} and {date_1}. Shipments that shipped on either date are not included in the results.statusThe results returned by this service can be filtered based on the status of the shipments. To do so make use of the filter[status][in] parameter in the following manner:
GET {host}/v3/shipments?filter[status][in]=READY_TO_SHIP,SHIPPED will return shipments that have been picked and packed and are awaiting pickup by the carrier or have been picked up by the carrier.GET {host}/v3/shipments?filter[status][in]=READY_TO_PICK will return shipments that are waiting for physical processing in the warehouse.orderTypeThe endpoint allows filtering on one or more orderType values of the order(s) that form the bases of the shipments. An orderType is a required paramter on the order and determines various asects of how the order should be processed. To filter on orderType use the filter[orderType][in] query parameter as follows:
GET {host}/v3/shipments?filter[orderType][in]=1 will return all shipments that belong to an order with the orderType set to 1.GET {host}/v3/shipments?filter[orderType][in]=5,6,7 will return all shipments that belong to an order with the orderType set to 5, 6 or 7.orderId, externalOrderNumber and referenceThe endpoint allows filtering on both orderId, externalOrderNumber and reference of the order(s) that the shipments are created for.
To filter using one or more of these filters follow the examples below:
GET {host}/v3/shipments?filter[orderId][in]=123 will return all shipments are created for an order with id equal to 123.
To filter on externalOrderNumber use the filter[externalOrderNumber][in] query parameter as follows:GET {host}/v3/shipments?filter[externalOrderNumber][in]=abc,123,1a2b will return all shipments that are created for orders with external order numbers set to corresponding values.GET {host}/v3/shipments?filter[orderId][in]=123&filter[externalOrderNumber][in]=abc will return all shipments that are created for orders with orderId = 123 and externalOrderNumber=abc.GET {host}/v3/shipments?filter[reference][in]=cust1,cust2,cust3 will return all shipments that are created for orders with reference set to corresponding values.The endpoint also supports -to some degree- the inclusion of information of related resources. To get the details of related entities the include parameter must be added to the URI in the following way:
GET {host}/v3/shipments?include=shipmentItems will return the shipment with all shipmentItems details.GET v3/shipmentsWhen using this endpoint, expect the following limits on the result set:
page[size] settings provided in the request.id of the shipment in ascending order.GET v3/shipments.| page[size] | integer ( 0 .. 100 ] Default: 100 optional parameter indicating the size of the page, i.e. the maximum number of entities in the response. |
| page[cursor] | integer >= 0 Default: 0 optional parameter, excludes |
| filter[status][in] | Array of strings (shipmentStatus) non-empty unique Items Enum: "READY_TO_PICK" "READY_TO_SORT" "READY_TO_SHIP" "SHIPPED" "ERROR" Examples:
A comma separated list of |
| filter[shippedOn][lt] | string <date> Filters the response to only return items that have a value for the attribute |
| filter[shippedOn][gt] | string <date> Filters the response to only return items that have a value for the attribute |
| filter[orderType][in] | Array of integers unique A comma separated list of |
| filter[reference][in] | Array of strings unique A comma separated list of |
| include | Array of strings unique Items Value: "shipmentItems" Comma-separated list of related resources to include into the response. |
| filter[orderId] | string A comma-separated list of order id's to filter by |
| filter[externalOrderNumber] | string A comma-separated list of external order numbers to filter by |
Array of objects (shipment) [ 0 .. 100 ] items | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array ([ 0 .. 100 ] items)
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object Pagination links that provided for convenience and in compliancy to the json:api specification for pagination. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "data": [
- {
- "id": 68076953,
- "type": "shipment",
- "attributes": {
- "status": "READY_TO_PICK",
- "readyToPickOn": "2023-11-10T12:04:00.110",
- "warehouseCode": "NR",
- "returnLabel": "string"
}, - "relationships": {
- "order": {
- "data": {
- "id": 24006341,
- "type": "order",
}
}, - "orderType": {
- "data": {
- "id": 10045,
- "type": "orderType",
}
}, - "shipmentItems": {
- "data": [
- {
- "id": 15368865,
- "type": "shipmentItem",
}
]
}, - "shippingMethod": {
- "data": {
- "id": 12,
- "type": "shippingMethod",
}
}
}, - "included": [
- {
- "id": 15368865,
- "type": "shipmentItem",
- "attributes": {
- "sku": "TSH-000-S",
- "quantity": 2,
- "lotNumber": "M008686",
- "expirationDate": "2028-10-14",
- "serialNumbers": [
- "2204190861003991"
]
}, - "relationships": {
- "orderItem": {
- "data": {
- "id": 52008118,
- "type": "orderItem",
}
}, - "product": {
- "data": {
- "id": 1267733,
- "type": "product",
}
}
}
}
],
}, - {
- "id": 68076999,
- "type": "shipment",
- "attributes": {
- "status": "SHIPPED",
- "readyToPickOn": "2023-11-10T12:04:00.110",
- "readyToShipOn": "2023-11-10T15:17:22.299",
- "shippedOn": "2020-08-24T20:45:54.570",
- "warehouseCode": "GN",
- "returnLabel": "string"
}, - "relationships": {
- "order": {
- "data": {
- "id": 24006873,
- "type": "order",
}
}, - "orderType": {
- "data": {
- "id": 10045,
- "type": "orderType",
}
}, - "shipmentItems": {
- "data": [
- {
- "id": 15368865,
- "type": "shipmentItem",
}
]
}, - "shippingMethod": {
- "data": {
- "id": 12,
- "type": "shippingMethod",
}
}
}, - "included": [
- {
- "id": 15363222,
- "type": "shipmentItem",
- "attributes": {
- "sku": "TSH-000-S",
- "quantity": 2,
- "lotNumber": "M008686",
- "expirationDate": "2028-10-14",
- "serialNumbers": [
- "2204190861003991"
]
}, - "relationships": {
- "orderItem": {
- "data": {
- "id": 52007743,
- "type": "orderItem",
}
}, - "product": {
- "data": {
- "id": 1267733,
- "type": "product",
}
}
}
}
],
}
],
}This endpoint returns a single shipment resource. The request requires a path parameter which is the id of the shipment to fetch. It returns only a shipment if it can be be found and the associated id belongs to a shipment that was generated as a result of an order.
The endpoint also supports -to some degree- the inclusion of information of related resources. To get the details of related entities the include parameter must be added to the URI in the following way:
GET {host}/v3/shipments?include=shipmentItems will return the shipment with all shipmentItems details.GET v3/shipments/:idWhen using this endpoint, expect the following limits on the result set
GET v3/shipments but when requesting the shipment through GET v3/shipments/:id direcly may yield results.| id required | string The unique id (integer) of the |
| include | Array of strings unique Items Value: "shipmentItems" Comma-separated list of related resources to include into the response. |
object (shipment) Represents a single | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "data": {
- "id": 68076953,
- "type": "shipment",
- "attributes": {
- "status": "SHIPPED",
- "readyToPickOn": "2023-11-10T12:04:00.110",
- "readyToShipOn": "2023-11-10T15:17:22.299",
- "shippedOn": "2020-08-24T20:45:54.570",
- "warehouseCode": "NR",
- "returnLabel": "string"
}, - "relationships": {
- "order": {
- "data": {
- "id": 24006341,
- "type": "order",
}
}, - "orderType": {
- "data": {
- "id": 10045,
- "type": "orderType",
}
}, - "shipmentItems": {
- "data": [
- {
- "id": 15368865,
- "type": "shipmentItem",
}
]
}, - "shippingMethod": {
- "data": {
- "id": 12,
- "type": "shippingMethod",
}
}
}, - "included": [
- {
- "id": 15368865,
- "type": "shipmentItem",
- "attributes": {
- "sku": "TSH-000-S",
- "quantity": 2,
- "lotNumber": "M008686",
- "expirationDate": "2028-10-14",
- "serialNumbers": [
- "2204190861003991"
]
}, - "relationships": {
- "orderItem": {
- "data": {
- "id": 52008118,
- "type": "orderItem",
}
}, - "product": {
- "data": {
- "id": 1267733,
- "type": "product",
}
}
}
}
],
},
}The GET v3/returnItems endpoint returns all returns that have been processed by one of the warehouses of Active Ants. Returns that have been delivered to, but not processed by, Active Ants are not returned by this endpoint yet until these returns are processed.
The endpoint supports pagination to split the large collection of resources into smaller, more manageable chunks or pages. This helps to reduce the response size and to improve performance. The endpoint supports only cursor-based technique for pagination
The GET v3/returnItem endpoint supports filtering on processedOn. Each of these are explained below. Filters can be used in combination with eachother and with pagination to allow full access to the desired subset of returnItems.
restockOn and the filters filter[restockOn][before] and filter[restockOn][after]
are under development.
processedOnThe results returned by this service can be filtered based on the date the returnItem was processed in the warehouse. To do so make use of the filter[processedOn] parameter in the following manner:
GET {host}/v3/returnItems?filter[processedOn][lt]={date} will return returned items that have been created before the provided date. Returned items that has been processed on that date are not included in the results.GET {host}/v3/returnItems?filter[processedOn][gt]={date} will return returned items that have been created after the provided date. Returned items that have been processed on that date are not included in the results.GET {host}/v3/returnItems?filter[processedOn][gt]={date_1}&filter[processedOn][lt]={date_2} will return returned itemsthat have created between dates {date_1} and {date_1}. Returned items that have been processed on either date are not included in the results.There are currently no resources to include in the response.
GET v3/returnItemsreturnItems resources are returned regardless of the value provided by the page[size] query parameter.id and in ascending order.| filter[processedOn][gt] | string <date> Example: filter[processedOn][gt]=2023-01-01 Filters the response to only return items that have been processed after the specified date. |
| filter[processedOn][lt] | string <date> Example: filter[processedOn][lt]=2023-01-01 Filters the response to only return items that have been processed before the specified date. |
Array of objects (returnItem) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object Pagination links that provided for convenience and in compliancy to the json:api specification for pagination. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "data": [
- {
- "id": 5432554,
- "type": "returnItem",
- "attributes": {
- "sku": "TSH-000-S",
- "quantity": 0,
- "condition": "RETURN",
- "processedOn": "2023-01-17",
- "processedIn": "NR",
- "restockIn": "NR",
- "restockOn": "2023-06-27T10:03:07.463",
- "comment": "string",
- "redeliver": true,
- "externalOrderNumber": "#1003-UK"
}, - "relationships": {
- "order": {
- "data": {
- "id": 24006341,
- "type": "order",
}
}, - "orderItem": {
- "data": {
- "id": 52008118,
- "type": "orderItem",
}
}, - "product": {
- "data": {
- "id": 1267733,
- "type": "product",
}
}, - "return": {
- "data": {
- "id": 54346,
- "type": "return",
}
}, - "returnAuthorizationItem": {
- "data": {
- "id": 13501,
- "type": "returnAuthorizationItem",
}
}, - "returnReason": {
- "data": {
- "id": 16,
- "type": "returnReason",
}
}, - "shipmentItem": {
- "data": {
- "id": 15368865,
- "type": "shipmentItem",
}
}
},
}
],
}Allows the retreival of a specific inbound and its related details.
The endpoint also supports the inclusion of information of its related inboundItems negating the
need to access these directly.
GET {host}/v3/inbounds?include=inboundItems will return for each inbound the list
of inboundItems with their details.| id required | string The unique id (integer) of the |
| include | Array of strings unique Items Value: "inboundItems" Examples:
Comma-separated list of |
object (inbound) In the context of Active Ants, an | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "data": {
- "id": 0,
- "type": "inbound",
- "attributes": {
- "reference": "string",
- "status": "COMPLETED",
- "receivedIn": "NR",
- "createdOn": "2019-08-24T14:15:22Z",
- "checkingOn": "2019-08-24T14:15:22Z",
- "completedOn": "2019-08-24T14:15:22Z"
}, - "relationships": {
- "inboundPackingSlip": {
- "data": {
- "id": 9067,
- "type": "inboundPackingSlip",
}
}
}, - "included": [
- {
- "id": 673333,
- "type": "inboundItem",
- "attributes": {
- "quantity": 0,
- "sku": "TSH-000-S",
- "lotNumber": "M008686",
- "expirationDate": "2050-01-02"
}, - "relationships": {
- "product": {
- "data": {
- "id": 1267733,
- "type": "product",
}
}, - "inboundPackingSlipItem": {
- "data": {
- "id": 124431,
- "type": "inboundPackingSlipItem",
}
}
}
}
],
},
}Allows the retreival of multiple inbounds and their related details. This endpoint support pagination and various filters as indicated below.
The endpoint supports pagination to split the large collection of resources into smaller, more manageable chunks or pages. This helps to reduce the response size and to improve performance. The endpoint supports only cursor-based technique for pagination.
The GET v3/inbounds endpoint supports filtering on the following attributes: status.
statusThe end point allows to set a filter on the status of the inbounds. The filter accepts
multiple status values, each of which must be URL encoded and separated by a comma.
Be aware that the status values must be URL encoded to avoid being interpreted incorrecly.
GET {host}/v3/inbounds?filter[status][in]=ABC,DEF will return the inbounds with status ABC and DEF.GET {host}/v3/inbounds?filter[status][in]=ABC%2CDEF will return the inbounds with the status ABC,DEF.The endpoint also supports the inclusion of information of its related inboundItems negating
the need to access these directly.
GET {host}/v3/inbounds?include=inboundItems will return for each inbound the list of inboundItems with their details.
When using this endpoint, expect the following limits on the result set
inbounds will be returned regardless of the page[size] settings provided in the request.id of the inbound in ascending order.| filter[status][in] | Array of strings (inboundStatus) non-empty unique Items Enum: "PROCESSING" "CHECKING" "CHECKED" "COMPLETED" Examples:
A comma separated list of |
| include | Array of strings unique Items Value: "inboundItems" Examples:
Comma-separated list of |
Array of objects (inbound) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object Pagination links that provided for convenience and in compliancy to the json:api specification for pagination. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "data": [
- {
- "id": 0,
- "type": "inbound",
- "attributes": {
- "reference": "string",
- "status": "COMPLETED",
- "receivedIn": "NR",
- "createdOn": "2019-08-24T14:15:22Z",
- "checkingOn": "2019-08-24T14:15:22Z",
- "completedOn": "2019-08-24T14:15:22Z"
}, - "relationships": {
- "inboundPackingSlip": {
- "data": {
- "id": 9067,
- "type": "inboundPackingSlip",
}
}
}, - "included": [
- {
- "id": 673333,
- "type": "inboundItem",
- "attributes": {
- "quantity": 0,
- "sku": "TSH-000-S",
- "lotNumber": "M008686",
- "expirationDate": "2050-01-02"
}, - "relationships": {
- "product": {
- "data": {
- "id": 1267733,
- "type": "product",
}
}, - "inboundPackingSlipItem": {
- "data": {
- "id": 124431,
- "type": "inboundPackingSlipItem",
}
}
}
}
],
}
],
}| id required | string The unique id (integer) of the |
| id | integer | ||||||||||||||||||||||||||||||||||||
| type | any Value: "inboundItem" | ||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
{- "id": 673333,
- "type": "inboundItem",
- "attributes": {
- "quantity": 0,
- "sku": "TSH-000-S",
- "lotNumber": "M008686",
- "expirationDate": "2050-01-02"
}, - "relationships": {
- "product": {
- "data": {
- "id": 1267733,
- "type": "product",
}
}, - "inboundPackingSlipItem": {
- "data": {
- "id": 124431,
- "type": "inboundPackingSlipItem",
}
}
},
}Allows the retrieval of inboundPackingSlips and their current status. This endpoint support pagination and various filters as indicated below.
The endpoint supports pagination to split the large collection of resources into smaller, more manageable chunks or pages. This helps to reduce the response size and to improve performance. The endpoint supports only the cursor-based technique for pagination.
The GET v3/inboundPackingSlips endpoint supports filtering on the following attributes: status, receivedOn and completedOn. Each of these are explained below. Filters can be used in combination with each other and with pagination to allow full access to the desired subset of inboundPackingSlip resources.
statusThe end point allows to set a filter on the current status of inboundPackingSlips. For more details on the various statusses see inboundPackingSlipStatus.
GET {host}/v3/inboundPackingSlips?filter[status][in]=EXPECTED,COMPLETED will return all inboundPackingSlips that have either the status EXPECTED or COMPLETED.receivedOnTo filter inboundPackingSlips for which the inbound has been received before or after a particular date it is possible to specify the filter[receivedOn][lt] and filter[receivedOn][lt]. The received on date represents the date at which the inbound has started.
completedOnTo filter inboundPackingSlips for which the inbound has been completely processed and completed before or after a particular date it is possible to specify the filter[completedOn][lt] and filter[completedOn][lt]. The value of the completedOn attribute represents the date at which the inbound was completed and no further items are expected.
The endpoint also supports -to some degree- the inclusion of information of related resources. The resources that can be included in the response are limited to inboundPackingSlipItems.
To get the details of related entities included in the response make use of the include query-parameter in the following way:
GET {host}/v3/inboundPackingSlips?include=inboundPackingSlipItems will return for each inboundPackingSlip the list of inboundPackingSlipItems with their details.When using this endpoint, expect the following limits on the result set
inboundPackingSlips older than 90 days are not returned using this method.inboundPackingSlips will be returned regardless of the page[size] settings provided in the request.inboundPackingSlip in ascending order.| include | Array of strings unique Items Value: "inboundPackingSlipItems" Examples:
Comma-separated list of |
| page[cursor] | integer >= 0 Default: 0 optional parameter, excludes |
| page[size] | integer ( 0 .. 100 ] Default: 100 optional parameter indicating the size of the page, i.e. the maximum number of entities in the response. |
| filter[receivedOn][gt] | string <date> Examples:
Filters the response to only return items that have a value for the attribute |
| filter[receivedOn][lt] | string <date> Examples:
Filters the response to only return items that have a value for the attribute |
| filter[completedOn][gt] | string <date> Examples:
Filters the response to only return items that have a value for the attribute |
| filter[completedOn][lt] | string <date> Examples:
Filters the response to only return items that have a value for the attribute |
| filter[status][in] | Array of strings (inboundPackingSlipStatus) non-empty unique Items Enum: "EXPECTED" "IN_PROGRESS" "CHECKING" "COMPLETED" Examples:
A comma separated list of |
Array of objects (inboundPackingSlip) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object Pagination links that provided for convenience and in compliancy to the json:api specification for pagination. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "data": [
- {
- "id": 9067,
- "type": "inboundPackingSlip",
- "attributes": {
- "expectedIn": "NR",
- "expectedOn": "2019-08-24",
- "receivedOn": "2019-08-24T14:15:22Z",
- "completedOn": "2019-08-24T14:15:22Z",
- "reference": "string",
- "status": "EXPECTED",
- "comments": "string",
- "metadata": {
- "serviceLevel": "premium",
- "purchases": "140",
- "reference": "#74571"
}
}, - "relationships": {
- "inboundPackingSlipItems": {
- "data": [
- {
- "id": 124431,
- "type": "inboundPackingSlipItem",
}
]
}, - "inbound": {
- "data": {
- "id": 0,
- "type": "inbound",
}
}
}, - "included": [
- {
- "id": 124431,
- "type": "inboundPackingSlipItem",
- "attributes": {
- "sku": "TSH-000-S",
- "quantity": 55,
- "received": 50
}
}
],
}
],
}Using this endpoint it is possible to create a new inboundPackingSlip for an inbound that is to be expected in one of the warehouses of Active Ants.
Note that an inboundPackingSlip and its related inboundPackingSlipItems can be created in one invocation by making use of the included relationship as shown in the example request body.
POST /v3/inboundPackingSlipsinboundPackingSlip must have a unique reference not used before.sku must be of a product that exists prior to creating the inboundPackingSlip.sku can occur only once on an inboundPackingSlip, adding multiple inboundPackingSlipItems
for the same sku will result in a single inboundPackingSlipItem with the sum of the quantities.quantity must be 1 or larger.warehouseCode provided in the expectedIn must exist and must be a valid warehouse to receive goods in. (For more information contact your account manager).object (inboundPackingSlipIdentification) Identifies a resource as a | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
object (inboundPackingSlip) In the context of Active Ants, an | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "data": {
- "type": "inboundPackingSlip",
- "attributes": {
- "expectedIn": "NR",
- "expectedOn": "2023-01-01",
- "reference": "summer-collection-2023",
- "comments": "careful please, this is the new summer collection",
- "metadata": {
- "season": "summer",
- "year": "2023"
}
}, - "relationships": { },
- "included": [
- {
- "id": 1,
- "type": "inboundPackingSlipItem",
- "attributes": {
- "sku": "TROUSERS",
- "quantity": 100
}
}, - {
- "id": 2,
- "type": "inboundPackingSlipItem",
- "attributes": {
- "sku": "SKIRT",
- "quantity": 120
}
}, - {
- "id": 3,
- "type": "inboundPackingSlipItem",
- "attributes": {
- "sku": "BLOUSE",
- "quantity": 150
}
}, - {
- "id": 4,
- "type": "inboundPackingSlipItem",
- "attributes": {
- "sku": "SHIRTS",
- "quantity": 100
}
}
]
}
}{- "data": {
- "id": 9067,
- "type": "inboundPackingSlip",
- "attributes": {
- "expectedIn": "NR",
- "expectedOn": "2023-01-01",
- "reference": "summer-collection-2023",
- "comments": "careful please, this is the new summer collection",
- "status": "EXPECTED",
- "metadata": {
- "season": "summer",
- "year": "2023"
}
}, - "relationships": {
- "inboundPackingSlipItems": {
- "data": [
- {
- "type": "inboundPackingSlipItem",
- "id": 12441
}, - {
- "type": "inboundPackingSlipItem",
- "id": 12442
}, - {
- "type": "inboundPackingSlipItem",
- "id": 12443
}, - {
- "type": "inboundPackingSlipItem",
- "id": 12444
}
]
}
}, - "included": [
- {
- "id": 12441,
- "type": "inboundPackingSlipItem",
- "attributes": {
- "sku": "TROUSERS",
- "quantity": 100
}
}, - {
- "id": 12442,
- "type": "inboundPackingSlipItem",
- "attributes": {
- "sku": "SKIRT",
- "quantity": 120
}
}, - {
- "id": 12443,
- "type": "inboundPackingSlipItem",
- "attributes": {
- "sku": "BLOUSE",
- "quantity": 150
}
}, - {
- "id": 12444,
- "type": "inboundPackingSlipItem",
- "attributes": {
- "sku": "SHIRTS",
- "quantity": 100
}
}
],
}
}Allows the retreival of a inboundPackingSlip by its id along with its current status and optionally all inboundPackingSlipItems that are part of the inboundPackingSlip.
The endpoint also supports -to some degree- the inclusion of information of related resources.
The resources that can be included in the response are limited to inboundPackingSlipItems.
To get the details of related entities included in the response make use of the include query-parameter in the following way:
GET {host}/v3/inboundPackingSlips?include=inboundPackingSlipItems will return for each inboundPackingSlip the list of inboundPackingSlipItems with their details.| id required | string The unique id (integer) of the |
| include | Array of strings unique Items Value: "inboundPackingSlipItems" Examples:
Comma-separated list of |
object (inboundPackingSlip) In the context of Active Ants, an | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "data": {
- "id": 9067,
- "type": "inboundPackingSlip",
- "attributes": {
- "expectedIn": "NR",
- "expectedOn": "2019-08-24",
- "receivedOn": "2019-08-24T14:15:22Z",
- "completedOn": "2019-08-24T14:15:22Z",
- "reference": "string",
- "status": "EXPECTED",
- "comments": "string",
- "metadata": {
- "serviceLevel": "premium",
- "purchases": "140",
- "reference": "#74571"
}
}, - "relationships": {
- "inboundPackingSlipItems": {
- "data": [
- {
- "id": 124431,
- "type": "inboundPackingSlipItem",
}
]
}, - "inbound": {
- "data": {
- "id": 0,
- "type": "inbound",
}
}
}, - "included": [
- {
- "id": 124431,
- "type": "inboundPackingSlipItem",
- "attributes": {
- "sku": "TSH-000-S",
- "quantity": 55,
- "received": 50
}
}
],
},
}v3/products/* endpoints are rate limited to 500 requests per hour per user. When exceeding this limit the server will respond with a 429 Too Many Requests error.
Allows the retrieval of multiple products and their related details. This endpoint supports pagination and various filters as indicated below.
The endpoint supports pagination to split the large collection of resources into smaller, more manageable chunks or pages. This helps to reduce the response size and to improve performance. The endpoint supports only cursor-based pagination.
The GET v3/products endpoint supports filtering on the following attributes: sku and barcode. Each of these is explained below. Filters can be used in combination with each other and with pagination to allow full access to the desired subset of product resources.
skuThe endpoint allows setting a filter on the sku of products. The filter accepts multiple sku values, each of which must be URL encoded and separated by a comma. Each sku returns at most one product resource but could also return none. Be aware that the SKUs must be URL encoded to avoid being interpreted incorrectly.
GET {host}/v3/products?filter[sku][in]=ABC,DEF will return the products with sku ABC and DEF.GET {host}/v3/products?filter[sku][in]=ABC%2CDEF will return the product with the sku ABC,DEF.barcodeThe endpoint allows setting a filter on the barcode of products. The filter accepts multiple barcode values, each of which must be URL encoded and separated by a comma. Each barcode returns at most one product resource but could also return none. Be aware that the barcodes must be URL encoded to avoid being interpreted incorrectly.
GET {host}/v3/products?filter[barcode][in]=848017,748222 will return the products with barcodes 848017 and 748222.GET {host}/v3/products?filter[barcode][in]=848017%2C748222 will return the product with the barcode 848017,748222.This endpoint does not support inclusion of other resources.
When using this endpoint, expect the following limits on the result set:
products will be returned regardless of the page[size] settings provided in the request.id of the product in ascending order.filter[sku][in] and filter[barcode][in], will result in products having both these values).| filter[sku][in] | Array of strings (productSku) non-empty unique [ items [ 2 .. 80 ] characters ^[\x21-\x7E][\x20-\x7E]*[\x21-\x7E]$ ] Examples:
A comma separated list of |
| filter[barcode][in] | Array of strings (productBarcode) non-empty unique [ items [ 2 .. 80 ] characters ^[\x21-\x7E][\x20-\x7E]*[\x21-\x7E]$ ] Examples:
A comma separated list of |
Array of objects (products) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object Pagination links that provided for convenience and in compliancy to the json:api specification for pagination. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "data": [
- {
- "id": 540935,
- "type": "product",
- "attributes": {
- "sku": "VDB-400",
- "status": "AVAILABLE",
- "stockLevelType": "AVAILABLE",
- "type": "DEFAULT",
- "weight": 326,
- "length": 310,
- "width": 220,
- "height": 29,
- "name": "Van Dyke Brown - 400ml tube",
- "hasBarcode": true,
- "barcode": "8719558651276",
- "hasLotNumber": true,
- "hasSerialNumber": false,
- "hasExpirationDate": false,
- "expirationDateMargin": 0,
- "expirationDateWarning": 0,
- "countryOfOrigin": "NL",
- "hsCodes": [
- {
- "country": "XX",
- "hsCode": "3213109000"
}
]
}
}, - {
- "id": 540936,
- "type": "product",
- "attributes": {
- "sku": "TPB-100",
- "status": "AVAILABLE",
- "stockLevelType": "AVAILABLE",
- "type": "DEFAULT",
- "weight": 325,
- "length": 310,
- "width": 220,
- "height": 29,
- "name": "Phthalo Blue - 100ml tube",
- "hasBarcode": true,
- "barcode": "8719558651283",
- "hasLotNumber": true,
- "hasSerialNumber": false,
- "hasExpirationDate": false,
- "expirationDateMargin": 0,
- "expirationDateWarning": 0,
- "countryOfOrigin": "NL",
- "hsCodes": [
- {
- "country": "XX",
- "hsCode": "3213109000"
}
]
}
}, - {
- "id": 540937,
- "type": "product",
- "attributes": {
- "sku": "BRUSH-DAV-3",
- "status": "AVAILABLE",
- "stockLevelType": "AVAILABLE",
- "type": "DEFAULT",
- "weight": 333,
- "length": 310,
- "width": 220,
- "height": 29,
- "name": "Da Vinci Maestro Series 35 Brush Set",
- "hasBarcode": true,
- "barcode": "8719558651290",
- "hasLotNumber": true,
- "hasSerialNumber": false,
- "hasExpirationDate": false,
- "expirationDateMargin": 0,
- "expirationDateWarning": 0,
- "countryOfOrigin": "PT",
- "hsCodes": [
- {
- "country": "XX",
- "hsCode": "9603304000"
}
]
}
}
], - "included": null,
}When using this endpoint, expect the following limitations are applicable
sku must be unique and never used before in the context of the user.barcode must be unique and never used before in the context of the user.name is used both internally and towards consumer communication, however it is possible to specify a different name during ordering on the orderItem which will be used within that order and related shipment(s)hsCode limitations:hsCodes make use of country XX to denote the default hsCode to use in most scenarios. hsCode is provided, but none have country XX, the system will copy EU, NL or the first entry as the default/fallback hsCode.hsCodes are not formatted and consist of digits only. Other characters will be stripped from the code.expirationDate set to SCAN_AT_INBOUND.expirationDateMargin to a positive number.expirationDateWarning to be number equal or larger than expirationDateMargin.object (productIdentifier) Identifies a resource as a | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object (product) Identifies a resource as a | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "data": {
- "id": 1267733,
- "type": "product",
- "attributes": {
- "sku": "VDB-400",
- "status": "AVAILABLE",
- "stockLevelType": "ECONOMIC",
- "name": "Van Dyke Brown - 400ml tube",
- "description": "Introducing Van Dyke Brown - the ultimate artist's companion. This 400ml tube of pure artistic excellence brings a new level of depth and richness to your creations. Crafted with precision and passion, Van Dyke Brown is a luxurious oil paint designed to inspire and captivate. Its intense, earthy hue evokes a sense of warmth and nostalgia, lending a timeless appeal to your artwork. With exceptional lightfastness and unmatched pigment concentration, this tube ensures your masterpieces will stand the test of time. Whether you're a professional artist or an aspiring enthusiast, Van Dyke Brown is the perfect choice for expressing your creativity.",
- "hasBarcode": true,
- "barcode": "8001001",
- "hasLotNumber": true,
- "hasSerialNumber": false,
- "hasExpirationDate": false,
- "countryOfOrigin": "NL",
- "hsCodes": [
- {
- "country": "EU",
- "hsCode": "32139000"
}, - {
- "country": "GB",
- "hsCode": "321300"
}
]
}
}
}{- "data": {
- "id": 1267733,
- "type": "product",
- "attributes": {
- "sku": "TSH-000-S",
- "status": "AVAILABLE",
- "stockLevelType": "ECONOMIC",
- "type": "BUNDLE",
- "weight": 154,
- "length": 33,
- "width": 65,
- "height": 125,
- "name": "Dog Shampoo 100ml",
- "description": "Experience the ultimate pampering for your furry friend with our premium 100ml Dog Shampoo. Specially designed with your canine companion in mind, this gentle and nourishing formula will leave their coat looking and feeling fabulous. Every drop of our shampoo is packed with the finest natural ingredients, carefully selected to provide optimal cleansing without causing any irritation or dryness.",
- "hasBarcode": false,
- "barcode": "TSH-000-S",
- "hasLotNumber": false,
- "hasSerialNumber": false,
- "hasExpirationDate": false,
- "expirationDateMargin": 0,
- "expirationDateWarning": 0,
- "countryOfOrigin": "NL",
- "hsCodes": [
- {
- "country": "NL",
- "hsCode": 620342
}
], - "purchasePrice": [
- {
- "currency": "EUR",
- "amount": "9,55"
}
], - "metadata": {
- "extra1": "string",
- "extra2": "string",
- "extra3": "string",
- "extra4": "string",
- "extra5": "string"
}
}, - "relationships": {
- "stockLevels": {
- "data": {
- "id": 0,
- "type": "stockLevel",
}
}, - "parts": {
- "data": [
- {
- "id": 1267733,
- "type": "product",
- "quantity": 0,
}
]
}
},
},
}Allows the retreival of a specific product and its related details by its id.
This endpoint does not support inclusion of other resources.
| id required | string The unique id (integer) of the |
object (product) Identifies a resource as a | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "data": {
- "id": 540935,
- "type": "product",
- "attributes": {
- "sku": "VDB-400",
- "status": "AVAILABLE",
- "stockLevelType": "AVAILABLE",
- "type": "DEFAULT",
- "weight": 326,
- "length": 310,
- "width": 220,
- "height": 29,
- "name": "Van Dyke Brown - 400ml tube",
- "hasBarcode": true,
- "barcode": "8719558651276",
- "hasLotNumber": true,
- "hasSerialNumber": false,
- "hasExpirationDate": false,
- "expirationDateMargin": 0,
- "expirationDateWarning": 0,
- "countryOfOrigin": "NL",
- "hsCodes": [
- {
- "country": "XX",
- "hsCode": "3213109000"
}
]
}
}, - "included": null,
}Enables updating and modifying product information related details by its id. Note that not all attributes can be modified once the product is created and others are not mutable through the API.
This endpoint does not support inclusion of other resources.
When using this endpoint, expect the following limitations
product can not be modified, or only under certain conditions and result in a 409 Conflict:sku sku changes are not supported.barcode can be changed as long as there is no stock for that product. weight this attribute is determined during the first inbound.length, width and height these attributes are determined during the first inbound.| id required | string The unique id (integer) of the |
object (product) Identifies a resource as a | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object (product) Identifies a resource as a | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "data": {
- "type": "product",
- "attributes": {
- "sku": "TSH-000-S",
- "status": "AVAILABLE",
- "stockLevelType": "ECONOMIC",
- "name": "Dog Shampoo 100ml",
- "description": "Experience the ultimate pampering for your furry friend with our premium 100ml Dog Shampoo. Specially designed with your canine companion in mind, this gentle and nourishing formula will leave their coat looking and feeling fabulous. Every drop of our shampoo is packed with the finest natural ingredients, carefully selected to provide optimal cleansing without causing any irritation or dryness.",
- "hasBarcode": false,
- "barcode": "TSH-000-S",
- "hasLotNumber": false,
- "hasSerialNumber": false,
- "hasExpirationDate": false,
- "expirationDateMargin": 0,
- "expirationDateWarning": 0,
- "countryOfOrigin": "NL",
- "hsCodes": [
- {
- "country": "NL",
- "hsCode": 620342
}
], - "purchasePrice": [
- {
- "currency": "EUR",
- "amount": "9,55"
}
], - "metadata": {
- "extra1": "string",
- "extra2": "string",
- "extra3": "string",
- "extra4": "string",
- "extra5": "string"
}
}, - "relationships": {
- "stockLevels": {
- "data": {
- "id": 0,
- "type": "stockLevel",
}
}, - "parts": {
- "data": [
- {
- "type": "product",
- "quantity": 0,
- "links": { }
}
]
}
}, - "links": { }
}
}{- "data": {
- "id": 1267733,
- "type": "product",
- "attributes": {
- "sku": "TSH-000-S",
- "status": "AVAILABLE",
- "stockLevelType": "ECONOMIC",
- "type": "BUNDLE",
- "weight": 154,
- "length": 33,
- "width": 65,
- "height": 125,
- "name": "Dog Shampoo 100ml",
- "description": "Experience the ultimate pampering for your furry friend with our premium 100ml Dog Shampoo. Specially designed with your canine companion in mind, this gentle and nourishing formula will leave their coat looking and feeling fabulous. Every drop of our shampoo is packed with the finest natural ingredients, carefully selected to provide optimal cleansing without causing any irritation or dryness.",
- "hasBarcode": false,
- "barcode": "TSH-000-S",
- "hasLotNumber": false,
- "hasSerialNumber": false,
- "hasExpirationDate": false,
- "expirationDateMargin": 0,
- "expirationDateWarning": 0,
- "countryOfOrigin": "NL",
- "hsCodes": [
- {
- "country": "NL",
- "hsCode": 620342
}
], - "purchasePrice": [
- {
- "currency": "EUR",
- "amount": "9,55"
}
], - "metadata": {
- "extra1": "string",
- "extra2": "string",
- "extra3": "string",
- "extra4": "string",
- "extra5": "string"
}
}, - "relationships": {
- "stockLevels": {
- "data": {
- "id": 0,
- "type": "stockLevel",
}
}, - "parts": {
- "data": [
- {
- "id": 1267733,
- "type": "product",
- "quantity": 0,
}
]
}
},
},
}Allows the user to add or update the commercial image of a single products. The commercial image is used as reference image in when searching products in Maya and has no functional implications. Internally different images of the product are used for recognition and processing, however the commercial image may be relevant when dealing with consumer related issues about the product.
image/pngimage/x-pngimage/apngimage/jpgimage/jpegimage/pjpegimage/gif (not recommended)image/bmp (not recommended)image/webp (partially, may cause issues)application/x-photoshop (can't be rendered properly, but is accepted)| id required | integer Examples: 1267733 The |
The (commercial) product image to attach to the product for reference.
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
nullThe GET v3/stock endpoint will return up to 100 stock records at a time. The definition of stock is products at a stockLocation with shared characteristics. This means that whenever two identical products are located at the same stockLocation, that both share all related attributes such as lotNumber, expirationDate, etc.
The endpoint supports pagination to split the large collection of resources into smaller, more manageable chunks or pages. This helps to reduce the response size and to improve performance. The endpoint supports only cursor-based technique for pagination.
The GET v3/stock endpoint supports filtering on the attributes sku, locationType and modifiedOn. Each of these are explained below. Filters can be used in combination with eachother and with pagination to allow full access to the desired subset of stock.
modifiedOnThe results returned by this service can be filtered based on the modification date of the stock. To do so make use of the filter[modifiedOn] parameter in the following manner:
GET {host}/v3/stock?filter[modifiedOn][lt]={date} will return stock that have been created before the provided date. Stock that has been created on that date are not included in the results.GET {host}/v3/stock?filter[createdOn][gt]={date} will return stock that have been created after the provided date. Stock that has been created on that date are not included in the results.GET {host}/v3/stock?filter[createdOn][gt]={date_1}&filter[createdOn][lt]={date_2} will return stock that have created between dates {date_1} and {date_1}. Stock that has been created on either date are not included in the results.locationTypeBy specifying one or more locationType values the stock returned will be filtered on that type. See the documentation of locationType for more details on the options.
GET {host}/v3/stock?filter[locationType][in]=INBOUND,PALLET will return all stock
on either location.skuBy specifying the product sku it is possible to look for stock of that product specifically. Be aware that the SKU's must be URL encoded to avoid being interpreted incorrecly.
GET {host}/v3/stock?filter[sku][in]=09238532,TRS-001-1 will return the stock for the specified sku.expirationStatusBy specifying one or more expirationStatus values the stock returned will be filtered on that status. See the documentation of expirationStatus for more details on the options.
The endpoint also supports -to some degree- the inclusion of information of related resources. This option is provided to allow clients used to the v2 version of the stock endpoint to be able to use the v3 version more seemlessly. To get the details of related entities the include parameter must be added to the URI in the following way:
GET {host}/v3/stock?include=stockLocation will return the stock with some stockLocation related detailsNote: inclusion of product has been deprecated
GET v3/stockstock resources are returned regardles of the value provided by the page[size] query parameter.id and in ascending order.| page[cursor] | integer >= 0 Default: 0 optional parameter, excludes |
| page[size] | integer ( 0 .. 100 ] Default: 100 optional parameter indicating the size of the page, i.e. the maximum number of entities in the response. |
| filter[locationType][in] | Array of strings (locationType) non-empty unique Items Enum: "PALLET" "SPECIAL" "PICKABLE" "COOLED" "INBOUND" "OUTBOUND" "RETURN" "TRANSFER" "SECURED" "AUTOSTORE" "DAMAGED" "TO_SCRAP" "INSERTS" Examples:
A comma separated list of |
| filter[sku][in] | Array of strings (productSku) non-empty unique [ items [ 2 .. 80 ] characters ^[\x21-\x7E][\x20-\x7E]*[\x21-\x7E]$ ] Examples:
A comma separated list of |
| filter[modifiedOn][gt] | string <date> Example: filter[modifiedOn][gt]=2023-01-01 Filters the response to only return items that have been modified after the specified date. |
| filter[modifiedOn][lt] | string <date> Example: filter[modifiedOn][lt]=2022-01-01 Filters the response to only return items that have been modified before the specified date. |
| filter[expirationStatus][in] | Array of arrays A comma separated list of |
| include | Array of strings unique Items Value: "stockLocation" Comma-separated list of |
Array of objects (stock) [ 0 .. 100 ] items | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array ([ 0 .. 100 ] items)
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object Pagination links that provided for convenience and in compliancy to the json:api specification for pagination. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "data": [
- {
- "id": 654322,
- "type": "stock",
- "attributes": {
- "sku": "TSH-000-S",
- "quantity": 1,
- "modifiedOn": "2019-08-24T14:15:22Z",
- "expirationDate": "2019-08-24",
- "lotNumber": "M008686",
- "quarantined": false,
- "receivedOn": "2022-02-14"
}, - "relationships": {
- "stockLocation": {
- "data": {
- "id": 1008713,
- "type": "stockLocation"
}
}, - "product": {
- "data": {
- "id": 1267733,
- "type": "product",
}
}, - "inboundItem": {
- "data": {
- "id": 673333,
- "type": "inboundItem",
}
}
},
}
], - "links": {
}
}The GET v3/stock/:id endpoint will return a specific stock record. Note that the endpoint returns information about a single stock record which will no longer exist once all products have been moved away from it. Stock is transient and may be moved around at any time. It is therefor recommended not to persist stock and id in your systems.
The endpoint also supports -to some degree- the inclusion of information of related resources. This option is provided to allow clients used to the v2 version of the stock endpoint to be able to use the v3 version more seemlessly. To get the details of related entities the include parameter must be added to the URI in the following way:
GET {host}/v3/stock?include=stockLocation will return the stock with some stockLocation related details.Note: inclusion of product has been deprecated.
| id required | string The unique id (integer) of the |
| include | Array of strings unique Items Value: "stockLocation" Comma-separated list of |
object (stock) The | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "data": {
- "id": 654322,
- "type": "stock",
- "attributes": {
- "sku": "TSH-000-S",
- "quantity": 0,
- "locationType": "PALLET",
- "locationCode": "ZAB06E",
- "quality": "DAMAGED",
- "status": "INBOUND",
- "expirationDate": "2019-08-24",
- "expirationStatus": "OVERDUE",
- "lotNumber": "M008686",
- "quarantined": false,
- "modifiedOn": "2019-08-24T14:15:22Z",
- "receivedOn": "2022-02-14"
}, - "relationships": {
- "stockLocation": {
- "data": {
- "id": 1008713,
- "type": "stockLocation"
}
}, - "product": {
- "data": {
- "id": 1267733,
- "type": "product",
}
}, - "inboundItem": {
- "data": {
- "id": 673333,
- "type": "inboundItem",
}
}
}, - "included": [
- {
- "id": 1008713,
- "type": "stockLocation",
- "attributes": {
- "warehouseCode": "NR",
- "locationType": "PALLET",
- "locationCode": "ZAB06E"
}
}
],
},
}Returns the various stockLevels of the product indicated by the id in the url. The GET v3/stockLevels endpoint will return up to 100 stockLevel resource at a time. Each stockLevel is related to a single product by its id and may contain multiple levels for each warehouse the product is located in.
The endpoint supports pagination to split the large collection of resources into smaller, more manageable chunks or pages. This helps to reduce the response size and to improve performance. The endpoint supports two forms of cursor-based pagination, both are explained below.
productsBy default the end-point will enable the user to iterate over all stock levels of all products in ascending order of id (product-id). To begin iterating start by making the following request: GET v3/stockLevels. It is possible to specify a page[size] to reduce the number of items returned from 100. To iterate, invoke the URL provided in the next parameter of the response. Each response will contain another next parameter pointing to the next 'page'. This process can be continued until the response either contains fewer stockLevel resources than requested using the page[size] parameter or there is no next paramter in the response to invoke.
The end-point also supports iteration over the stock levels of products that have changed on or since a certain point in time. To start this iteration, invoke the endpoint using the filter filter[mutatedOn][gte]={timestamp}. The parameter page[size] can also be used in this case. For example GET v3/stockLevels?filter[mutatedOn][gte]=2023-07-28T11:25:00 will return the stockLevels of the first 100 skus that have changed since 11:25 on 2023-07-28. The response will also have a next parameter that will point to the next 'page' and by repeatedly invoking the next of each response will guarnatee that all stock levels changed since the prodivded timestamp are returned. The final response will contain fewer stockLevel resources than requested using the page[size] parameter or will have no next paramter to invoke at which point the product whose stock level was mutated latest has been returned. Note however that during this process, stock mutations may have occurred on products whose stock level was already returned in a previous response. The server will return these updated stock levels for those products again on more recent 'pages' (i.e. more towards the end of the iteration process) because these products now have a more recent mutatedOn value.
The GET v3/stockLevels endpoint supports filtering on the following attributes: sku;\
skuBy specifying the product sku it is possible to look for stock of that product specifically. Be aware that the SKU's must be URL encoded to avoid being interpreted incorrecly. stockLevels for:
GET {host}/v3/stockLevels?filter[sku][in]=ABC,DEF will return the stockLevels for the products with sku ABC and DEF.GET {host}/v3/stockLevels?filter[sku][in]=ABC%2CDEF will return the stockLevels for the product with sku ABC,DEF.mutatedOnBy specifying a timestamp to the filter filter[mutatedOn][gte] it becomes possible to iterate over all stockLevels that have changed since that timestamp. (See the section above for a more detailed explanation of this process.) The filter on mutatedOn supports only the 'greater than or equal' comparitor: filter[mutatedOn][gte]={timestamp} and will cause the sorting of the response to adhere to sort=mutadedOn,id regardless what was provided or requested. The sort query paramter is implicitly set to mutatedOn,id when using this filter.
Note that the timestamp is considered to be in UTC
The endpoint has two orderings of the result sets, however this ordering cannot be specified by the user.
GET v3/stockLevelsstockLevel resources are returned regardles of the value provided by the page[size] query parameter.id of the stockLevel is the same as the product.page[cursor], the ordering is set to sort=id. This is by id of the sku\\product and in ascending order to guarantee that each sku appears exactly once.filter[mutatedOn][gte] the ordering is set to sort=mutatedOn,id. This ordering is fixed for this filter to guarantee that no stockLevels are omitted from the results when iterating over the set of stockLevels that changed since the provided timestamp.filter[mutatedOn][gte] expectes a timestamp in UTC.| page[cursor] | integer >= 0 Default: 0 optional parameter, excludes |
| page[size] | integer ( 0 .. 100 ] Default: 100 optional parameter indicating the size of the page, i.e. the maximum number of entities in the response. |
| filter[sku][in] | Array of strings (productSku) non-empty unique [ items [ 2 .. 80 ] characters ^[\x21-\x7E][\x20-\x7E]*[\x21-\x7E]$ ] Examples:
A comma separated list of |
| filter[mutatedOn][gte] | string <date-time> Example: filter[mutatedOn][gte]=2023-07-12T17:10:20.000321 Filters the response to only return items that have mutated on or after the specified timestamp. |
| sort | string Default: "id" Enum: "id" "mutatedOn,id" Example: sort=mutatedOn,id Specifies the sorting to be used on the result set, note that this parameter is silently overwritten/set depending on the use-case. See documentation for more details. |
Array of objects (stockLevel) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object Pagination links that provided for convenience and in compliancy to the json:api specification for pagination. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "data": [
- {
- "id": 0,
- "type": "stockLevel",
- "attributes": {
- "sku": "TSH-000-S",
- "levels": [
- {
- "warehouse": "NR",
- "stock": 0,
- "free": 0,
- "economic": 0,
- "available": 0,
- "physical": 0,
- "quarantined": 0,
- "unavailable": 0,
- "expected": 0,
- "damaged": 0,
- "toScrap": 0,
- "overdue": 0,
- "expired": 0,
- "outbound": 0
}
]
}, - "relationships": {
- "product": {
- "data": {
- "id": 1267733,
- "type": "product",
}
}
},
}
],
}Returns the various stockLevels of the product indicated by the id in the url.
GET v3/stockLevels/:id| id required | string The unique id (integer) of the |
object (stockLevel) Identifies a resource as a | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "data": {
- "id": 0,
- "type": "stockLevel",
- "attributes": {
- "sku": "TSH-000-S",
- "levels": [
- {
- "warehouse": "NR",
- "stock": 0,
- "free": 0,
- "economic": 0,
- "available": 0,
- "physical": 0,
- "quarantined": 0,
- "unavailable": 0,
- "expected": 0,
- "damaged": 0,
- "toScrap": 0,
- "overdue": 0,
- "expired": 0,
- "outbound": 0
}
]
}, - "relationships": {
- "product": {
- "data": {
- "id": 1267733,
- "type": "product",
}
}
},
},
}This endpoint allows you to retrieve a list of up to 100 stock mutations at a time, sorted in ascending order by the createdOn attribute. However, this endpoint will only return stock mutations that are less than 7 days old¹. Note that any stock mutations related to shipments or damaged eturns cannot be accessed through this endpoint. Instead, mutations related to shipments must be inferred from the GET v3/shipments endpoint.
The endpoint supports pagination to split the large collection of resources into smaller, more manageable chunks or pages. This helps to reduce the response size and to improve performance. The endpoint supports both cursor-based and number-based techniques for pagination, but it is recommended to use cursor-based as this is more performant and reliable due to page-shifting.
The GET v3/stockmutations endpoint supports filtering on the following attributes: createdOn, type and synced. Each of these are explained below. Filters can be used in combination with eachother and with pagination as to allow full access to the desired subset of stockmutations.
createdOnThe results returned by this service can be filtered based on the creation date of the stockmutation. To do so make use of the filter[createdOn] parameter in the following manner:
GET {host}/v3/stockmutations?filter[createdOn][lt]={date} will return stockmutations that have been created before the provided date. Stockmutations that have been created on that date are not included in the results.GET {host}/v3/stockmutations?filter[createdOn][gt]={date} will return stockmutations that have been created after the provided date. Stockmutations that were created on that date are not included in the results.GET {host}/v3/stockmutations?filter[createdOn][gt]={date_1}&filter[createdOn][lt]={date_2} will return stockmutations that have created between dates {date_1} and {date_1}. Stockmutations that were created on either date are not included in the results.typeThe endpoint allows filtering on one or more stockmutationType values. To filter on stockmutationType use the filter[type] query parameter as follows:
GET {host}/v3/stockmutations?filter[type][in]=RETURN will return all stockmutations that relate to a RETURN.GET {host}/v3/stockmutations?filter[type][in]=RETURN,PRODUCTION will return all stockmutations that belong to RETURN or PRODUCTION.synced (obsolete)To support legacy stockmutation synchronization, the endpoint allows users to request unsynced or synced stockmutations. Internally a stockmutation is marked as unsynced whenever it is created. To fetch the stockmutations that require synchronization invoke the endpoint as follows:
GET {host}/v3/stockmutations?filter[synced]=false will return all stockmutations that have changed since last time these were 'synchronized'. To mark them as synced use the old v2 endpoint.GET {host}/v3/stockmutations Returns the 100 oldest stockmutations up to 7 days back. Note that the service has a limit of 7 days. This invokation is equivalent to GET {host}/v3/stockmutations?page[size]=100&page[cursor]=0 and GET {host}/v3/stockmutations?page[size]=100&page[number]=1GET {host}/v3/stockmutations?filter[createdOn][gt]=2023-01-01 Returns up to 100 stockmutations that were created after 2023-01-01. The stockmutations returned are never older than 7 days, regardless of the date provided in the request.GET {host}/v3/stockmutation?filter[type][in]=INBOUND,PRODUCTION Returns only stockmutations that are related to inbounds or productionsGET {host}/v3/stockmutations?filter[synced]=false Returns all stockmutations that haven't been synchronized. This corresponds to the old way of
synchronizing information. Note that this feature will be removed when stockmutation WebHooks become available.GET v3/stockmutationsstockmutation older than 7 days¹ are returned.stockmutation resources are returned per request, regardless of the value provided in the page[size] query parameter.id of the stockmutation in ascending order.
¹ Note this limit may change over time without notice!| page[cursor] | integer >= 0 Default: 0 optional parameter, excludes |
| page[number] | integer > 0 Default: 1 optional parameter, excludes |
| page[size] | integer ( 0 .. 100 ] Default: 100 optional parameter indicating the size of the page, i.e. the maximum number of entities in the response. |
| filter[synced] | boolean Deprecated Example: filter[synced]=false Legacy filter to only retreive unsynchronized records of an entity. Set to 'false' to fetch all items that have not been synchronized yet. To mark items synchronized, make use of a corresponding POST operation. This filter will become obsolete when webhooks are realized for the respective resource(s). The query parameter looks like |
| filter[createdOn][lt] | string <date> Example: filter[createdOn][lt]=2022-01-01 Filters the response to only return items that have been created before the specified date. |
| filter[createdOn][gt] | string <date> Example: filter[createdOn][gt]=2023-01-01 Filters the response to only return items that have been created after the specified date. |
| filter[type][in] | Array of strings (stockmutationType) Items Enum: "INBOUND" "MOVE" "SHIPMENT" "RETURN" "CORRECTION" "COMPOSITION" "STATUS" "QUALITY" "EXPIRATION_DATE" "REVEICE_DATE" "LOT_NUMBER" allows the specification of one or more stockmutation types to be returned |
Array of objects (stockmutation) [ 0 .. 100 ] items | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array ([ 0 .. 100 ] items)
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object Pagination links that provided for convenience and in compliancy to the json:api specification for pagination. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "data": [
- {
- "id": 67983223,
- "type": "stockmutation",
- "attributes": {
- "createdOn": "2023-03-09T14:23:39.418",
- "warehouseCode": "NR",
- "sku": "SKU_37447",
- "locationType": "INBOUND",
- "quantity": 20,
- "expirationDate": "2024-03-14",
- "lotNumber": "LOT_2023_001"
}, - "relationships": {
- "product": {
- "data": {
- "id": 451154,
- "type": "product",
}
}
}
}, - {
- "id": 67983224,
- "type": "stockmutation",
- "attributes": {
- "createdOn": "2023-03-09T14:23:39.418",
- "warehouseCode": "NR",
- "sku": "SKU_31337",
- "locationType": "AUTOSTORE",
- "quantity": -2,
- "expirationDate": "2024-03-14",
- "lotNumber": "LOT_2023_001"
}, - "relationships": {
- "product": {
- "data": {
- "id": 451154,
- "type": "product",
}
}
}
}, - {
- "id": 67983224,
- "type": "stockmutation",
- "attributes": {
- "createdOn": "2023-03-09T14:23:39.418",
- "warehouseCode": "NR",
- "sku": "SKU_31337_DUO_PACK",
- "locationType": "AUTOSTORE",
- "quantity": 1
}, - "relationships": {
- "product": {
- "data": {
- "id": 451199,
- "type": "product",
}
}
}
}
],
}The GET v3/webhooks endpoint returns all webhooks that have been registered.
The endpoint supports pagination to split the large collection of resources into smaller, more manageable chunks or pages. This helps to reduce the response size and to improve performance. The endpoint supports only cursor-based technique for pagination
There are currently no filters applicable to this endpoint.
There are currently no resources to include in the response.
GET v3/webhookswebhook resources are returned regardless of the value provided by
the page[size] query parameter.id and in ascending order.Array of objects (webhook) | |||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||
object Pagination links that provided for convenience and in compliancy to the json:api specification for pagination. | |||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||
{- "data": [
- {
- "id": 5667,
- "type": "webhook",
- "attributes": {
- "event": "string",
- "isActive": true,
},
}
],
}The POST v3/webhooks endpoint allows for registering a new webhook to an specific eventType of a specific entityType.
There are currently no resources to be included in the request or response.
POST v3/webhooksentity and event pairs are supported, see the definition of webhookEvent.object (webhook) Represents a single | |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
object (webhook) Represents a single | |||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||
{- "data": {
- "type": "webhook",
- "attributes": {
- "event": "string",
- "isActive": true,
}, - "links": { }
}
}{- "data": {
- "id": 5667,
- "type": "webhook",
- "attributes": {
- "event": "string",
- "isActive": true,
},
},
}The GET v3/webhooks/:id endpoint allows the retrieval of one specific webhooks that has been registered.
There are currently no resources to include in the response.
GET v3/webhooks/:idNone
| id required | string The unique id (integer) of the |
Array of objects (webhook) | |||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||
object Pagination links that provided for convenience and in compliancy to the json:api specification for pagination. | |||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||
{- "data": [
- {
- "id": 5667,
- "type": "webhook",
- "attributes": {
- "event": "string",
- "isActive": true,
},
}
],
}The PUT /v3/webhooks/:id endpoint allows for modifying the targetUrl and enabled state (isActive) of an existing webhook.
There are currently no resources to be included in the request or response.
PUT v3/webhooks/:identity and event can not be modified using this operation, change these create a new webhook using POST /v3/webhooks and delete this one using DELETE /v3/webhooks/:id instead.| id required | string The unique id (integer) of the |
object (webhook) Represents a single | |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
object (webhook) Represents a single | |||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||
{- "data": {
- "type": "webhook",
- "attributes": {
- "event": "string",
- "isActive": true,
}, - "links": { }
}
}{- "data": {
- "id": 5667,
- "type": "webhook",
- "attributes": {
- "event": "string",
- "isActive": true,
},
},
}The DELETE v3/webhooks/:id endpoint allows for complete removal of an existing webhook.
| id required | string The unique id (integer) of the |
{- "errors": [
- {
- "code": "401",
- "title": "Unauthorized",
- "detail": "Authorization has been denied for this request."
}
]
}The Events section of the API documentation provides an overview of the various events that customers can subscribe to in order to receive real-time updates about key activities and changes within the system. To subscribe to these events make use of the webhook endpoints. Each event follows the same message layout as the data that would be returned by the corresponding GET operation, providing consistency to the processing of data.
Triggered whenever a shipment has been picked, packed and sorted, ready for pick-up by the carrier
The message model of the webhook will follow the GET v3/shipments/:id?include=shipmentItems endpoint.
This is the message we send you whenever a new shipment has been picked, packed and sorted
| id | integer | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| type | any Value: "shipment" | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of shipmentItemIdentifier (object) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array Any of
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "id": 68076953,
- "type": "shipment",
- "attributes": {
- "status": "READY_TO_PICK",
- "readyToPickOn": "2019-08-24",
- "readyToShipOn": "2019-08-24",
- "shippedOn": "2019-08-24",
- "warehouseCode": "NR",
- "weight": 0,
- "invoicingWeight": 0,
- "tracking": {
- "carrier": "FEDEX",
- "number": 0,
- "stage": "LABELLED",
- "status": "OK",
}, - "returnLabel": "string",
- "metadata": {
- "extra1": "string",
- "extra2": "string",
- "extra3": "string",
- "extra4": "string",
- "extra5": "string"
}
}, - "relationships": {
- "order": {
- "data": {
- "id": 24006341,
- "type": "order",
}
}, - "orderType": {
- "data": {
- "id": 10045,
- "type": "orderType",
}
}, - "shipmentItems": {
- "data": [
- {
- "id": 15368865,
- "type": "shipmentItem",
}
]
}, - "shippingMethod": {
- "data": {
- "id": 12,
- "type": "shippingMethod",
}
}
}, - "included": [
- {
- "id": 15368865,
- "type": "shipmentItem",
- "attributes": {
- "sku": "TSH-000-S",
- "quantity": 2,
- "lotNumber": "M008686",
- "expirationDate": "2028-10-14",
- "serialNumbers": [
- "2204190861003991"
]
}, - "relationships": {
- "orderItem": {
- "data": {
- "id": 52008118,
- "type": "orderItem",
}
}, - "product": {
- "data": {
- "id": 1267733,
- "type": "product",
}
}, - "shipment": {
- "data": {
- "id": 68076953,
- "type": "shipment",
}
}
}
}
],
}Triggered whenever a shipment has been handed over to the carrier.
The message model of the webhook will follow the GET v3/shipments/:id?include=shipmentItems endpoint.
This is the message we send you whenever a new shipment has been handed over to the carrier
| id | integer | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| type | any Value: "shipment" | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of shipmentItemIdentifier (object) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array Any of
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "id": 68076953,
- "type": "shipment",
- "attributes": {
- "status": "READY_TO_PICK",
- "readyToPickOn": "2019-08-24",
- "readyToShipOn": "2019-08-24",
- "shippedOn": "2019-08-24",
- "warehouseCode": "NR",
- "weight": 0,
- "invoicingWeight": 0,
- "tracking": {
- "carrier": "FEDEX",
- "number": 0,
- "stage": "LABELLED",
- "status": "OK",
}, - "returnLabel": "string",
- "metadata": {
- "extra1": "string",
- "extra2": "string",
- "extra3": "string",
- "extra4": "string",
- "extra5": "string"
}
}, - "relationships": {
- "order": {
- "data": {
- "id": 24006341,
- "type": "order",
}
}, - "orderType": {
- "data": {
- "id": 10045,
- "type": "orderType",
}
}, - "shipmentItems": {
- "data": [
- {
- "id": 15368865,
- "type": "shipmentItem",
}
]
}, - "shippingMethod": {
- "data": {
- "id": 12,
- "type": "shippingMethod",
}
}
}, - "included": [
- {
- "id": 15368865,
- "type": "shipmentItem",
- "attributes": {
- "sku": "TSH-000-S",
- "quantity": 2,
- "lotNumber": "M008686",
- "expirationDate": "2028-10-14",
- "serialNumbers": [
- "2204190861003991"
]
}, - "relationships": {
- "orderItem": {
- "data": {
- "id": 52008118,
- "type": "orderItem",
}
}, - "product": {
- "data": {
- "id": 1267733,
- "type": "product",
}
}, - "shipment": {
- "data": {
- "id": 68076953,
- "type": "shipment",
}
}
}
}
],
}Happens when an inbound is created.
This is the message we send you whenever an inbound has been created
| id | integer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| type | any Value: "inbound" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of inboundItemIdentification (object) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array Any of
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "id": 0,
- "type": "inbound",
- "attributes": {
- "reference": "string",
- "status": "COMPLETED",
- "receivedIn": "NR",
- "createdOn": "2019-08-24T14:15:22Z",
- "checkingOn": "2019-08-24T14:15:22Z",
- "completedOn": "2019-08-24T14:15:22Z"
}, - "relationships": {
- "inboundPackingSlip": {
- "data": {
- "id": 9067,
- "type": "inboundPackingSlip",
}
}
}, - "included": [
- {
- "id": 673333,
- "type": "inboundItem",
- "attributes": {
- "quantity": 0,
- "sku": "TSH-000-S",
- "lotNumber": "M008686",
- "expirationDate": "2050-01-02"
}, - "relationships": {
- "product": {
- "data": {
- "id": 1267733,
- "type": "product",
}
}, - "inboundPackingSlipItem": {
- "data": {
- "id": 124431,
- "type": "inboundPackingSlipItem",
}
}
}
}
],
}Happens after the operator clicks 'complete entire inbound', happens once per inbound and regardless if there are differences with the packing slip.
This is the message we send you whenever an inbound has been completed
| id | integer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| type | any Value: "inbound" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of inboundItemIdentification (object) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array Any of
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "id": 0,
- "type": "inbound",
- "attributes": {
- "reference": "string",
- "status": "COMPLETED",
- "receivedIn": "NR",
- "createdOn": "2019-08-24T14:15:22Z",
- "checkingOn": "2019-08-24T14:15:22Z",
- "completedOn": "2019-08-24T14:15:22Z"
}, - "relationships": {
- "inboundPackingSlip": {
- "data": {
- "id": 9067,
- "type": "inboundPackingSlip",
}
}
}, - "included": [
- {
- "id": 673333,
- "type": "inboundItem",
- "attributes": {
- "quantity": 0,
- "sku": "TSH-000-S",
- "lotNumber": "M008686",
- "expirationDate": "2050-01-02"
}, - "relationships": {
- "product": {
- "data": {
- "id": 1267733,
- "type": "product",
}
}, - "inboundPackingSlipItem": {
- "data": {
- "id": 124431,
- "type": "inboundPackingSlipItem",
}
}
}
}
],
}Happens every time an inbound changes state from 'DIFFERENCE_GOODS_RECEIVING' (aka 'INBOUND RECOUNT') to either 'OK' or 'INBOUND CHECKED'.
This is the message we send you whenever an inbound changes state from 'DIFFERENCE_GOODS_RECEIVING' (aka 'INBOUND RECOUNT') to either 'OK' or 'INBOUND CHECKED'
| id | integer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| type | any Value: "inbound" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of inboundItemIdentification (object) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array Any of
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "id": 0,
- "type": "inbound",
- "attributes": {
- "reference": "string",
- "status": "COMPLETED",
- "receivedIn": "NR",
- "createdOn": "2019-08-24T14:15:22Z",
- "checkingOn": "2019-08-24T14:15:22Z",
- "completedOn": "2019-08-24T14:15:22Z"
}, - "relationships": {
- "inboundPackingSlip": {
- "data": {
- "id": 9067,
- "type": "inboundPackingSlip",
}
}
}, - "included": [
- {
- "id": 673333,
- "type": "inboundItem",
- "attributes": {
- "quantity": 0,
- "sku": "TSH-000-S",
- "lotNumber": "M008686",
- "expirationDate": "2050-01-02"
}, - "relationships": {
- "product": {
- "data": {
- "id": 1267733,
- "type": "product",
}
}, - "inboundPackingSlipItem": {
- "data": {
- "id": 124431,
- "type": "inboundPackingSlipItem",
}
}
}
}
],
}Happens when all locations of the inbound have been checked. Note: changes to the inbound are still possible!
This is the message we send you when all locations of an inbound have been checked
| id | integer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| type | any Value: "inbound" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of inboundItemIdentification (object) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array Any of
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "id": 0,
- "type": "inbound",
- "attributes": {
- "reference": "string",
- "status": "COMPLETED",
- "receivedIn": "NR",
- "createdOn": "2019-08-24T14:15:22Z",
- "checkingOn": "2019-08-24T14:15:22Z",
- "completedOn": "2019-08-24T14:15:22Z"
}, - "relationships": {
- "inboundPackingSlip": {
- "data": {
- "id": 9067,
- "type": "inboundPackingSlip",
}
}
}, - "included": [
- {
- "id": 673333,
- "type": "inboundItem",
- "attributes": {
- "quantity": 0,
- "sku": "TSH-000-S",
- "lotNumber": "M008686",
- "expirationDate": "2050-01-02"
}, - "relationships": {
- "product": {
- "data": {
- "id": 1267733,
- "type": "product",
}
}, - "inboundPackingSlipItem": {
- "data": {
- "id": 124431,
- "type": "inboundPackingSlipItem",
}
}
}
}
],
}Happens when the inbound is closed. No more changes are possible and this is the final state.
This is the message we send you whenever an inbound has been closed
| id | integer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| type | any Value: "inbound" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of inboundItemIdentification (object) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array Any of
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "id": 0,
- "type": "inbound",
- "attributes": {
- "reference": "string",
- "status": "COMPLETED",
- "receivedIn": "NR",
- "createdOn": "2019-08-24T14:15:22Z",
- "checkingOn": "2019-08-24T14:15:22Z",
- "completedOn": "2019-08-24T14:15:22Z"
}, - "relationships": {
- "inboundPackingSlip": {
- "data": {
- "id": 9067,
- "type": "inboundPackingSlip",
}
}
}, - "included": [
- {
- "id": 673333,
- "type": "inboundItem",
- "attributes": {
- "quantity": 0,
- "sku": "TSH-000-S",
- "lotNumber": "M008686",
- "expirationDate": "2050-01-02"
}, - "relationships": {
- "product": {
- "data": {
- "id": 1267733,
- "type": "product",
}
}, - "inboundPackingSlipItem": {
- "data": {
- "id": 124431,
- "type": "inboundPackingSlipItem",
}
}
}
}
],
}| id | integer The | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| type | any Default: "order" Value: "order" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of orderItemIdentification (object) or addressIdentification (object) or pickUpPointIdentifier (object) or orderAttachmentIdentification (object) An array of resources included with the | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array Any of
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "id": 24006341,
- "type": "order",
- "attributes": {
- "externalOrderNumber": "#1003-UK",
- "reference": "string",
- "orderedOn": "2019-08-24",
- "consumerReference": "string",
- "promotionCode": "BLACKFRIDAY",
- "locale": "nl-NL",
- "email": "consumer@example.com",
- "phoneNumber": "string",
- "vatNumber": "string",
- "fulfillFrom": "NR",
- "preferredShippingDate": "2019-08-24",
- "allowPartialDelivery": false,
- "onHold": false,
- "metadata": {
- "extra1": "string",
- "extra2": "string",
- "extra3": "string",
- "extra4": "string",
- "extra5": "string"
}, - "channelIdentifier": "2b55dd3c-b1d4-4107-acd2-56903ae5722b",
- "currency": "EUR"
}, - "relationships": {
- "orderType": {
- "data": {
- "id": 10045,
- "type": "orderType",
}
}, - "orderItems": {
- "data": [
- {
- "id": 52008118,
- "type": "orderItem",
}
]
}, - "deliveryAddress": {
- "data": {
- "id": 0,
- "type": "address"
}
}, - "billingAddress": {
- "data": {
- "id": 0,
- "type": "address"
}
}, - "pickUpPoint": {
- "data": {
- "id": 0,
- "type": "pickUpPoint"
}
}, - "preferredShippingMethod": {
- "data": {
- "id": 12,
- "type": "shippingMethod",
}
}
}, - "included": [
- {
- "id": 52008118,
- "type": "orderItem",
- "attributes": {
- "sku": "TSH-000-S",
- "channelIdentifier": "338fd344-c902-4b1c-8733-1e7fcd01495a",
- "quantity": 0,
- "fulfillFrom": "NR",
- "price": 0,
- "vat": "0.210",
- "name": "string",
- "metadata": {
- "serviceLevel": "premium",
- "purchases": "140",
- "reference": "#74571",
- "extra6": "string",
- "extra7": "string"
}
}, - "relationships": {
- "order": {
- "data": {
- "id": 24006341,
- "type": "order",
}
}, - "product": {
- "data": {
- "id": 1267733,
- "type": "product",
}
}
}
}
],
}| id | integer The | ||||||||||||||||||||||||||||||||||||
| type required | any Default: "orderItem" Value: "orderItem" | ||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
{- "id": 52008118,
- "type": "orderItem",
- "attributes": {
- "sku": "TSH-000-S",
- "channelIdentifier": "338fd344-c902-4b1c-8733-1e7fcd01495a",
- "quantity": 0,
- "fulfillFrom": "NR",
- "price": 0,
- "vat": "0.210",
- "name": "string",
- "metadata": {
- "serviceLevel": "premium",
- "purchases": "140",
- "reference": "#74571",
- "extra6": "string",
- "extra7": "string"
}
}, - "relationships": {
- "order": {
- "data": {
- "id": 24006341,
- "type": "order",
}
}, - "product": {
- "data": {
- "id": 1267733,
- "type": "product",
}
}
},
}| id | integer The | ||||||||||||||||||
| type required | any Default: "orderAttachment" Value: "orderAttachment" | ||||||||||||||||||
object | |||||||||||||||||||
| |||||||||||||||||||
object | |||||||||||||||||||
| |||||||||||||||||||
object | |||||||||||||||||||
| |||||||||||||||||||
{- "id": 52005678,
- "type": "orderAttachment",
- "attributes": {
- "filename": "string",
- "contentType": "application/pdf",
- "printStrategy": "REQUIRED"
}, - "relationships": {
- "order": {
- "data": {
- "id": 24006341,
- "type": "order",
}
}
},
}| id | integer | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| type | any Value: "shipment" | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of shipmentItemIdentifier (object) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array Any of
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "id": 68076953,
- "type": "shipment",
- "attributes": {
- "status": "READY_TO_PICK",
- "readyToPickOn": "2019-08-24",
- "readyToShipOn": "2019-08-24",
- "shippedOn": "2019-08-24",
- "warehouseCode": "NR",
- "weight": 0,
- "invoicingWeight": 0,
- "tracking": {
- "carrier": "FEDEX",
- "number": 0,
- "stage": "LABELLED",
- "status": "OK",
}, - "returnLabel": "string",
- "metadata": {
- "extra1": "string",
- "extra2": "string",
- "extra3": "string",
- "extra4": "string",
- "extra5": "string"
}
}, - "relationships": {
- "order": {
- "data": {
- "id": 24006341,
- "type": "order",
}
}, - "orderType": {
- "data": {
- "id": 10045,
- "type": "orderType",
}
}, - "shipmentItems": {
- "data": [
- {
- "id": 15368865,
- "type": "shipmentItem",
}
]
}, - "shippingMethod": {
- "data": {
- "id": 12,
- "type": "shippingMethod",
}
}
}, - "included": [
- {
- "id": 15368865,
- "type": "shipmentItem",
- "attributes": {
- "sku": "TSH-000-S",
- "quantity": 2,
- "lotNumber": "M008686",
- "expirationDate": "2028-10-14",
- "serialNumbers": [
- "2204190861003991"
]
}, - "relationships": {
- "orderItem": {
- "data": {
- "id": 52008118,
- "type": "orderItem",
}
}, - "product": {
- "data": {
- "id": 1267733,
- "type": "product",
}
}, - "shipment": {
- "data": {
- "id": 68076953,
- "type": "shipment",
}
}
}
}
],
}| id | integer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| type | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of stockLocationIdentifier (object) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array Any of
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "id": 654322,
- "type": "stock",
- "attributes": {
- "sku": "TSH-000-S",
- "quantity": 0,
- "locationType": "PALLET",
- "locationCode": "ZAB06E",
- "quality": "DAMAGED",
- "status": "INBOUND",
- "expirationDate": "2019-08-24",
- "expirationStatus": "OVERDUE",
- "lotNumber": "M008686",
- "quarantined": false,
- "modifiedOn": "2019-08-24T14:15:22Z",
- "receivedOn": "2022-02-14"
}, - "relationships": {
- "stockLocation": {
- "data": {
- "id": 1008713,
- "type": "stockLocation"
}
}, - "product": {
- "data": {
- "id": 1267733,
- "type": "product",
}
}, - "inboundItem": {
- "data": {
- "id": 673333,
- "type": "inboundItem",
}
}
}, - "included": [
- {
- "id": 1008713,
- "type": "stockLocation",
- "attributes": {
- "warehouseCode": "NR",
- "locationType": "PALLET",
- "locationCode": "ZAB06E"
}
}
],
}