API Reference

Channel Ingest

Delivery-app orders pushed into a channel.

4 endpoints· Auth: JWT or API Key
put/api/v1/console/delivery/channels/{channelId}/ingest-code JWT API Key

Set or clear the code an app's orders name this channel by

Capability
change_commission
API key scope
cap:change_commission (the key's owner must also hold the capability)
Plan feature
delivery must be on the branch's plan, or the call answers 403.

Path parameters

channelIdrequired
string (uuid)
—

Request body

application/json
{
  "code": "string"
}
code
string
—

Responses

200Success
cURL
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/delivery/channels/{channelId}/ingest-code" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "code": "string"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
get/api/v1/console/delivery/ingest/channels JWT API Key

The branch's delivery-app channels and their ingest codes

Capability (any)
edit_recipeorchange_commission
API key scope
cap:edit_recipeorcap:change_commission (the key's owner must also hold the capability)
Plan feature
delivery must be on the branch's plan, or the call answers 403.

Responses

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/delivery/ingest/channels" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Headers

Set credentials in the “Authorize” menu
get/api/v1/console/delivery/ingest/log JWT API Key

The ingestion log — every order presented, taken or refused — newest first

Capability (any)
view_reportsoredit_recipe
API key scope
cap:view_reportsorcap:edit_recipe (the key's owner must also hold the capability)
Plan feature
delivery must be on the branch's plan, or the call answers 403.

Query parameters

ChannelId
string (uuid)
—
Status
string
`received` | `accepted` | `deduped` | `rejected` | `failed`.
MismatchOnly
boolean
Only rows whose totals disagreed with the app's.
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

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/delivery/ingest/log" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Query parameters

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/delivery/ingest/orders JWT API Key

Ingest one order

201 on a fresh order, 200 on a replay (`deduped: true`); 409 with `errors.unmappedCodes` / `errors.unavailableCodes` when a product cannot be sold; 404 when the channel code names no active delivery channel of the branch.

Capability
create_sale
API key scope
cap:create_sale (the key's owner must also hold the capability)
Public scope
write:sales
Plan feature
delivery must be on the branch's plan, or the call answers 403.
Idempotency
Send an Idempotency-Key header (a UUID you mint). A retry with the same key replays the first answer.

Request body

application/json
{
  "channelCode": "string",
  "externalOrderId": "string",
  "shift": "string",
  "lines": [
    {
      "productCode": "string",
      "quantity": 0,
      "unitPrice": 0,
      "name": "string"
    }
  ],
  "totals": {
    "gross": 0,
    "discount": 0,
    "total": 0
  },
  "note": "string"
}
channelCode
string
The channel's ingest code (its store reference on the app).
externalOrderId
string
The app's own order number. Dedupe key together with the channel.
shift
string
`morning` | `evening`; defaults to `evening`.
lines
IngestChannelOrderLine[]
—
totals
IngestReportedTotals
—
note
string
What the kitchen and the rider must read — the customer's comment, a line's "no onion", the app's pickup code. Carried onto the order's note (the kitchen ticket and the chit print it); never priced, never parsed.

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/delivery/ingest/orders" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "channelCode": "string",
  "externalOrderId": "string",
  "shift": "string",
  "lines": [
    {
      "productCode": "string",
      "quantity": 0,
      "unitPrice": 0,
      "name": "string"
    }
  ],
  "totals": {
    "gross": 0,
    "discount": 0,
    "total": 0
  },
  "note": "string"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

Set credentials in the “Authorize” menu