Panalk
LanguageEnglish
Download the OpenAPI document

Store integrations

A customer with a verified account can connect a store to Panalk. Use the operators that already know the address, or apply to discover and match operators across the network.

Two levels of access

A connected key deals only with operators that already have this verified address as a customer. A marketplace key adds discovery and matching, and it exists only after a platform administrator accepts an application. An operator always receives the order as a request and still accepts or declines it.

Connected access

Create a key in the customer portal under Integrations. No review is needed. List the connected operators, ask one for a quote, then create the order with the store reference. The key acts through the verified address, so the operator sees the same customer record a person using the portal would use.

Marketplace access

Apply from the same screen with the company name, website and use case. A rejected application can be submitted again; a suspended one cannot, and its keys and webhooks stop immediately. An accepted application grants discovery and the per-store limits the administrator sets.

Store keys

A store key starts sk-pan-cus-live-. The full key is shown once; only its prefix is stored in readable form. The key acts for one customer account and carries an optional source allowlist and expiry. Rotate or revoke it from the portal at any time. A connected key holds operators:read, quotes:write, orders:read, orders:write, webhooks:read and webhooks:write; an accepted application adds discovery:read.

x-api-key: sk-pan-cus-live-0123456789abcdef_YOUR_SECRET_VALUE

Quotes and orders

An order is a delivery request. Ask for a quote first, then create the order with your own external_id; sending the same id again returns the first order. The operator confirms the final price at acceptance, and the order read carries the delivery story, the payment summary and the tracking code once it exists.

Request

POST /api/v1/customer/integration/orders
x-api-key: sk-pan-cus-live-0123456789abcdef_YOUR_SECRET_VALUE
Content-Type: application/json

{
  "external_id": "shop-order-1042",
  "organisation_id": "01000000-0000-4000-8000-000000000001",
  "origin": { "place_id": "01000000-0000-4000-8000-000000000010" },
  "destination": {
    "place_id": "01000000-0000-4000-8000-000000000011",
    "address_line": "4 Broad Street"
  },
  "recipient": {
    "name": "Tunde Bello",
    "phone": "08031111111"
  },
  "service_level": "standard",
  "package": {
    "description": "Documents",
    "weight_grams": 500
  }
}

Response

{
  "data": {
    "id": "3f98c7fe-5c7f-4b40-9f8e-ecdd71c36b4e",
    "external_id": "shop-order-1042",
    "status": "requested",
    "organisation": { "id": "...", "name": "Jos Express Logistics" },
    "service_level": "standard",
    "estimated_amount_minor": 850000,
    "estimated_currency": "NGN",
    "shipment": null
  }
}

Payment

When the operator asks for payment, request the checkout link for the order and send the shopper to the provider page. Panalk never receives card data. The order read reports the payment status, and the payment.succeeded webhook tells the store when it settles.

Store webhooks

Register an HTTPS endpoint and choose the order events. Requests carry x-panalk-signature with an HMAC-SHA256 of the timestamp and raw body, keyed by the endpoint secret shown once. Delivery is at least once; deduplicate on the delivery id.

Limits

A connected key uses the deployment defaults: requests per minute, orders per day and month, keys and webhook endpoints. An accepted application carries its own limits, set and changed by the platform administrator. Every response carries the minute window in X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset.

Sandbox

A customer sandbox is not available yet. A store order has to name an operator that can accept it, and there is no shadow operator to accept a test order. The sk-pan-cus-test- prefix is reserved and refused until that exists.

Operations

These operations take a store key. The customer portal manages keys, the application and webhooks; the store key uses them here.

GET/api/v1/customer/integration/discovery/operatorsStore key

Lists licensed operators whose coverage matches the route; requires an accepted application.

Required scopes: discovery:read

Query parameters

FieldType and limitsRequired
origin_place_idstring (uuid)Yes
destination_place_idstring (uuid)Yes

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
GET/api/v1/customer/integration/meStore key

Returns the store's account, access level, scopes and current limits.

This route takes no path, query or body input.

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.
  • 429The plan rate limit was exceeded. Retry after the window.
  • defaultAny other failure
GET/api/v1/customer/integration/operatorsStore key

Lists the operators that already have this verified address on file as a customer.

Required scopes: operators:read

This route takes no path, query or body input.

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.
  • 429The plan rate limit was exceeded. Retry after the window.
  • defaultAny other failure
GET/api/v1/customer/integration/ordersStore key

Lists this store's orders, newest first.

Required scopes: orders:read

Query parameters

FieldType and limitsRequired
limitinteger, 1 to 100, default 25No
offsetinteger, 0 to 10000, default 0No
statusrequested | accepted | declined | cancelledNo
external_idstring, 1 to 120 charactersNo

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/customer/integration/ordersStore key

