curl --request POST \
--url https://developer.haulstow.co/v1/deliveries \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"external_id": "shop-order-1842",
"recipient": {
"name": "Ama Mensah",
"phone_number": "+233245412312",
"address": {
"label": "Home",
"address": "15 Independence Avenue, Accra",
"latitude": 5.56,
"longitude": -0.2057,
"municipality": "Accra Metropolitan",
"delivery_notes": "Call when you arrive"
}
},
"pickup": {
"name": "Osu Store",
"contact": "+233200000001",
"address": "Oxford Street, Osu, Accra",
"latitude": 5.556,
"longitude": -0.182
},
"payment": {
"type": "cod",
"goods_value": 185
},
"vehicle_type": "bike",
"delivery_instructions": "Leave with the front desk if authorized"
}
'{
"success": true,
"statusCode": 201,
"message": "Delivery created",
"data": {
"id": "dlv_3f1a821cdb58498cbb52f4706545a089",
"external_id": "shop-order-1842",
"reference": "H-RS83223",
"environment": "live",
"simulated": false,
"status": "booked",
"recipient": {
"id": "rcp_3f1a821cdb58498cbb52f4706545a089",
"name": "Ama Mensah",
"phone_number": "+233245412312"
},
"pickup": {
"name": "Osu Store",
"contact": "+233200000001",
"address": "Oxford Street, Osu, Accra",
"latitude": 5.556,
"longitude": -0.182
},
"dropoff": {
"id": "adr_78de60204f574a64be88ba9bd94a049f",
"label": "Home",
"address": "15 Independence Avenue, Accra",
"latitude": 5.56,
"longitude": -0.2057,
"municipality": "Accra Metropolitan",
"delivery_notes": "Call when you arrive"
},
"payment": {
"type": "cod",
"goods_value": 185
},
"vehicle_type": "bike",
"currency": "GHS",
"delivery_fee": 20,
"requires_custom_quote": false,
"tracking_url": "https://track.haulstow.co/H-RS83223",
"created_at": "2026-08-20T14:20:00Z",
"updated_at": "2026-08-20T14:20:00Z"
}
}Create a delivery
Creates one delivery using either existing recipient/address IDs or one inline recipient. The two recipient shapes are mutually exclusive.
The pickup is likewise either an inline pickup or a saved
pickup_location_id from pickup locations.
Sending both returns 422 PICKUP_SHAPE_CONFLICT. An unknown location
returns 422 PICKUP_LOCATION_NOT_FOUND, an inactive one
422 PICKUP_LOCATION_INACTIVE, and one missing a contact or coordinates
422 PICKUP_LOCATION_INCOMPLETE.
This public contract is content-opaque: it accepts no line items,
product contents, declared value, rider, vehicle, fee override,
business_id, or operational status.
With a test key you can add a sandbox object to make the new delivery
play out a real-world scenario by itself. See
Automatic simulation. A live key that
sends sandbox gets 400 SANDBOX_ONLY_FIELD and nothing is created.
In the sandbox, a scenario that does not fit the payment type returns
409 SIMULATION_NOT_APPLICABLE, and starting more than 100 running
simulations for one application returns 429 SIMULATION_LIMIT.
curl --request POST \
--url https://developer.haulstow.co/v1/deliveries \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"external_id": "shop-order-1842",
"recipient": {
"name": "Ama Mensah",
"phone_number": "+233245412312",
"address": {
"label": "Home",
"address": "15 Independence Avenue, Accra",
"latitude": 5.56,
"longitude": -0.2057,
"municipality": "Accra Metropolitan",
"delivery_notes": "Call when you arrive"
}
},
"pickup": {
"name": "Osu Store",
"contact": "+233200000001",
"address": "Oxford Street, Osu, Accra",
"latitude": 5.556,
"longitude": -0.182
},
"payment": {
"type": "cod",
"goods_value": 185
},
"vehicle_type": "bike",
"delivery_instructions": "Leave with the front desk if authorized"
}
'{
"success": true,
"statusCode": 201,
"message": "Delivery created",
"data": {
"id": "dlv_3f1a821cdb58498cbb52f4706545a089",
"external_id": "shop-order-1842",
"reference": "H-RS83223",
"environment": "live",
"simulated": false,
"status": "booked",
"recipient": {
"id": "rcp_3f1a821cdb58498cbb52f4706545a089",
"name": "Ama Mensah",
"phone_number": "+233245412312"
},
"pickup": {
"name": "Osu Store",
"contact": "+233200000001",
"address": "Oxford Street, Osu, Accra",
"latitude": 5.556,
"longitude": -0.182
},
"dropoff": {
"id": "adr_78de60204f574a64be88ba9bd94a049f",
"label": "Home",
"address": "15 Independence Avenue, Accra",
"latitude": 5.56,
"longitude": -0.2057,
"municipality": "Accra Metropolitan",
"delivery_notes": "Call when you arrive"
},
"payment": {
"type": "cod",
"goods_value": 185
},
"vehicle_type": "bike",
"currency": "GHS",
"delivery_fee": 20,
"requires_custom_quote": false,
"tracking_url": "https://track.haulstow.co/H-RS83223",
"created_at": "2026-08-20T14:20:00Z",
"updated_at": "2026-08-20T14:20:00Z"
}
}Authorizations
A business-bound HaulStow API key. Send
Authorization: Bearer hsg_live_key_... to the live server or a
hsg_test_key_... key to the sandbox server. Never expose this key in a browser.
Headers
Optional caller correlation ID. Use 1–128 ASCII letters, digits, ., _,
-, or :. Invalid values are replaced. The accepted/generated value is
returned in the response.
1 - 128^[A-Za-z0-9._:-]+$A unique key for this logical mutation. Retained for 24 hours.
8 - 255Body
- Inline pickup
- Saved pickup location
- Inline pickup
- Saved pickup location
^rcp_[a-f0-9]{32}$"rcp_3f1a821cdb58498cbb52f4706545a089"
^adr_[a-f0-9]{32}$"adr_78de60204f574a64be88ba9bd94a049f"
Show child attributes
Show child attributes
- Option 1
- Option 2
Show child attributes
Show child attributes
bike, minivan "bike"
Unique within the authenticated application when supplied.
1 - 128Show child attributes
Show child attributes
^pkp_[a-f0-9]{32}$"pkp_9b2f0c1e4d5a4b6c8e7f1a2b3c4d5e6f"
500Sandbox only. Makes the delivery play out a scenario by itself.
Show child attributes
Show child attributes
