1. Create your connection
Open Connections in your Business workspace, then API access. Create a key for your own system and choose the access it needs.
Open connection tools2. Make your first request
Send requests from your server. Keep your key out of storefront code and mobile apps.
GET /api/merchant/v1/orders/YOUR_ORDER_ID
Authorization: Bearer YOUR_API_KEY3. Import, review and book
| Method | Endpoint | Access |
|---|---|---|
POST | /api/merchant/v1/orders | orders:write |
GET | /api/merchant/v1/orders/:externalId | orders:read |
POST | /api/merchant/v1/rates | rates:read |
POST | /api/merchant/v1/orders/:externalId/prepare | shipments:book |
POST | /api/merchant/v1/orders/:externalId/quotes | shipments:book |
POST | /api/merchant/v1/orders/:externalId/book | shipments:book |
Automatic booking needs an enabled booking policy, a daily budget and enough wallet balance. Send a unique Idempotency-Key with booking requests.
4. Keep retries safe
Retry the same request with the same Idempotency-Key after a connection failure. Use a new order revision when the customer’s details change.
POST /api/merchant/v1/orders
{
"eventId": "order-1042-v1",
"externalId": "1042",
"revision": 1,
"name": "Order 1042",
"currency": "NGN",
"items": [{ "name": "Cotton shirt", "quantity": 1 }],
"delivery": { "country": "NG", "region": "Lagos", "city": "Ikeja", "line1": "12 Allen Avenue", "contactName": "Ada Okafor", "phone": "+2348030000000" }
}When a request needs attention
- 401
- Check the key and its expiry.
- 403
- Check the key’s permissions and the account access.
- 409
- Refresh the record or quote before continuing.
- 429
- Wait before retrying.
