Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Order Allocation Event

The Order Allocation event allows our clients to consume the latest order details for their shoppers orders. The event is triggered when all the items in an order have been assigned a status of either “Allocated” or “Cancelled”.

A brand may use our multi origin ability, where the origin of products can change after the checkout process. In this case, ESW will wait for allocation updates via the allocate API. When the status of each item is confirmed, the event will be triggered to the client specific end point.

Note, if there is a change to the origin of any article, the order will be recalculated for updated duties and taxes and the allocation event will be published. Where a brand does not want to use multi origin, the allocation event will still be triggered (items will be automatically allocated) with the original duties and taxes values. The event will be triggered to the client specific end point.

Example Payload
Allocation Event Attributes

Field Name

Description

Field Type

Example of Data

brandOrderReference

Unique reference for the order assigned by the brand

String

"GOC25031434046724JP-3"

lineItems

List of items in the order

Array

[ {...} ]

lineItems[].quantity

Quantity of the product ordered

Integer

4

lineItems[].productCode

Unique identifier for the product

String

"123456789"

lineItems[].lineItemId

Unique identifier for the line item

String

"1"

lineItems[].articles

List of articles related to the line item

Array

[ {...} ]

articles[].id

Unique identifier for the article

String (UUID)

"5974b83e-c121-43f8-8d71-93edcf545a1d"

articles[].sequence

Sequence number of the article

Integer

1

articles[].allocationStatus

Status of the article allocation

String

"Allocated"

articles[].fulfilmentCountryIso

Country code where fulfillment occurs

String (ISO 3166-1)

"IT"

articles[].fulfilmentCenterId

Unique ID of the fulfillment center

String (UUID)

"GOCAS-IT-001"

articles[].charges

Charges related to the article

Object

{ ... }

charges.subTotal

Total item price before taxes and fees

Object

{ "shopper": {"currency": "JPY", "amount": 2479}, "retailer": {"currency": "USD", "amount": 16.22} }

charges.delivery

Delivery cost

Object

{ "shopper": {"currency": "JPY", "amount": 454}, "retailer": {"currency": "USD", "amount": 2.97} }

charges.deliveryDuty

Duties related to delivery

Object

{ "shopper": {"currency": "JPY", "amount": 46}, "retailer": {"currency": "USD", "amount": 0.3} }

Other Definitions

The order allocation event also breaks down the values in both Shopper and Retailer currency. Please see definition of both below:

Term

Definition

Shopper Currency

The currency in which the shopper pays for their order.

Retailer Currency

The currency that the Retailer settles in.

Last updated

Was this helpful?