API Reference
Delivery Settlements
/api/v1/console/delivery/settlements JWT API KeyBatches, newest first
- Capability (any)
enter_reconciliationorsettle_delivery_account- API key scope
cap:enter_reconciliationorcap:settle_delivery_account(the key's owner must also hold the capability)- Plan feature
deliverymust be on the branch's plan, or the call answers 403.
Query parameters
| ChannelId string (uuid) | — |
| Status string | `draft` | `reconciled` | `locked`. |
| Page integer (int32) | — |
| PerPage integer (int32) | — |
| Search string | Free-text filter. Its meaning is per-resource and documented on the endpoint. |
| Skip integer (int32) | Rows to skip, derived — never sent by the caller on this surface. |
| Sort string | A snake_case column key from the endpoint's allow-list (`created_at`, `gross_total`, `status` …). Absent or blank → the endpoint's default order. |
| Dir string | `asc` (the default when Panoptes.Application.Common.SortableRequest.Sort is present) or `desc`. Ignored without a sort. |
Responses
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/delivery/settlements" \
-H "X-Api-Key: <YOUR_API_KEY>"Query parameters
Headers
/api/v1/console/delivery/settlements/{id} JWT API KeyOne batch
A cross-branch id reads as `NOT_FOUND`, never `FORBIDDEN`.
- Capability (any)
enter_reconciliationorsettle_delivery_account- API key scope
cap:enter_reconciliationorcap:settle_delivery_account(the key's owner must also hold the capability)- Plan feature
deliverymust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Responses
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/delivery/settlements/{id}" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/delivery/settlements/{id}/post-gl JWT API KeyPost a reconciled batch to the general ledger and lock it, in one transaction
Source `settlement`, dated the period end, through the period lock. `manage_accounting`. A draft is refused (reconcile first), a locked batch is refused (already posted).
- Capability
manage_accounting- API key scope
cap:manage_accounting(the key's owner must also hold the capability)- Plan feature
deliverymust be on the branch's plan, or the call answers 403.- Idempotency
- Send an
Idempotency-Keyheader (a UUID you mint). A retry with the same key replays the first answer.
Path parameters
| idrequired string (uuid) | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/delivery/settlements/{id}/post-gl" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/delivery/settlements/{id}/reconcile JWT API KeyReconcile a draft batch.,
Succeeds whether or not the statement balances — the delta is reported, not enforced. Rebuilding the ledger goes through the single writer; DLV never writes `DailyControlLedger` itself.
- Capability
enter_reconciliation- API key scope
cap:enter_reconciliation(the key's owner must also hold the capability)- Plan feature
deliverymust be on the branch's plan, or the call answers 403.- Idempotency
- Send an
Idempotency-Keyheader (a UUID you mint). A retry with the same key replays the first answer.
Path parameters
| idrequired string (uuid) | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/delivery/settlements/{id}/reconcile" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/delivery/settlements/import JWT API KeyPaste and persist an aggregator statement as a `draft` batch
…,.
A dated write at the period end: a statement covering a closed month comes back as `PERIOD_LOCKED`. Unparseable rows are returned in the payload rather than dropped.
- Capability
enter_reconciliation- API key scope
cap:enter_reconciliation(the key's owner must also hold the capability)- Plan feature
deliverymust be on the branch's plan, or the call answers 403.- Idempotency
- Send an
Idempotency-Keyheader (a UUID you mint). A retry with the same key replays the first answer.
Request body
{
"channelId": "00000000-0000-0000-0000-000000000000",
"periodFrom": "2026-11-27",
"periodTo": "2026-11-27",
"netPaid": 0,
"currencyCode": "string",
"reference": "string",
"notes": "string",
"statement": "string"
}| channelId string (uuid) | — |
| periodFrom string (date) | — |
| periodTo string (date) | — |
| netPaid integer (int64) | Minor units of Panoptes.Application.DTOs.Requests.Delivery.ImportSettlementRequest.CurrencyCode, ≥ 0. |
| currencyCode string | Defaults to the branch's base currency when omitted (FR-DLV-104). |
| reference string | The aggregator's transfer reference. Part of the live-uniqueness key that stops the same statement being pasted twice (FR-DLV-103). |
| notes string | — |
| statement string | The raw statement, comma- or tab-separated. Three shapes are accepted: `(id, netPayable)`, `(id, gross, commission, netPayable)` and the full eight-column form (FR-DLV-040). |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/delivery/settlements/import" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"channelId": "00000000-0000-0000-0000-000000000000",
"periodFrom": "2026-11-27",
"periodTo": "2026-11-27",
"netPaid": 0,
"currencyCode": "string",
"reference": "string",
"notes": "string",
"statement": "string"
}'Request body (JSON)
Headers
/api/v1/console/delivery/settlements/transfers JWT API KeyRecord a lump-sum transfer against the channel receivable
The legacy intake shape, and self-disabling: once the channel has a reconciled multi-day statement batch this returns `CONFLICT` and writes nothing.
- Capability
settle_delivery_account- API key scope
cap:settle_delivery_account(the key's owner must also hold the capability)- Plan feature
deliverymust be on the branch's plan, or the call answers 403.- Idempotency
- Send an
Idempotency-Keyheader (a UUID you mint). A retry with the same key replays the first answer.
Request body
{
"channelId": "00000000-0000-0000-0000-000000000000",
"amount": 0,
"transferDate": "2026-11-27",
"reference": "string",
"notes": "string"
}| channelId string (uuid) | — |
| amount integer (int64) | Minor units of the branch's base currency, ≥ 1, and never more than the channel's current receivable. |
| transferDate string (date) | Defaults to the current Baghdad business day when omitted. |
| reference string | — |
| notes string | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/delivery/settlements/transfers" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"channelId": "00000000-0000-0000-0000-000000000000",
"amount": 0,
"transferDate": "2026-11-27",
"reference": "string",
"notes": "string"
}'Request body (JSON)
Headers
/api/v1/console/delivery/settlements/variance JWT API KeyPer-channel payout variance over a window of business days
…,,.
The variance is already signed: negative means the aggregator underpaid. It is never inverted downstream.
- Capability
view_profit- API key scope
cap:view_profit(the key's owner must also hold the capability)- Plan feature
deliverymust be on the branch's plan, or the call answers 403.
Query parameters
| From string (date) | — |
| To string (date) | — |
| Sort string | A snake_case column key from the endpoint's allow-list (`created_at`, `gross_total`, `status` …). Absent or blank → the endpoint's default order. |
| Dir string | `asc` (the default when Panoptes.Application.Common.SortableRequest.Sort is present) or `desc`. Ignored without a sort. |
Responses
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/delivery/settlements/variance" \
-H "X-Api-Key: <YOUR_API_KEY>"Query parameters
Headers