Webhook/winkelstraat/push api/v2/shipment

POST https://webhook.example.com

The shipment webhook executes a POST in JSON format to a designated endpoint of the merchant. The shipment webhook event is executed after the customer has fully paid the order and a shipment has been created afterwards.

Headers

  • x-version string Required

    Version of the webhook.

  • x-api-key string

    The API-key is a shared secret that can be used to authenticate the incomming request.

application/json

Body

  • items array[object]
    Hide items attributes Show items attributes object
    • sku string
    • reference string | null

      The reference value specifies the product reference given by a merchant.

    • article_number string | null

      The article number value specifies the manufacturer product number (MPN).

    • manufacturer string
    • name string
    • size string
    • color string
    • quantity integer
    • image string
    • price number(float)
    • shipment_item_id string
  • shipping_address object
    Hide shipping_address attributes Show shipping_address attributes object
    • name string
    • street string
    • housenumber string
    • postcode string
    • city string
    • province string | null
    • country string
    • email string
  • shipment_id string
  • order_id string
  • date string(date-time)
  • discount number(float)
  • grand_total number(float)
  • shipping_method string | null

    The shipping method that is actually used for the current shipment

  • picking_pdf_url string | null
  • shipment_token string
  • carrier_code string | null

    Preferred carrier code selected by customer in checkout

  • carrier_method string | null

    Preferred carrier method selected by customer in checkout

  • logistics_service_provider_code string | null

    The logistics service provider code is only set when an outsourced company performs the distribution service

  • available_delivery_methods array[object]
    Hide available_delivery_methods attributes Show available_delivery_methods attributes object
    • carrier_code string

      The carrier code.

    • carrier_method string

      The carrier method. The special value '*' is reserved for any carrier method.

  • purchase_origin string

    The source where the payment for the purchase was made.

  • po_number string | null

    The PO number (external order reference)

  • package_point object | null

    Specifies package point delivery information. Value is NULL for regular shipments

    Hide package_point attributes Show package_point attributes object | null
    • identifier string
    • name string
    • carrier_code string
    • street_lines array[string]
    • postcode string
    • city string
    • state string | null
    • country_id string
    • email string | null
    • fax string | null
    • telephone string | null
  • addressee object | null
    Hide addressee attributes Show addressee attributes object | null
    • name string
    • street string
    • housenumber string
    • postcode string
    • city string
    • province string | null
    • country string
    • email string

Responses

  • 200

    Ok

  • 202

    Accepted

  • 406

    Not accepted

POST winkelstraat/push-api/v2/shipment
Request example
{
  "date": "2024-01-26T21:45:30.000+00:00",
  "items": [
    {
      "sku": "wsnl199-wsnl199-5c9de5ad4681ed3eb551e7ee",
      "name": "t-shirts",
      "size": "L",
      "color": "Blauw",
      "image": "https://www.winkelstraat.nl/img/744/744/resize/catalog/product/1/6/1660847_wsnl199-3g1mxe1mxvzf982-image_default.jpeg",
      "price": 271,
      "quantity": 1,
      "reference": "3G1MXE1MXVZF982",
      "manufacturer": "Emporio Armani",
      "article_number": "3G1MXE1MXVZF982 L",
      "shipment_item_id": "lDV"
    }
  ],
  "discount": 0,
  "order_id": "000000549",
  "po_number": "a_custom_po_number",
  "grand_total": 0,
  "shipment_id": "000000284",
  "shipment_token": "0:3:CS70ed/6GtDiRsvfuF2Q/5iArqmSr7mYy832e5xZTQ==",
  "picking_pdf_url": "https://m2.winkelstraat.nl/shippingpackingslip/shipment/packingslip/token/MDozOkJhRVpmQ3NHZmVBV0k0WGlteFdYNWtIdVhkb0Y0Y2FCTnRDZjlGZWNZWVR1TktuK09nWkF2cmtOdkpLWHZ0L3RaelhQZUE4aWxwSmVlbHN3QmlVNCtyTTA4ZFFlWEJ1RjRRPT0/",
  "purchase_origin": "ws.nl",
  "shipping_method": null,
  "shipping_address": {
    "city": "Zonnewijk",
    "name": "Jan Jansen",
    "email": "jan.jansen@gwinkelstraat.nl",
    "street": "Edsger Dijkstraat",
    "country": "NL",
    "postcode": "9012DE",
    "province": null,
    "housenumber": "12"
  },
  "available_delivery_methods": [
    {
      "carrier_code": "ups",
      "carrier_method": "11"
    }
  ],
  "logistics_service_provider_code": "lspwarehouse"
}