Quote a delivery
POST/v2/delivery/quote
Paid API plans only. Prices a delivery from pickup to dropoff
with your saved rules (or rules sent inline). The route is AfriHex's
road route with Ghana traffic for depart_at (default now).
The response has the amount, a line-by-line breakdown, the route
facts the price used, and a quote_id that stays valid for 15
minutes. Fetch it with GET /v2/delivery/quotes/{id} to confirm a
price at checkout. Rules that could not be evaluated, such as a
weight surcharge without parcel.weight_kg, are listed in skipped.
pickup and dropoff take any location form, including a
GhanaPostGPS gps_code. This only calculates a price: payment stays
with you.
Request
Responses
- 200
- 400
- 403
- 422
The quote
Invalid request, invalid inline rules, or no rules saved (VALIDATION_ERROR, NO_PRICING_RULES)
Not on a paid API plan (PLAN_UPGRADE_REQUIRED)
No road route between the two points (NO_ROUTE)