Webhook eventsShipments
Shipment purchased
Sent when a shipment is booked.
shipment.purchasedHover a key to see what it means. Click it to jump to the field.
Mothership sends one shipment.purchased per shipment, seconds after the purchase completes. data is read then, so a stop or price that changed in those seconds goes out changed.
To follow the shipment from here, subscribe to shipment.status.updated too. Its first event, Unallocated, comes about the same time as this one. Don't rely on which arrives first.
Add shipment.purchased to a configuration's subscribedEvents with Create a webhook configuration or in the dashboard.
Event data
data · 9 keysThe shipment's status when Mothership built the event, seconds after the purchase. Usually
Unallocated, but a shipment that moved on in those seconds sends its newer status.UnallocatedFindingDriverDriverAllocatedEnrouteToPickupArrivedAtPickupEnrouteToDeliveryArrivedAtDeliveryCompletedWhat each value means →