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
Headers
Body
- Inline pickup
- Saved pickup location
- Inline pickup
- Saved pickup location
Total weight of the parcel in kilograms. Only read for minivan: with
volume_m3 it decides the load tier the trip is priced on (the higher
of the two). Omit both and the smallest tier applies. A weight over the
largest tier is refused with 422 MANUAL_QUOTE_REQUIRED. Ignored for
bike.
0 <= x <= 1000080
