HD Workflow Interface Contracts
Changed on:
11 Feb 2025
Detailed Description
OrderAppeasement Event
This event is used to create appeasement of the order.Request Payload| Property | Description | Type | Required? |
| appeasementAmount | The appeasement amount | String | Required |
| appeasementReason | The appeasement reason | String | Required |
| comment | The comment of appeasement | String | Optional |
OrderAddressChange Event
This event is used to update the order delivery address.Request Payload| Property | Description | Type | Required? |
| changeReason | Reason for address change | String | Optional |
| deliveryAddress | The delivery address that has changed | Object | Optional |
| Property | Description | Type | Required? | Notes |
| city | The city that has changed | String | Optional | |
| companyName | The company name that has changed | String | Optional | |
| country | The country that has changed | String | Optional | |
| name | The name that has changed | String | Optional | |
| postcode | The postcode that has changed | String | Optional | |
| state | The state that has changed | String | Optional | |
| street | The street that has changed | String | Optional |
OrderCancel Event
This event is used to cancel the order.Request Payload| Property | Description | Type | Required? |
| entityId | The order id | String | Required |
| entityRef | The order reference | String | Required |
| entitySubtype | The order type | String | Required |
| entityType | The type of the entity (Order) | String | Required |
| name | The name of the ruleSet | String | Required |
| retailerId | The retailer id | String | Required |
| attributes | The attributes | Object | Optional |
OrderRevision Event
This event is used to revise the order.Request Payload| Property | Description | Type | Required? |
| revisedItems | The list of revised items | [revisedItems] | Required |
| Property | Description | Type | Required? | Notes |
| newQty | The new quantity of the revised order item | Integer | Optional | If newQty is null in the incoming event, the rule will grab the value from the old Order |
| unitPrice | The unit price of the revised order | Double | Optional | If unitPrice is null in the incoming event, the rule will grab the value from the old Order |
| orderItemRef | The order item reference of the revised order | String | Required | |
| comment | The comment of the revise | String | Optional | |
| revisionReason | The reason of the revise | RevisionReason | Required | Revision reason is only compulsory for removed or changed items |
| Property | Description | Type | Required? |
| value | The value of the revision reason | String | Required |
| label | The label in i18n format | String | Required |
WavePack Event
This event is used as an external (anything from outside this workflow) anytime finishing picking and starting packing of the order in the store is triggered.Request Payload| Property | Description | Type | Required? |
| pickedItems | The list of picked items | [pickedItem] | Required |
| fulfilmentItems | The list of fulfilment items | [fulfilmentItem] | Optional |
| Property | Description | Type | Required? | Notes |
| GTIN | The Global Trade Item Number (GTIN) for this Product | String | Optional | |
| availableQty | The available quantity of order item | float | Required | availableQty should be positive |
| catalogueRef | The catalogue reference of the order item | String | Required | |
| productRef | The product reference of the order item | String | Required |
| Property | Description | Type | Required? | Notes |
| skuRef | The sku reference of the fulfilment item | String | Optional | |
| orderItemId | The order item id of the fulfilment item | String | Required | Required if skuRef is not null |
| rejectedQty | The rejected quantity of the fulfilment item | int | Required | Required if skuRef is not null |
| availableQty | The available quantity of the fulfilment item | int | Required | Required if skuRef is not null |
| orderItemRef | The order item reference of the fulfilment item | String | Required | Required if skuRef is not null |
| requestedQty | The requested quantity of the fulfilment item | int | Required | Required if skuRef is not null |
| fulfilmentItemRef | The fulfilment item reference | String | Required | Required if skuRef is not null |
WaveDispatchInitiated Event
This event is used externally (anything from outside this workflow) anytime finishing packing and creating an article in the store is triggered.Request Payload| Property | Description | Type | Required? |
| fulfilmentArticles | The list of fulfilment articles | [fulfilmentArticle] | Optional |
| Property | Description | Type | Required? | Notes |
| name | The name of the article | String | Optional | |
| depth | The depth of the article | String | Optional | |
| width | The width of the article | String | Optional | |
| height | The height of the article | String | Optional | |
| weight | The weight of the article | String | Optional | |
| maxWeight | The maxWeight of the article | String | Optional |
FulfilmentPack Event
This event is triggered by the Wave entity and starts the packing process for the items in the fulfillment.Request Payload| Property | Description | Type | Required? |
| pickedItems | The list of picked items | [pickedItem] | Required |
| fulfilmentItems | The list of fulfilment items | [fulfilmentItem] | Optional |
| Property | Description | Type | Required? | Notes |
| GTIN | The Global Trade Item Number (GTIN) for this Product | String | Optional | |
| availableQty | The available quantity of order item | float | Required | availableQty should be positive |
| catalogueRef | The catalogue reference of the order item | String | Required | |
| productRef | The product reference of the order item | String | Required |
| Property | Description | Type | Required? | Notes |
| skuRef | The sku reference of the fulfilment item | String | Optional | |
| orderItemId | The order item id of the fulfilment item | String | Required | Required if skuRef is not null |
| rejectedQty | The rejected quantity of the fulfilment item | int | Required | Required if skuRef is not null |
| availableQty | The available quantity of the fulfilment item | int | Required | Required if skuRef is not null |
| orderItemRef | The order item reference of the fulfilment item | String | Required | Required if skuRef is not null |
| requestedQty | The requested quantity of the fulfilment item | int | Required | Required if skuRef is not null |
| fulfilmentItemRef | The fulfilment item reference | String | Required | Required if skuRef is not null |
ConfirmParcels Event
This event is used to send the details of each article packed for a single Fulfilment.Request Payload| Property | Description | Type | Required? |
| packedItems | Contains the list of all articles and rejections of a Fulfilment processed at the packing step | PackedItem | Required |
| Property | Description | Type | Required? |
| articles | The list of all articles of a Fulfilment processed at the packing step | [FulfilmentArticle] | Required, but array can be empty |
| rejections | The list of all rejections of a Fulfilment processed at the packing step | [FulfilmentItemRejection] | Required, but array can be empty |
| Property | Description | Type | Required? | Notes |
| barcode | The barcode of the packed product | String | Optional | |
| packaging_name | The package type that the items were packed into | String | Required | For Example: Small, Medium, Large, Custom |
| length | The length of the article in cm | String | Required | |
| width | The width of the article in cm | String | Required | |
| height | The height of the article in cm | String | Required | |
| weight | The weight of the article in kg | String | Required | |
| maxWeight | The maxWeight of the article | String | Optional | |
| minWeight | The minWeight of the article | String | Optional | |
| items | The list of the packed fulfilment items | [Item] | Optional |
| Property | Description | Type | Required? |
| fulfilmentItemId | The id of fulfilment item | String | Required |
| quantity | The number of the packed fulfilment item in the article | Integer | Required |
| Property | Description | Type | Required? |
| fulfilmentItemId | The id of fulfilment item | String | Required |
| rejectedQty | The number of the rejected fulfilment item | Integer | Required |
| rejectReason | The reason of the rejection | SettingValueType | Required |
| Property | Description | Type | Required? | Notes |
| label | The label of the reject reason | String | Required | In case of rejections at the picking stage, the default value `fc.sf.rejection Reason.outsideOfPacking` will be used. |
| value | The value of the reject reason | String | Required | In case of rejections at the picking stage, the default value "Rejected outside of packing" will be used. |