Winkelstraat/stock hub/v1/order
The order webhook performs a POST in JSON format to a designated endpoint of the reseller.
Headers
-
Version of the webhook.
-
x-api-key string
The API-key is a shared secret that can be used to authenticate the incomming request.
Body
-
increment_id string
-
created_at string(date-time)
-
updated_at string(date-time)
-
items array[object]
-
shipping_address object
-
billing_address object
-
status string | null
-
shipping_price number | null
-
grand_total number | null
-
subtotal number | null
-
currency string | null
-
po_number string | null
The PO number is the reference number to pay for approved purchases. The PO number is used to link the order to the order of the purchasing company.
Request example
{
"items": [
{
"mpn": "3G1MXE1MXVZF982",
"sku": "wsnl199-5c9de5ad4681ed3eb551e7ee",
"size": "L",
"parent_sku": "381189",
"qty_ordered": 2,
"manufacturer": "Emporio Armani",
"row_total_inc_tax": 540,
"item_price_inc_tax": 270
}
],
"status": "complete",
"currency": "EUR",
"subtotal": 540,
"po_number": "YOUR_ORDER_REFERENCE",
"created_at": "2024-03-11T10:58:51.000+00:00",
"updated_at": "2024-03-11T11:03:21.000+00:00",
"grand_total": 545.95,
"increment_id": "000000549",
"shipping_price": 5.95,
"billing_address": {
"city": "Zonnewijk",
"email": "jan.jansen@gwinkelstraat.nl",
"street": "Edsger Dijkstraat",
"postcode": "9012DE",
"last_name": "Jansen",
"telephone": "+31621510775",
"country_id": "NL",
"first_name": "Jan",
"region_code": null,
"company_name": null,
"house_number": "12"
},
"shipping_address": {
"city": "Zonnewijk",
"email": "jan.jansen@gwinkelstraat.nl",
"street": "Edsger Dijkstraat",
"postcode": "9012DE",
"last_name": "Jansen",
"telephone": "+31621510775",
"country_id": "NL",
"first_name": "Jan",
"region_code": null,
"company_name": null,
"house_number": "12"
}
}