Panalk
LanguageEnglish
Download the OpenAPI document

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

FieldType and limitsRequired
statusdraft | quoted | accepted | awaiting_collection | in_transit | awaiting_handover | completed | failed | cancelled | returnedNo
external_idstring, 1 to 120 charactersNo
limitinteger, 1 to 100No
offsetinteger, 0 to 9007199254740991No

Responses

  • 200Success
  • 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
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

FieldType and limitsRequired
external_idstring, 1 to 120 charactersYes
customerobjectYes
customer.namestring, 1 to 120 charactersYes
customer.emailstring (email), 0 to 200 charactersYes
customer.phonestring, 5 to 30 charactersNo
recipientobjectYes
recipient.namestring, 1 to 120 charactersYes
recipient.phonestring, 5 to 30 charactersYes
recipient.place_idstring (uuid)No
recipient.address_linestring, 1 to 240 charactersNo
originobjectYes
origin.place_idstring (uuid)No
origin.address_linestring, 1 to 240 charactersNo
destinationobjectYes
destination.place_idstring (uuid)No
destination.address_linestring, 1 to 240 charactersNo
service_levelstandard | expressNo
promised_fromstring (date-time)No
promised_tostring (date-time)No
declared_value_minorinteger, 0 to 2000000000No
packagesarray of object, 1 to 20 itemsYes
packages[].package_typedocument | parcel | box | pallet | otherNo
packages[].weight_gramsinteger, 1 to 1000000No
packages[].length_cminteger, 1 to 300No
packages[].width_cminteger, 1 to 300No
packages[].height_cminteger, 1 to 300No
packages[].descriptionstring, 1 to 200 charactersNo
packages[].declared_value_minorinteger, 0 to 2000000000No

Responses

  • 200Success
  • 400The 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

FieldType and limitsRequired
trackingCodestring, 3 to 40 charactersYes

Responses

  • 200Success
  • 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
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

FieldType and limitsRequired
trackingCodestring, 3 to 40 charactersYes

Request body

FieldType and limitsRequired
driver_idstring (uuid)Yes
vehicle_idstring (uuid)No

Responses

  • 200Success
  • 400The 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