What it does. Notifies you that a shipment has been created for a paid order, including the items in the shipment, the shipping address, and the packing-slip URL.
When it is sent. After the customer has fully paid the order and a shipment has been created.
Version. Recommended (V2).
Headers
-
Version of the webhook.
-
The API-key is a shared secret that can be used to authenticate the incoming request.
Body
-
The items included in this shipment or return.
-
Shipping address of the order.
-
Winkelstraat shipment increment ID (e.g.
000000284). -
Winkelstraat order increment ID (e.g.
000000549). -
Order creation date/time.
-
Discount amount on this shipment, in the store's base currency.
-
Grand total of this shipment, in the store's base currency.
-
The shipping method that is actually used for the current shipment
-
URL to the picking / packing-slip PDF.
-
Opaque, signed token identifying the shipment; used in follow-up API calls.
-
Preferred carrier code selected by customer in checkout
-
Preferred carrier method selected by customer in checkout
-
The logistics service provider code is only set when an outsourced company performs the distribution service
-
Carrier methods available for this shipment (populated when the method is not yet fixed; empty otherwise).
-
The selling entity for this purchase: the B2B company name when the order belongs to a company, otherwise the Winkelstraat store name (e.g.
ws.nl). Free text. -
The PO number (external order reference)
-
Specifies package point delivery information. Value is NULL for regular shipments
-
Address information. Value is only specified for package point deliveries.
Responses
-
Delivered. Return any 2xx status to acknowledge receipt; the response body may be empty or contain anything, as Winkelstraat does not read it. Any 2xx response is treated as a successful delivery and the webhook is not retried.
No response body is expected; Winkelstraat does not read it. Returning a 2xx with an empty body is sufficient.
-
Accepted for asynchronous processing. Treated the same as 200 — the webhook is not retried.
-
Not accepted. Any non-2xx response — or a connection/timeout failure — is treated as a failed delivery, and the webhook is retried several times over the next 24 hours.
# Headers
x-version: V2
x-api-key: string
# Payload
{
"items": [
{
"sku": "wsnl199-wsnl199-5c9de5ad4681ed3eb551e7ee",
"reference": "3G1MXE1MXVZF982",
"article_number": "3G1MXE1MXVZF982 L",
"name": "t-shirts",
"size": "L",
"manufacturer": "Emporio Armani",
"color": "Blauw",
"quantity": 1,
"image": "https://www.winkelstraat.nl/img/744/744/resize/catalog/product/1/6/1660847_wsnl199-3g1mxe1mxvzf982-image_default.jpeg",
"price": 271,
"shipment_item_id": "lDV"
}
],
"shipment_id": "000000284",
"order_id": "000000549",
"date": "2024-01-26T21:45:30.000+00:00",
"discount": 0,
"grand_total": 0,
"shipping_method": null,
"picking_pdf_url": "https://m2.winkelstraat.nl/shippingpackingslip/shipment/packingslip/token/MDozOkJhRVpmQ3NHZmVBV0k0WGlteFdYNWtIdVhkb0Y0Y2FCTnRDZjlGZWNZWVR1TktuK09nWkF2cmtOdkpLWHZ0L3RaelhQZUE4aWxwSmVlbHN3QmlVNCtyTTA4ZFFlWEJ1RjRRPT0/",
"shipping_address": {
"name": "Jan Jansen",
"street": "Edsger Dijkstraat",
"housenumber": "12",
"postcode": "9012DE",
"city": "Zonnewijk",
"province": null,
"country": "NL",
"email": "jan.jansen@gwinkelstraat.nl"
},
"logistics_service_provider_code": "lspwarehouse",
"available_delivery_methods": [
{
"carrier_code": "ups",
"carrier_method": "11"
}
],
"shipment_token": "0:3:CS70ed/6GtDiRsvfuF2Q/5iArqmSr7mYy832e5xZTQ==",
"purchase_origin": "ws.nl",
"po_number": "a_custom_po_number"
}
{}