Creates an order with a connected operator, or with a matched operator when marketplace access is granted.

Required scopes: orders:writeorders:read

Request body

FieldType and limitsRequired
external_idstring, 1 to 120 charactersYes
organisation_idstring (uuid)Yes
originobjectYes
origin.place_idstring (uuid)Yes
origin.address_linestring, 1 to 240 charactersNo
destinationobjectYes
destination.place_idstring (uuid)Yes
destination.address_linestring, 1 to 240 charactersNo
recipientobjectYes
recipient.namestring, 1 to 120 charactersYes
recipient.phonestring, 5 to 30 charactersYes
recipient.emailstring (email), 0 to 254 charactersNo
service_levelstandard | expressNo
packageobjectYes
package.descriptionstring, 1 to 200 charactersYes
package.package_typedocument | parcel | box | pallet | otherNo
package.weight_gramsinteger, 1 to 1000000No
package.length_cminteger, 1 to 300No
package.width_cminteger, 1 to 300No
package.height_cminteger, 1 to 300No
notesstring, 0 to 500 charactersNo

Responses

  • 201Success
  • 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
GET/api/v1/customer/integration/orders/{id}Store key

Returns one order with its delivery story and payment summary.

Required scopes: orders:read

Path parameters

FieldType and limitsRequired
idstring (uuid)Yes

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/customer/integration/orders/{id}/cancelStore key

Cancels an order that is still waiting for the operator to answer.

Required scopes: orders:writeorders:read

Path parameters

FieldType and limitsRequired
idstring (uuid)Yes

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/customer/integration/orders/{id}/paymentStore key

Returns the provider checkout link for an accepted order's delivery payment.

Required scopes: orders:writeorders:read

Path parameters

FieldType and limitsRequired
idstring (uuid)Yes

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/customer/integration/quotesStore key

Prices one parcel for an operator this store is allowed to use.

Required scopes: quotes:write

Request body

FieldType and limitsRequired
organisation_idstring (uuid)Yes
originobjectYes
origin.place_idstring (uuid)Yes
origin.address_linestring, 1 to 240 charactersNo
destinationobjectYes
destination.place_idstring (uuid)Yes
destination.address_linestring, 1 to 240 charactersNo
service_levelstandard | expressNo
package_typedocument | parcel | box | pallet | otherNo
weight_gramsinteger, 1 to 1000000No
length_cminteger, 1 to 300No
width_cminteger, 1 to 300No
height_cminteger, 1 to 300No

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
GET/api/v1/customer/integration/usageStore key

Returns the request, order, key and webhook allowance in use.

This route takes no path, query or body input.

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.
  • 429The plan rate limit was exceeded. Retry after the window.
  • defaultAny other failure
GET/api/v1/customer/integration/webhooksStore key

Lists the store's webhook endpoints.

Required scopes: webhooks:read

Query parameters

FieldType and limitsRequired
limitinteger, 1 to 100, default 25No
offsetinteger, 0 to 10000, default 0No

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/customer/integration/webhooksStore key

Registers a signed HTTPS endpoint for the order events this store chooses.

Required scopes: webhooks:write

Request body

FieldType and limitsRequired
urlstring, 1 to 2048 charactersYes
descriptionstring, 0 to 200 charactersNo
eventsarray of order.requested | order.accepted | order.declined | order.cancelled | payment.requested | payment.succeeded, 1 to 6 itemsYes

Responses

  • 201Success
  • 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
DELETE/api/v1/customer/integration/webhooks/{webhookId}Store key

Deletes a webhook endpoint and its queued deliveries.

Required scopes: webhooks:write

Path parameters

FieldType and limitsRequired
webhookIdstring (uuid)Yes

Responses

  • 204Success
  • 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
PATCH/api/v1/customer/integration/webhooks/{webhookId}Store key

Changes a webhook endpoint's address, events or status.

Required scopes: webhooks:write

Path parameters

FieldType and limitsRequired
webhookIdstring (uuid)Yes

Request body

FieldType and limitsRequired
urlstring, 1 to 2048 charactersNo
descriptionstring, 0 to 200 characters or nullNo
eventsarray of order.requested | order.accepted | order.declined | order.cancelled | payment.requested | payment.succeeded, 1 to 6 itemsNo
statusactive | pausedNo

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
POST/api/v1/customer/integration/webhooks/{webhookId}/rotateStore key

Rotates a webhook endpoint's signing secret and returns the new one once.

Required scopes: webhooks:write

Path parameters

FieldType and limitsRequired
webhookIdstring (uuid)Yes

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