Label printed

Wuunder stores the labels and allows users to print labels at a later stage. After booking, the labels need to be printed prior to handing a shipment to a carrier. Not all shipments are immediately printed as the shipments can be booked via the UI. The webhook will therefore trigger when a print of the label was triggered via the UI or via the URL that the API returned.

When a label for a shipment is printed a webhook is sent with the following payload:

{
  "action": "label_printed",
  "shipment_id": "d6a9f02a-666a-4f56-bb78-c8ec57b1fb52",
  "shipment": {
    "id": "d6a9f02a-666a-4f56-bb78-c8ec57b1fb52",
    "description": "Shipment description",
    "personal_message": "",
    "value": 300,
    "kind": "package",
    "length": 50,
    "width": 30,
    "height": 5,
    "status": "ready_for_pickup",
    "customer_reference": "SHIPMENT-001",
    "drop_off": false,
    "name": "Customer Service",
    "delivery_address": {
      "street_name": "Marconilaan",
      "house_number": "8",
      ...
    },
    "pickup_address": {
      "street_name": "Marconilaan",
      "house_number": "8",
      ...
    },
    "label_url": "https://api.wearewuunder.com/...",
    "meta": null,
    "track_and_trace_url": "https://api.wearewuunder.com/...",
    "picture_url": "https://api.wearewuunder.com/...",
    "track_and_trace_details": {
      "track_and_trace_code": "3DSKDIM123456",
      "carrier_code": "CARRIER",
      "carrier_name": "Carrier",
      "track_and_trace_url": "https://carrier.com/s?code=3DSKDIM123456"
    }
  },
 "authentication_token": "..."
}