Create one shipment from a merchant reference and two location pins
DropHub derives address and city context, route, coverage, pricing, carrier eligibility, service and dispatch decisions, SAR/payment defaults, lifecycle defaults, and the customer tracking URL. Idempotency-Key is optional because the merchant reference is the default key.
Authorizations
OAuth 2.0 client-credentials flow for external machine-to-machine integrations.
Headers
Optional. Retry safety is handled for you: when this header is absent DropHub derives the key from the reference you already send — the order number on a shipment create, the shipment id on a cancel — scoped to your merchant account. Two calls naming the same order are treated as one submission and the second returns the original result. Send your own key only if you want to control the replay window yourself; an explicit key always wins.
16 - 128"merchant-order-20260822-0001"
Body
Merchant order/reference number and default idempotency key.
1 - 128Use either a saved pickup code or a coordinate pin.
- Option 1
- Option 2
Omit for prepaid shipments; currency is SAR.
0.01Response
Minimal partner-safe shipment
CREATED, ASSIGNED, PICKED_UP, OUT_FOR_DELIVERY, DELIVERED, FAILED, CANCELLED x >= 0x >= 0