ORDER_CREATED
Het ORDER_CREATED
evenement wordt geactiveerd wanneer een nieuwe bestelling wordt aangemaakt. Het retourneert altijd een Order
object.
Voorbeeld payload
{
"data": {
"order": {
"status": "OPEN",
"createdAt": "2024-07-23T16:18:57.104Z",
"accountOrderNumber": null,
"currencyCode": "HKD",
"organization": "organization_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"amountSubtotals": {
"duties": 0,
"fees": 0,
"items": 9999.99,
"shipping": 9999.99,
"taxes": 0,
"variance": -0.01
},
"root": {
"exchangeRates": [
{
"sourceCurrencyCode": "USD",
"targetCurrencyCode": "HKD",
"rate": 9.99999,
"type": "GUARANTEED"
},
{
"sourceCurrencyCode": "USD",
"targetCurrencyCode": "HKD",
"rate": 9.9999,
"type": "MID_MARKET"
},
{
"sourceCurrencyCode": "USD",
"targetCurrencyCode": "HKD",
"rate": 9.9999,
"type": "MID_MARKET"
},
{
"sourceCurrencyCode": "USD",
"targetCurrencyCode": "HKD",
"rate": 9.9999,
"type": "MID_MARKET"
},
{
"sourceCurrencyCode": "HKD",
"targetCurrencyCode": "USD",
"rate": 0.9999999999999999,
"type": "MID_MARKET"
}
]
},
"items": [
{
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Discount",
"productId": "",
"amount": 0,
"imageUrl": "",
"currencyCode": "USD",
"description": null,
"hsCode": "9999.99",
"sku": "DISCOUNT_SKU",
"countryOfOrigin": "CN",
"measurements": [
{
"type": "WEIGHT",
"unitOfMeasure": "POUND",
"value": 0
}
],
"quantity": 1,
"attributes": null
},
{
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 1",
"productId": "",
"amount": 999.99,
"imageUrl": "https://example.com/product1-image.jpg",
"currencyCode": "USD",
"description": "Product 1 Description",
"hsCode": "9999.99.99",
"sku": "PRODUCT1_SKU",
"countryOfOrigin": "US",
"measurements": [
{
"type": "HEIGHT",
"unitOfMeasure": "INCH",
"value": 99
},
{
"type": "LENGTH",
"unitOfMeasure": "INCH",
"value": 99
},
{
"type": "WIDTH",
"unitOfMeasure": "INCH",
"value": 99
},
{
"type": "WEIGHT",
"unitOfMeasure": "OUNCE",
"value": 999
}
],
"quantity": 1,
"attributes": null
},
{
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 2",
"productId": "",
"amount": 999.99,
"imageUrl": "https://example.com/product2-image.jpg",
"currencyCode": "USD",
"description": "Product 2 Description",
"hsCode": "9999.99.99",
"sku": "PRODUCT2_SKU",
"countryOfOrigin": "US",
"measurements": [
{
"type": "HEIGHT",
"unitOfMeasure": "INCH",
"value": 99
},
{
"type": "LENGTH",
"unitOfMeasure": "INCH",
"value": 99
},
{
"type": "WIDTH",
"unitOfMeasure": "INCH",
"value": 99
},
{
"type": "WEIGHT",
"unitOfMeasure": "OUNCE",
"value": 99
}
],
"quantity": 1,
"attributes": null
},
{
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Insurance",
"productId": "",
"amount": 99.99,
"imageUrl": "",
"currencyCode": "USD",
"description": null,
"hsCode": "",
"sku": "INSURANCE_SKU",
"countryOfOrigin": "US",
"measurements": [
{
"type": "WEIGHT",
"unitOfMeasure": "POUND",
"value": 9.999
}
],
"quantity": 1,
"attributes": null
}
],
"paymentDetail": {
"chargeId": "ch_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"refunds": []
},
"landedCosts": [
{
"method": "DDP",
"landedCostGuaranteeCode": "GUARANTEE_CODE",
"currencyCode": "USD",
"amountSubtotals": {
"landedCostTotal": 0,
"duties": 0,
"fees": 0,
"taxes": 0,
"items": 999.99,
"shipping": 999.99
},
"remittance": [],
"shipmentRating": {
"displayName": "Shipping Method",
"serviceLevelCode": "shipping.service_code",
"amount": 999.99,
"currencyCode": "USD",
"details": [
{
"amount": 9999.99,
"carrierCode": "Carrier api: standard rate (shipping_rate)",
"type": "PUBLISHED_RATE"
},
{
"amount": 999.99,
"carrierCode": "Carrier api: fuel surcharge (999)",
"type": "FUEL_SURCHARGE"
},
{
"amount": -9999.99,
"carrierCode": "negotiated_rate",
"type": "DISCOUNT"
}
],
"appliedRules": []
},
"deMinimis": [
{
"type": "DUTY",
"threshold": "ABOVE"
},
{
"type": "TAX",
"threshold": "ABOVE"
}
],
"duties": [
{
"amount": 0,
"currencyCode": "USD",
"description": "duty",
"type": "ITEM",
"formula": "0.0 % cif",
"note": null,
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 1",
"productId": "",
"amount": 999.99,
"currencyCode": "USD",
"quantity": 1,
"description": "Product 1 Description"
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "duty",
"type": "SHIPPING",
"formula": "0.0 % cif",
"note": null,
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 1",
"productId": "",
"amount": 999.99,
"currencyCode": "USD",
"quantity": 1,
"description": "Product 1 Description"
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "duty",
"type": "ITEM",
"formula": "0.0 % cif",
"note": null,
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Discount",
"productId": "",
"amount": 0,
"currencyCode": "USD",
"quantity": 1,
"description": null
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "duty",
"type": "SHIPPING",
"formula": "0.0 % cif",
"note": null,
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Discount",
"productId": "",
"amount": 0,
"currencyCode": "USD",
"quantity": 1,
"description": null
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "duty",
"type": "ITEM",
"formula": "0.0 % cif",
"note": null,
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 2",
"productId": "",
"amount": 999.99,
"currencyCode": "USD",
"quantity": 1,
"description": "Product 2 Description"
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "duty",
"type": "SHIPPING",
"formula": "0.0 % cif",
"note": null,
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 2",
"productId": "",
"amount": 999.99,
"currencyCode": "USD",
"quantity": 1,
"description": "Product 2 Description"
}
}
],
"taxes": [
{
"amount": 0,
"currencyCode": "USD",
"description": "Tax",
"type": "ITEM",
"formula": "0%",
"note": null,
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Discount",
"productId": "",
"amount": 0,
"currencyCode": "USD",
"quantity": 1,
"description": null
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "Tax",
"type": "SHIPPING",
"formula": "0%",
"note": null,
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Discount",
"productId": "",
"amount": 0,
"currencyCode": "USD",
"quantity": 1,
"description": null
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "Tax",
"type": "ITEM",
"formula": "0%",
"note": null,
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 1",
"productId": "",
"amount": 999.99,
"currencyCode": "USD",
"quantity": 1,
"description": "Product 1 Description"
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "Tax",
"type": "SHIPPING",
"formula": "0%",
"note": null,
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 1",
"productId": "",
"amount": 999.99,
"currencyCode": "USD",
"quantity": 1,
"description": "Product 1 Description"
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "Tax",
"type": "ITEM",
"formula": "0%",
"note": null,
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 2",
"productId": "",
"amount": 999.99,
"currencyCode": "USD",
"quantity": 1,
"description": "Product 2 Description"
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "Tax",
"type": "SHIPPING",
"formula": "0%",
"note": null,
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 2",
"productId": "",
"amount": 999.99,
"currencyCode": "USD",
"quantity": 1,
"description": "Product 2 Description"
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "Tax",
"type": "DUTY",
"formula": "0%",
"note": "Tax on the duty of the item",
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 1",
"productId": "",
"amount": 999.99,
"currencyCode": "USD",
"quantity": 1,
"description": "Product 1 Description"
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "Tax",
"type": "DUTY",
"formula": "0%",
"note": "Tax on the duty of the shipping",
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 1",
"productId": "",
"amount": 999.99,
"currencyCode": "USD",
"quantity": 1,
"description": "Product 1 Description"
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "Tax",
"type": "DUTY",
"formula": "0%",
"note": "Tax on the duty of the item",
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Discount",
"productId": "",
"amount": 0,
"currencyCode": "USD",
"quantity": 1,
"description": null
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "Tax",
"type": "DUTY",
"formula": "0%",
"note": "Tax on the duty of the shipping",
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Discount",
"productId": "",
"amount": 0,
"currencyCode": "USD",
"quantity": 1,
"description": null
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "Tax",
"type": "DUTY",
"formula": "0%",
"note": "Tax on the duty of the item",
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 2",
"productId": "",
"amount": 999.99,
"currencyCode": "USD",
"quantity": 1,
"description": "Product 2 Description"
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "Tax",
"type": "DUTY",
"formula": "0%",
"note": "Tax on the duty of the shipping",
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 2",
"productId": "",
"amount": 999.99,
"currencyCode": "USD",
"quantity": 1,
"description": "Product 2 Description"
}
}
],
"fees": []
}
]
}
}
}
BESTELLING_GEANNULEERD
De BESTELLING_GEANNULEERD
gebeurtenis wordt geactiveerd wanneer een bestelling wordt geannuleerd. Het retourneert altijd een Order
object.
Voorbeeld van payload
{
"data": {
"order": {
"status": "OPEN",
"createdAt": "2024-07-23T16:18:57.104Z",
"accountOrderNumber": null,
"currencyCode": "HKD",
"organization": "organization_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"amountSubtotals": {
"duties": 0,
"fees": 0,
"items": 9999.99,
"shipping": 9999.99,
"taxes": 0,
"variance": -0.01
},
"root": {
"exchangeRates": [
{
"sourceCurrencyCode": "USD",
"targetCurrencyCode": "HKD",
"rate": 9.99999,
"type": "GUARANTEED"
},
{
"sourceCurrencyCode": "USD",
"targetCurrencyCode": "HKD",
"rate": 9.9999,
"type": "MID_MARKET"
},
{
"sourceCurrencyCode": "USD",
"targetCurrencyCode": "HKD",
"rate": 9.9999,
"type": "MID_MARKET"
},
{
"sourceCurrencyCode": "USD",
"targetCurrencyCode": "HKD",
"rate": 9.9999,
"type": "MID_MARKET"
},
{
"sourceCurrencyCode": "HKD",
"targetCurrencyCode": "USD",
"rate": 0.9999999999999999,
"type": "MID_MARKET"
}
]
},
"items": [
{
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Discount",
"productId": "",
"amount": 0,
"imageUrl": "",
"currencyCode": "USD",
"description": null,
"hsCode": "9999.99",
"sku": "DISCOUNT_SKU",
"countryOfOrigin": "CN",
"measurements": [
{
"type": "WEIGHT",
"unitOfMeasure": "POUND",
"value": 0
}
],
"quantity": 1,
"attributes": null
},
{
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 1",
"productId": "",
"amount": 999.99,
"imageUrl": "https://example.com/product1-image.jpg",
"currencyCode": "USD",
"description": "Product 1 Description",
"hsCode": "9999.99.99",
"sku": "PRODUCT1_SKU",
"countryOfOrigin": "US",
"measurements": [
{
"type": "HEIGHT",
"unitOfMeasure": "INCH",
"value": 99
},
{
"type": "LENGTH",
"unitOfMeasure": "INCH",
"value": 99
},
{
"type": "WIDTH",
"unitOfMeasure": "INCH",
"value": 99
},
{
"type": "WEIGHT",
"unitOfMeasure": "OUNCE",
"value": 999
}
],
"quantity": 1,
"attributes": null
},
{
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 2",
"productId": "",
"amount": 999.99,
"imageUrl": "https://example.com/product2-image.jpg",
"currencyCode": "USD",
"description": "Product 2 Description",
"hsCode": "9999.99.99",
"sku": "PRODUCT2_SKU",
"countryOfOrigin": "US",
"measurements": [
{
"type": "HEIGHT",
"unitOfMeasure": "INCH",
"value": 99
},
{
"type": "LENGTH",
"unitOfMeasure": "INCH",
"value": 99
},
{
"type": "WIDTH",
"unitOfMeasure": "INCH",
"value": 99
},
{
"type": "WEIGHT",
"unitOfMeasure": "OUNCE",
"value": 99
}
],
"quantity": 1,
"attributes": null
},
{
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Insurance",
"productId": "",
"amount": 99.99,
"imageUrl": "",
"currencyCode": "USD",
"description": null,
"hsCode": "",
"sku": "INSURANCE_SKU",
"countryOfOrigin": "US",
"measurements": [
{
"type": "WEIGHT",
"unitOfMeasure": "POUND",
"value": 9.999
}
],
"quantity": 1,
"attributes": null
}
],
"paymentDetail": {
"chargeId": "ch_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"refunds": []
},
"landedCosts": [
{
"method": "DDP",
"landedCostGuaranteeCode": "GUARANTEE_CODE",
"currencyCode": "USD",
"amountSubtotals": {
"landedCostTotal": 0,
"duties": 0,
"fees": 0,
"taxes": 0,
"items": 999.99,
"shipping": 999.99
},
"remittance": [],
"shipmentRating": {
"displayName": "Shipping Method",
"serviceLevelCode": "shipping.service_code",
"amount": 999.99,
"currencyCode": "USD",
"details": [
{
"amount": 9999.99,
"carrierCode": "Carrier api: standard rate (shipping_rate)",
"type": "PUBLISHED_RATE"
},
{
"amount": 999.99,
"carrierCode": "Carrier api: fuel surcharge (999)",
"type": "FUEL_SURCHARGE"
},
{
"amount": -9999.99,
"carrierCode": "negotiated_rate",
"type": "DISCOUNT"
}
],
"appliedRules": []
},
"deMinimis": [
{
"type": "DUTY",
"threshold": "ABOVE"
},
{
"type": "TAX",
"threshold": "ABOVE"
}
],
"duties": [
{
"amount": 0,
"currencyCode": "USD",
"description": "duty",
"type": "ITEM",
"formula": "0.0 % cif",
"note": null,
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 1",
"productId": "",
"amount": 999.99,
"currencyCode": "USD",
"quantity": 1,
"description": "Product 1 Description"
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "duty",
"type": "SHIPPING",
"formula": "0.0 % cif",
"note": null,
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 1",
"productId": "",
"amount": 999.99,
"currencyCode": "USD",
"quantity": 1,
"description": "Product 1 Description"
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "duty",
"type": "ITEM",
"formula": "0.0 % cif",
"note": null,
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Discount",
"productId": "",
"amount": 0,
"currencyCode": "USD",
"quantity": 1,
"description": null
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "duty",
"type": "SHIPPING",
"formula": "0.0 % cif",
"note": null,
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Discount",
"productId": "",
"amount": 0,
"currencyCode": "USD",
"quantity": 1,
"description": null
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "duty",
"type": "ITEM",
"formula": "0.0 % cif",
"note": null,
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 2",
"productId": "",
"amount": 999.99,
"currencyCode": "USD",
"quantity": 1,
"description": "Product 2 Description"
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "duty",
"type": "SHIPPING",
"formula": "0.0 % cif",
"note": null,
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 2",
"productId": "",
"amount": 999.99,
"currencyCode": "USD",
"quantity": 1,
"description": "Product 2 Description"
}
}
],
"taxes": [
{
"amount": 0,
"currencyCode": "USD",
"description": "Tax",
"type": "ITEM",
"formula": "0%",
"note": null,
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Discount",
"productId": "",
"amount": 0,
"currencyCode": "USD",
"quantity": 1,
"description": null
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "Tax",
"type": "SHIPPING",
"formula": "0%",
"note": null,
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Discount",
"productId": "",
"amount": 0,
"currencyCode": "USD",
"quantity": 1,
"description": null
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "Tax",
"type": "ITEM",
"formula": "0%",
"note": null,
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 1",
"productId": "",
"amount": 999.99,
"currencyCode": "USD",
"quantity": 1,
"description": "Product 1 Description"
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "Tax",
"type": "SHIPPING",
"formula": "0%",
"note": null,
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 1",
"productId": "",
"amount": 999.99,
"currencyCode": "USD",
"quantity": 1,
"description": "Product 1 Description"
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "Tax",
"type": "ITEM",
"formula": "0%",
"note": null,
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 2",
"productId": "",
"amount": 999.99,
"currencyCode": "USD",
"quantity": 1,
"description": "Product 2 Description"
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "Tax",
"type": "SHIPPING",
"formula": "0%",
"note": null,
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 2",
"productId": "",
"amount": 999.99,
"currencyCode": "USD",
"quantity": 1,
"description": "Product 2 Description"
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "Tax",
"type": "DUTY",
"formula": "0%",
"note": "Tax on the duty of the item",
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 1",
"productId": "",
"amount": 999.99,
"currencyCode": "USD",
"quantity": 1,
"description": "Product 1 Description"
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "Tax",
"type": "DUTY",
"formula": "0%",
"note": "Tax on the duty of the shipping",
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 1",
"productId": "",
"amount": 999.99,
"currencyCode": "USD",
"quantity": 1,
"description": "Product 1 Description"
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "Tax",
"type": "DUTY",
"formula": "0%",
"note": "Tax on the duty of the item",
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Discount",
"productId": "",
"amount": 0,
"currencyCode": "USD",
"quantity": 1,
"description": null
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "Tax",
"type": "DUTY",
"formula": "0%",
"note": "Tax on the duty of the shipping",
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Discount",
"productId": "",
"amount": 0,
"currencyCode": "USD",
"quantity": 1,
"description": null
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "Tax",
"type": "DUTY",
"formula": "0%",
"note": "Tax on the duty of the item",
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 2",
"productId": "",
"amount": 999.99,
"currencyCode": "USD",
"quantity": 1,
"description": "Product 2 Description"
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "Tax",
"type": "DUTY",
"formula": "0%",
"note": "Tax on the duty of the shipping",
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 2",
"productId": "",
"amount": 999.99,
"currencyCode": "USD",
"quantity": 1,
"description": "Product 2 Description"
}
}
],
"fees": []
}
]
}
}
}
ORDER_STATUS_CHANGED
De ORDER_STATUS_CHANGED
gebeurtenis wordt geactiveerd wanneer de status van een bestelling verandert. Het retourneert altijd een Order
object. Mogelijke statussen zijn te vinden in de OrderStatus
enum.
Voorbeeld van payload
{
"data": {
"order": {
"status": "OPEN",
"createdAt": "2024-07-23T16:18:57.104Z",
"accountOrderNumber": null,
"currencyCode": "HKD",
"organization": "organization_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"amountSubtotals": {
"duties": 0,
"fees": 0,
"items": 9999.99,
"shipping": 9999.99,
"taxes": 0,
"variance": -0.01
},
"root": {
"exchangeRates": [
{
"sourceCurrencyCode": "USD",
"targetCurrencyCode": "HKD",
"rate": 9.99999,
"type": "GUARANTEED"
},
{
"sourceCurrencyCode": "USD",
"targetCurrencyCode": "HKD",
"rate": 9.9999,
"type": "MID_MARKET"
},
{
"sourceCurrencyCode": "USD",
"targetCurrencyCode": "HKD",
"rate": 9.9999,
"type": "MID_MARKET"
},
{
"sourceCurrencyCode": "USD",
"targetCurrencyCode": "HKD",
"rate": 9.9999,
"type": "MID_MARKET"
},
{
"sourceCurrencyCode": "HKD",
"targetCurrencyCode": "USD",
"rate": 0.9999999999999999,
"type": "MID_MARKET"
}
]
},
"items": [
{
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Discount",
"productId": "",
"amount": 0,
"imageUrl": "",
"currencyCode": "USD",
"description": null,
"hsCode": "9999.99",
"sku": "DISCOUNT_SKU",
"countryOfOrigin": "CN",
"measurements": [
{
"type": "WEIGHT",
"unitOfMeasure": "POUND",
"value": 0
}
],
"quantity": 1,
"attributes": null
},
{
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 1",
"productId": "",
"amount": 999.99,
"imageUrl": "https://example.com/product1-image.jpg",
"currencyCode": "USD",
"description": "Product 1 Description",
"hsCode": "9999.99.99",
"sku": "PRODUCT1_SKU",
"countryOfOrigin": "US",
"measurements": [
{
"type": "HEIGHT",
"unitOfMeasure": "INCH",
"value": 99
},
{
"type": "LENGTH",
"unitOfMeasure": "INCH",
"value": 99
},
{
"type": "WIDTH",
"unitOfMeasure": "INCH",
"value": 99
},
{
"type": "WEIGHT",
"unitOfMeasure": "OUNCE",
"value": 999
}
],
"quantity": 1,
"attributes": null
},
{
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 2",
"productId": "",
"amount": 999.99,
"imageUrl": "https://example.com/product2-image.jpg",
"currencyCode": "USD",
"description": "Product 2 Description",
"hsCode": "9999.99.99",
"sku": "PRODUCT2_SKU",
"countryOfOrigin": "US",
"measurements": [
{
"type": "HEIGHT",
"unitOfMeasure": "INCH",
"value": 99
},
{
"type": "LENGTH",
"unitOfMeasure": "INCH",
"value": 99
},
{
"type": "WIDTH",
"unitOfMeasure": "INCH",
"value": 99
},
{
"type": "WEIGHT",
"unitOfMeasure": "OUNCE",
"value": 99
}
],
"quantity": 1,
"attributes": null
},
{
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Insurance",
"productId": "",
"amount": 99.99,
"imageUrl": "",
"currencyCode": "USD",
"description": null,
"hsCode": "",
"sku": "INSURANCE_SKU",
"countryOfOrigin": "US",
"measurements": [
{
"type": "WEIGHT",
"unitOfMeasure": "POUND",
"value": 9.999
}
],
"quantity": 1,
"attributes": null
}
],
"paymentDetail": {
"chargeId": "ch_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"refunds": []
},
"landedCosts": [
{
"method": "DDP",
"landedCostGuaranteeCode": "GUARANTEE_CODE",
"currencyCode": "USD",
"amountSubtotals": {
"landedCostTotal": 0,
"duties": 0,
"fees": 0,
"taxes": 0,
"items": 999.99,
"shipping": 999.99
},
"remittance": [],
"shipmentRating": {
"displayName": "Shipping Method",
"serviceLevelCode": "shipping.service_code",
"amount": 999.99,
"currencyCode": "USD",
"details": [
{
"amount": 9999.99,
"carrierCode": "Carrier api: standard rate (shipping_rate)",
"type": "PUBLISHED_RATE"
},
{
"amount": 999.99,
"carrierCode": "Carrier api: fuel surcharge (999)",
"type": "FUEL_SURCHARGE"
},
{
"amount": -9999.99,
"carrierCode": "negotiated_rate",
"type": "DISCOUNT"
}
],
"appliedRules": []
},
"deMinimis": [
{
"type": "DUTY",
"threshold": "ABOVE"
},
{
"type": "TAX",
"threshold": "ABOVE"
}
],
"duties": [
{
"amount": 0,
"currencyCode": "USD",
"description": "duty",
"type": "ITEM",
"formula": "0.0 % cif",
"note": null,
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 1",
"productId": "",
"amount": 999.99,
"currencyCode": "USD",
"quantity": 1,
"description": "Product 1 Description"
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "duty",
"type": "SHIPPING",
"formula": "0.0 % cif",
"note": null,
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 1",
"productId": "",
"amount": 999.99,
"currencyCode": "USD",
"quantity": 1,
"description": "Product 1 Description"
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "duty",
"type": "ITEM",
"formula": "0.0 % cif",
"note": null,
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Discount",
"productId": "",
"amount": 0,
"currencyCode": "USD",
"quantity": 1,
"description": null
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "duty",
"type": "SHIPPING",
"formula": "0.0 % cif",
"note": null,
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Discount",
"productId": "",
"amount": 0,
"currencyCode": "USD",
"quantity": 1,
"description": null
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "duty",
"type": "ITEM",
"formula": "0.0 % cif",
"note": null,
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 2",
"productId": "",
"amount": 999.99,
"currencyCode": "USD",
"quantity": 1,
"description": "Product 2 Description"
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "duty",
"type": "SHIPPING",
"formula": "0.0 % cif",
"note": null,
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 2",
"productId": "",
"amount": 999.99,
"currencyCode": "USD",
"quantity": 1,
"description": "Product 2 Description"
}
}
],
"taxes": [
{
"amount": 0,
"currencyCode": "USD",
"description": "Tax",
"type": "ITEM",
"formula": "0%",
"note": null,
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Discount",
"productId": "",
"amount": 0,
"currencyCode": "USD",
"quantity": 1,
"description": null
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "Tax",
"type": "SHIPPING",
"formula": "0%",
"note": null,
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Discount",
"productId": "",
"amount": 0,
"currencyCode": "USD",
"quantity": 1,
"description": null
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "Tax",
"type": "ITEM",
"formula": "0%",
"note": null,
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 1",
"productId": "",
"amount": 999.99,
"currencyCode": "USD",
"quantity": 1,
"description": "Product 1 Description"
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "Tax",
"type": "SHIPPING",
"formula": "0%",
"note": null,
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 1",
"productId": "",
"amount": 999.99,
"currencyCode": "USD",
"quantity": 1,
"description": "Product 1 Description"
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "Tax",
"type": "ITEM",
"formula": "0%",
"note": null,
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 2",
"productId": "",
"amount": 999.99,
"currencyCode": "USD",
"quantity": 1,
"description": "Product 2 Description"
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "Tax",
"type": "SHIPPING",
"formula": "0%",
"note": null,
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 2",
"productId": "",
"amount": 999.99,
"currencyCode": "USD",
"quantity": 1,
"description": "Product 2 Description"
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "Tax",
"type": "DUTY",
"formula": "0%",
"note": "Tax on the duty of the item",
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 1",
"productId": "",
"amount": 999.99,
"currencyCode": "USD",
"quantity": 1,
"description": "Product 1 Description"
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "Tax",
"type": "DUTY",
"formula": "0%",
"note": "Tax on the duty of the shipping",
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 1",
"productId": "",
"amount": 999.99,
"currencyCode": "USD",
"quantity": 1,
"description": "Product 1 Description"
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "Tax",
"type": "DUTY",
"formula": "0%",
"note": "Tax on the duty of the item",
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Discount",
"productId": "",
"amount": 0,
"currencyCode": "USD",
"quantity": 1,
"description": null
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "Tax",
"type": "DUTY",
"formula": "0%",
"note": "Tax on the duty of the shipping",
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Discount",
"productId": "",
"amount": 0,
"currencyCode": "USD",
"quantity": 1,
"description": null
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "Tax",
"type": "DUTY",
"formula": "0%",
"note": "Tax on the duty of the item",
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 2",
"productId": "",
"amount": 999.99,
"currencyCode": "USD",
"quantity": 1,
"description": "Product 2 Description"
}
},
{
"amount": 0,
"currencyCode": "USD",
"description": "Tax",
"type": "DUTY",
"formula": "0%",
"note": "Tax on the duty of the shipping",
"item": {
"id": "item_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Product 2",
"productId": "",
"amount": 999.99,
"currencyCode": "USD",
"quantity": 1,
"description": "Product 2 Description"
}
}
],
"fees": []
}
]
}
}
}
ZENDING_GEANNULEERD
Het ZENDING_GEANNULEERD
evenement wordt geactiveerd wanneer een zending ongeldig wordt gemaakt. Het retourneert altijd een Zending
object.
Voorbeeld van payload
{
"data": {
"shipment": {
"id": "shipment_[ID]",
"order": {
"accountOrderNumber": "[ACCOUNT_NUMBER]",
"id": "order_[ID]"
},
"parties": [
{
"type": "ORIGIN",
"location": {
"countryCode": "ID",
"administrativeArea": null,
"administrativeAreaCode": "[AREA_CODE]",
"line1": "[ADDRESS_LINE1]",
"line2": "",
"line3": "",
"locality": "[LOCALITY]",
"postalCode": "[POSTAL_CODE]"
},
"person": {
"firstName": "[FIRST_NAME]",
"lastName": "[LAST_NAME]",
"email": "[EMAIL]",
"phone": "[PHONE]",
"companyName": "[COMPANY_NAME]"
}
},
{
"type": "DESTINATION",
"location": {
"countryCode": "US",
"administrativeArea": null,
"administrativeAreaCode": "NY",
"line1": "[ADDRESS_LINE1]",
"line2": "[LINE2]",
"line3": null,
"locality": "New York",
"postalCode": "[POSTAL_CODE]"
},
"person": {
"firstName": "[FIRST_NAME]",
"lastName": "[LAST_NAME]",
"email": "[EMAIL]",
"phone": "[PHONE]",
"companyName": ""
}
}
],
"serviceLevel": {
"carrier": {
"name": "DHL"
},
"name": "DHL Express Worldwide",
"code": "dhl.express_worldwide"
},
"shipmentCartons": [
{
"id": "shipment_carton_[ID]",
"carton": {
"length": 5.9055,
"width": 7.874,
"height": 3.937,
"dimensionalUnit": "INCH",
"weight": 0.23,
"weightUnit": "POUND",
"items": [
{
"quantity": 1,
"item": {
"id": "item_[ID]",
"sku": "",
"name": "Caraco Black - S / Black",
"description": null,
"hsCode": "6109.10.0027",
"amount": 125.0,
"currencyCode": "USD"
}
}
]
},
"tracking": {
"number": "[TRACKING_NUMBER]"
},
"label": {
"labelAmounts": [
{
"amount": 22.71,
"amountType": "QUOTE",
"currencyCode": "USD"
}
],
"labelFileType": "PDF",
"url": "[URL]",
"statusTransitions": [
{
"changedAt": "[DATE_TIME]",
"status": "CREATED"
}
]
}
}
],
"createdAt": "[DATE_TIME]",
"status": "CREATED",
"customsDocuments": [
{
"documentType": "COMMERCIAL_INVOICE",
"fileUrl": "[URL]"
}
],
"shipmentConsolidation": null
}
}
}
SHIPMENT_CREATED
De SHIPMENT_CREATED
gebeurtenis wordt geactiveerd telkens wanneer een zending ongeldig wordt gemaakt. Het retourneert altijd een Shipment
object.
Voorbeeld van payload
{
"data": {
"shipment": {
"id": "shipment_[ID]",
"order": {
"accountOrderNumber": "[ACCOUNT_NUMBER]",
"id": "order_[ID]"
},
"parties": [
{
"type": "ORIGIN",
"location": {
"countryCode": "ID",
"administrativeArea": null,
"administrativeAreaCode": "[AREA_CODE]",
"line1": "[ADDRESS_LINE1]",
"line2": "",
"line3": "",
"locality": "[LOCALITY]",
"postalCode": "[POSTAL_CODE]"
},
"person": {
"firstName": "[FIRST_NAME]",
"lastName": "[LAST_NAME]",
"email": "[EMAIL]",
"phone": "[PHONE]",
"companyName": "[COMPANY_NAME]"
}
},
{
"type": "DESTINATION",
"location": {
"countryCode": "US",
"administrativeArea": null,
"administrativeAreaCode": "NY",
"line1": "[ADDRESS_LINE1]",
"line2": "[LINE2]",
"line3": null,
"locality": "New York",
"postalCode": "[POSTAL_CODE]"
},
"person": {
"firstName": "[FIRST_NAME]",
"lastName": "[LAST_NAME]",
"email": "[EMAIL]",
"phone": "[PHONE]",
"companyName": ""
}
}
],
"serviceLevel": {
"carrier": {
"name": "DHL"
},
"name": "DHL Express Worldwide",
"code": "dhl.express_worldwide"
},
"shipmentCartons": [
{
"id": "shipment_carton_[ID]",
"carton": {
"length": 5.9055,
"width": 7.874,
"height": 3.937,
"dimensionalUnit": "INCH",
"weight": 0.23,
"weightUnit": "POUND",
"items": [
{
"quantity": 1,
"item": {
"id": "item_[ID]",
"sku": "",
"name": "Caraco Black - S / Black",
"description": null,
"hsCode": "6109.10.0027",
"amount": 125.0,
"currencyCode": "USD"
}
}
]
},
"tracking": {
"number": "[TRACKING_NUMBER]"
},
"label": {
"labelAmounts": [
{
"amount": 22.71,
"amountType": "QUOTE",
"currencyCode": "USD"
}
],
"labelFileType": "PDF",
"url": "[URL]",
"statusTransitions": [
{
"changedAt": "[DATE_TIME]",
"status": "CREATED"
}
]
}
}
],
"createdAt": "[DATE_TIME]",
"status": "CREATED",
"customsDocuments": [
{
"documentType": "COMMERCIAL_INVOICE",
"fileUrl": "[URL]"
}
],
"shipmentConsolidation": null
}
}
}
Webhook evenementtypes
Ontvang realtime evenementmeldingen voor uw Zonos integratie.
Deze gids beschrijft de evenementtypes die Zonos kan verzenden als een webhook-respons. Elk type retourneert een specifiek GraphQL-object dat de gegevens bevat die relevant zijn voor het evenement.