API Reference
Channel Product Map
3 endpoints· Auth: JWT or API Key
get
/api/v1/console/delivery/channels/{channelId}/product-map JWT API KeyThe channel's mappings
A channel in another branch reads as `NOT_FOUND`, and so does one that does not exist.
- Capability
edit_recipe- API key scope
cap:edit_recipe(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
| channelIdrequired string (uuid) | — |
Query parameters
| ProductId string (uuid) | Restrict to the mappings pointing at one product. Optional. |
| IncludeDeleted boolean | Include tombstoned mappings. Gated on `edit_recipe` in the service. <br>Worth having on this surface specifically: the unique index is partial, so retiring a mapping frees its external reference for re-use (FR-CAT-075) — and "why does this ref now point somewhere else" is a question only the tombstones can answer. |
| 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/channels/{channelId}/product-map" \
-H "X-Api-Key: <YOUR_API_KEY>" Try itagainst staging · https://staging-api.panoptesos.com
Path parameters
Query parameters
Headers
Set credentials in the “Authorize” menu
post
/api/v1/console/delivery/channels/{channelId}/product-map JWT API KeyMap one external reference onto one product.,
Refused with `CONFLICT` when the channel is not an active `delivery_app`: nothing else reads this table, so a mapping on any other channel class is a row that can never fire.
- Capability
edit_recipe- API key scope
cap:edit_recipe(the key's owner must also hold the capability)- Public scope
write:catalog- Plan feature
deliverymust be on the branch's plan, or the call answers 403.
Path parameters
| channelIdrequired string (uuid) | — |
Request body
application/json
{
"externalProductRef": "string",
"productId": "00000000-0000-0000-0000-000000000000",
"itemType": "string"
}| externalProductRef string | The aggregator's item id or name key, verbatim as it arrives on the inbound payload. <br>Trimmed and compared case-sensitively. Case folding it would be a guess about a foreign system's key space, and a guess that collapses two distinct aggregator SKUs into one mapping sends one of them to the wrong dish. |
| productId string (uuid) | The internal product the reference resolves to. Must belong to the caller's branch. |
| itemType string | What the platform's catalog calls the code: `ITEM` (default when blank) or `TOPPING` — a coded topping the platform books as its own order line. The Talabat availability push sends the code under this type. |
Responses
200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/delivery/channels/{channelId}/product-map" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"externalProductRef": "string",
"productId": "00000000-0000-0000-0000-000000000000",
"itemType": "string"
}' Try itagainst staging · https://staging-api.panoptesos.com
Path parameters
Request body (JSON)
Headers
Set credentials in the “Authorize” menu
delete
/api/v1/console/delivery/channels/{channelId}/product-map/{mapId} JWT API KeyRetire a mapping, freeing its external reference for re-use
A tombstone with a mandatory reason, never a hard delete — the unique index is partial precisely so the retired reference can be mapped somewhere else, and the record of where it used to point is the only way to explain the change afterwards.
- Capability
edit_recipe- API key scope
cap:edit_recipe(the key's owner must also hold the capability)- Public scope
write:catalog- Plan feature
deliverymust be on the branch's plan, or the call answers 403.
Path parameters
| channelIdrequired string (uuid) | — |
| mapIdrequired string (uuid) | — |
Request body
application/json
{
"reason": "string"
}| reason string | — |
Responses
200Success
cURL
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/delivery/channels/{channelId}/product-map/{mapId}" \
-H "X-Api-Key: <YOUR_API_KEY>" Try itagainst staging · https://staging-api.panoptesos.com
Path parameters
Headers
Set credentials in the “Authorize” menu