PACKROUTER DEVELOPERS

Build shipping into your business.

Keys, requests and working examples in one place.

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 tools

2. 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_KEY

3. Import, review and book

MethodEndpointAccess
POST/api/merchant/v1/ordersorders:write
GET/api/merchant/v1/orders/:externalIdorders:read
POST/api/merchant/v1/ratesrates:read
POST/api/merchant/v1/orders/:externalId/prepareshipments:book
POST/api/merchant/v1/orders/:externalId/quotesshipments:book
POST/api/merchant/v1/orders/:externalId/bookshipments: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.