Shipment booked

This webhook triggers when a shipment is booked regardless of wether the shipment is booked through the UI or API. Most of the information in the webhook is also returned in the API response.

When a shipment is booked a webhook is sent with the following payload:

{
  "action": "shipment_booked",
  "shipment": {
    "id": "d6a9f02a-666a-4f56-bb78-c8ec57b1fb52",
    "description": "Shipment description",
    "personal_message": "",
    "value": 300,
    "kind": "package",
    "length": 50,
    "width": 30,
    "height": 5,
    "status": "pending_printing",
    "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"
    }
  },
  "booking_info": {
    "ad_hoc_pickup": true,
    "bol_shipping_label_id": null,
    "booking_account_id": null,
    "booking_account_type": null,
    "carrier_code": "CARRIER",
    "carrier_name": "Carrier",
    "carrier_data": {
      // data that comes from the carrier
      "pref": "123456"
    },
    "correlation_id": "3DSKDIM123456",
    "delivery_date": "2025-12-01",
    "label_available": true,
    "parcelshop_id": null,
    "pickup_date": "2025-11-30",
    "price": 5.95,
    "purchase_price": 5.85,
    "track_and_trace_code": "3DSKDIM123456",
    "track_and_trace_url": "https://carrier.com/s?code=3DSKDIM123456",
    "items": [
      {
        "correlation_id": "3DSKDIM123456",
        "track_and_trace_code": "3DSKDIM123456",
        "track_and_trace_url": "https://carrier.com/s?code=3DSKDIM123456"
      }
    ]
  },
  "rate": {
    "id": "29767a93-8004-4a1b-a719-1ffa68164f34",
    "selected_rate_id": "29767a93-8004-4a1b-a719-1ffa68164f34",
    "price": 595,
    "vat": 0,
    "rate_modifier": 1,
    "currency": "EUR",
    "carrier_name": "Carrier",
    "carrier_product_description": "Carrier @Home",
    "info": null,
    "pickup_date": "2025-11-30",
    "service_time": {
      "after": null,
      "before": "18:00:00"
    },
    "modality": "road"
  },
  "authentication_token": "..."
}