Deliveries
Create a delivery from an order in your application, then read it by the tracking code or list what you have sent. A delivery is accepted when it is created; a driver is assigned by the operator.
Creating a delivery
Send your own external_id, the sender and recipient contacts, the two places and at least one package. A package carries an optional type, contents, weight and all three dimensions or none. service_level is standard or express. The operator is the carrier: the delivery is created in their organisation and they run it from their dashboard.
Idempotency
external_id is unique inside the organisation. Sending the same id again returns the first delivery rather than creating a second, so a retry after a timeout is safe.
Contacts
The sender email is required because delivery notices go there. The recipient phone is required because the door is reached by a call. The service finds or creates both records under the organisation.
What a response contains
The tracking code, your external id, the status, the service level, the current branch, the promised window, the parcels, the event history and the legs with their driver and vehicle. It never contains internal ids, contact details, addresses or the operator's customer records.
Packages
A delivery carries one to twenty packages. package_type is a closed set, weight_grams is an integer, and length_cm, width_cm and height_cm must all be present or all absent; a partial volume is refused with DIMENSIONS_TOGETHER.
Branches and line haul
The workspace decides the route. A delivery can move through branches, and its current_branch is the branch it is at or was last handed to. GET /integration/branches lists the branches a dispatcher can choose. Line-haul legs are the handovers in the leg list; a non-final handover does not give the next driver the recipient details.
Statuses and events
The shipment status is the operator's current state. The event history is the story that led to it, including acceptance, collection, departure, arrival, delivery, failure and return. Read the delivery after a webhook rather than treating the webhook as the full record.
Example
Request
POST /api/v1/integration/deliveries
x-api-key: sk-pan-live-0123456789abcdef_YOUR_SECRET_VALUE
Content-Type: application/json
{
"external_id": "order-1042",
"customer": {
"name": "Amaka Obi",
"email": "amaka@example.com",
"phone": "08030000000"
},
"recipient": {
"name": "Tunde Bello",
"phone": "08031111111",
"place_id": "01000000-0000-4000-8000-000000000011",
"address_line": "4 Broad Street"
},
"service_level": "standard",
"origin": { "place_id": "01000000-0000-4000-8000-000000000010" },
"destination": {
"place_id": "01000000-0000-4000-8000-000000000011",
"address_line": "4 Broad Street"
},
"packages": [{
"package_type": "document",
"description": "Documents",
"weight_grams": 500,
"length_cm": 30,
"width_cm": 20,
"height_cm": 5
}]
}Response
{
"data": {
"tracking_code": "PNK-7K3M2Q",
"external_id": "order-1042",
"status": "accepted",
"service_level": "standard",
"current_branch": null,
"promised_from": null,
"promised_to": null,
"declared_value_minor": null,
"currency": "NGN",
"created_at": "2026-10-20T08:00:00.000Z",
"packages": [{ "description": "Documents", "weight_grams": 500, "declared_value_minor": null }],
"events": [
{ "type": "shipment.created", "occurred_at": "2026-10-20T08:00:00.000Z", "recorded_at": "2026-10-20T08:00:00.000Z" },
{ "type": "shipment.accepted", "occurred_at": "2026-10-20T08:00:00.000Z", "recorded_at": "2026-10-20T08:00:00.001Z" }
]
}
}Reading and listing
Read one delivery by its tracking code, or list the deliveries with an optional status or external id. Lists are paged with limit and offset and return next_offset.
Responses
GET/api/v1/integration/deliveriesAPI key
Lists the deliveries created through the integration, newest first, with an optional status or external id.
Required scopes: deliveries:read
Query parameters
| Field | Type and limits | Required |
|---|---|---|
status | draft | quoted | accepted | awaiting_collection | in_transit | awaiting_handover | completed | failed | cancelled | returned | No |
external_id | string, 1 to 120 characters | No |
limit | integer, 1 to 100 | No |
offset | integer, 0 to 9007199254740991 | No |
Responses
200Success401The API key is missing, unknown, revoked, or expired.403The key lacks the scope, the source is not allowed, or the plan has no API access.422A value failed validation; the envelope lists the fields.429The plan rate limit was exceeded. Retry after the window.defaultAny other failure
POST/api/v1/integration/deliveriesAPI key
Creates a delivery from an external order. Repeating the same external id returns the first delivery rather than creating a second.
Required scopes: deliveries:writedeliveries:read
Request body
| Field | Type and limits | Required |
|---|---|---|
external_id | string, 1 to 120 characters | Yes |
customer | object | Yes |
customer.name | string, 1 to 120 characters | Yes |
customer.email | string (email), 0 to 200 characters | Yes |
customer.phone | string, 5 to 30 characters | No |
recipient | object | Yes |
recipient.name | string, 1 to 120 characters | Yes |
recipient.phone | string, 5 to 30 characters | Yes |
recipient.place_id | string (uuid) | No |
recipient.address_line | string, 1 to 240 characters | No |
origin | object | Yes |
origin.place_id | string (uuid) | No |
origin.address_line | string, 1 to 240 characters | No |
destination | object | Yes |
destination.place_id | string (uuid) | No |
destination.address_line | string, 1 to 240 characters | No |
service_level | standard | express | No |
promised_from | string (date-time) | No |
promised_to | string (date-time) | No |
declared_value_minor | integer, 0 to 2000000000 | No |
packages | array of object, 1 to 20 items | Yes |
packages[].package_type | document | parcel | box | pallet | other | No |
packages[].weight_grams | integer, 1 to 1000000 | No |
packages[].length_cm | integer, 1 to 300 | No |
packages[].width_cm | integer, 1 to 300 | No |
packages[].height_cm | integer, 1 to 300 | No |
packages[].description | string, 1 to 200 characters | No |
packages[].declared_value_minor | integer, 0 to 2000000000 | No |
Responses
200Success400The request body could not be read.401The API key is missing, unknown, revoked, or expired.403The key lacks the scope, the source is not allowed, or the plan has no API access.422A value failed validation; the envelope lists the fields.429The plan rate limit was exceeded. Retry after the window.defaultAny other failure
GET/api/v1/integration/deliveries/{trackingCode}API key
Returns one delivery by tracking code, with its parcels, legs and event history.
Required scopes: deliveries:read
Path parameters
| Field | Type and limits | Required |
|---|---|---|
trackingCode | string, 3 to 40 characters | Yes |
Responses
200Success401The API key is missing, unknown, revoked, or expired.403The key lacks the scope, the source is not allowed, or the plan has no API access.404That delivery does not exist in this organisation.422A value failed validation; the envelope lists the fields.429The plan rate limit was exceeded. Retry after the window.defaultAny other failure
POST/api/v1/integration/deliveries/{trackingCode}/assignAPI key
Offers the first unassigned leg to a driver, with an optional vehicle.
Required scopes: deliveries:writedeliveries:read
Path parameters
| Field | Type and limits | Required |
|---|---|---|
trackingCode | string, 3 to 40 characters | Yes |
Request body
| Field | Type and limits | Required |
|---|---|---|
driver_id | string (uuid) | Yes |
vehicle_id | string (uuid) | No |
Responses
200Success400The request body could not be read.401The API key is missing, unknown, revoked, or expired.403The key lacks the scope, the source is not allowed, or the plan has no API access.404That delivery does not exist in this organisation.422A value failed validation; the envelope lists the fields.429The plan rate limit was exceeded. Retry after the window.defaultAny other failure