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
| Field | Type and limits | Required |
|---|---|---|
origin_place_id | string (uuid) | Yes |
destination_place_id | string (uuid) | 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
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
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.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
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.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
| Field | Type and limits | Required |
|---|---|---|
limit | integer, 1 to 100, default 25 | No |
offset | integer, 0 to 10000, default 0 | No |
status | requested | accepted | declined | cancelled | No |
external_id | string, 1 to 120 characters | 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.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
| Field | Type and limits | Required |
|---|---|---|
external_id | string, 1 to 120 characters | Yes |
organisation_id | string (uuid) | Yes |
origin | object | Yes |
origin.place_id | string (uuid) | Yes |
origin.address_line | string, 1 to 240 characters | No |
destination | object | Yes |
destination.place_id | string (uuid) | Yes |
destination.address_line | string, 1 to 240 characters | No |
recipient | object | Yes |
recipient.name | string, 1 to 120 characters | Yes |
recipient.phone | string, 5 to 30 characters | Yes |
recipient.email | string (email), 0 to 254 characters | No |
service_level | standard | express | No |
package | object | Yes |
package.description | string, 1 to 200 characters | Yes |
package.package_type | document | parcel | box | pallet | other | No |
package.weight_grams | integer, 1 to 1000000 | No |
package.length_cm | integer, 1 to 300 | No |
package.width_cm | integer, 1 to 300 | No |
package.height_cm | integer, 1 to 300 | No |
notes | string, 0 to 500 characters | No |
Responses
201Success400The 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
| Field | Type and limits | Required |
|---|---|---|
id | string (uuid) | 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/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
| Field | Type and limits | Required |
|---|---|---|
id | string (uuid) | 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/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
| Field | Type and limits | Required |
|---|---|---|
id | string (uuid) | 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/customer/integration/quotesStore key
Prices one parcel for an operator this store is allowed to use.
Required scopes: quotes:write
Request body
| Field | Type and limits | Required |
|---|---|---|
organisation_id | string (uuid) | Yes |
origin | object | Yes |
origin.place_id | string (uuid) | Yes |
origin.address_line | string, 1 to 240 characters | No |
destination | object | Yes |
destination.place_id | string (uuid) | Yes |
destination.address_line | string, 1 to 240 characters | No |
service_level | standard | express | No |
package_type | document | parcel | box | pallet | other | No |
weight_grams | integer, 1 to 1000000 | No |
length_cm | integer, 1 to 300 | No |
width_cm | integer, 1 to 300 | No |
height_cm | integer, 1 to 300 | 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
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
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.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
| Field | Type and limits | Required |
|---|---|---|
limit | integer, 1 to 100, default 25 | No |
offset | integer, 0 to 10000, default 0 | 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.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
| Field | Type and limits | Required |
|---|---|---|
url | string, 1 to 2048 characters | Yes |
description | string, 0 to 200 characters | No |
events | array of order.requested | order.accepted | order.declined | order.cancelled | payment.requested | payment.succeeded, 1 to 6 items | Yes |
Responses
201Success400The 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
| Field | Type and limits | Required |
|---|---|---|
webhookId | string (uuid) | Yes |
Responses
204Success401The 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
| Field | Type and limits | Required |
|---|---|---|
webhookId | string (uuid) | Yes |
Request body
| Field | Type and limits | Required |
|---|---|---|
url | string, 1 to 2048 characters | No |
description | string, 0 to 200 characters or null | No |
events | array of order.requested | order.accepted | order.declined | order.cancelled | payment.requested | payment.succeeded, 1 to 6 items | No |
status | active | paused | 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
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
| Field | Type and limits | Required |
|---|---|---|
webhookId | string (uuid) | 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