API Reference
Guests
The guest book: profiles, visits, tags, merge and erase.
/api/v1/console/crm/guests JWT API KeyThe guest list — server paging, sorting and search (name, or phone digits)
- Capability
view_guests- API key scope
cap:view_guests(the key's owner must also hold the capability)- Plan feature
crm_loyaltymust be on the branch's plan, or the call answers 403.
Query parameters
| Status string | `active` (default) | `merged` | `erased` | `all`. |
| Tag string | Only guests carrying this tag (case-insensitive). |
| 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/crm/guests" \
-H "X-Api-Key: <YOUR_API_KEY>"Query parameters
Headers
/api/v1/console/crm/guests JWT API KeyCreate a guest by phone
A phone another live guest holds is a `409`.
- Capability
manage_guests- API key scope
cap:manage_guests(the key's owner must also hold the capability)- Plan feature
crm_loyaltymust be on the branch's plan, or the call answers 403.
Request body
{
"phone": "string",
"displayName": "string",
"notes": "string",
"tags": [
"string"
],
"birthdayMonth": 0,
"birthdayDay": 0
}| phone string | — |
| displayName string | — |
| notes string | — |
| tags string[] | — |
| birthdayMonth integer (int32) | 1–12. Both or neither of the birthday fields. |
| birthdayDay integer (int32) | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/crm/guests" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"phone": "string",
"displayName": "string",
"notes": "string",
"tags": [
"string"
],
"birthdayMonth": 0,
"birthdayDay": 0
}'Request body (JSON)
Headers
/api/v1/console/crm/guests/{id} JWT API KeyOne guest: profile, visit figures, consent position, loyalty position
- Capability
view_guests- API key scope
cap:view_guests(the key's owner must also hold the capability)- Plan feature
crm_loyaltymust 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/crm/guests/{id}" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/crm/guests/{id} JWT API KeyReplace the editable profile
A merged or erased guest is a `409`.
- Capability
manage_guests- API key scope
cap:manage_guests(the key's owner must also hold the capability)- Plan feature
crm_loyaltymust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"phone": "string",
"displayName": "string",
"notes": "string",
"tags": [
"string"
],
"birthdayMonth": 0,
"birthdayDay": 0
}| phone string | — |
| displayName string | — |
| notes string | — |
| tags string[] | — |
| birthdayMonth integer (int32) | — |
| birthdayDay integer (int32) | — |
Responses
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/crm/guests/{id}" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"phone": "string",
"displayName": "string",
"notes": "string",
"tags": [
"string"
],
"birthdayMonth": 0,
"birthdayDay": 0
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/crm/guests/{id}/consents JWT API KeyThe consent position per channel and the immutable history behind it
- Capability
view_guests- API key scope
cap:view_guests(the key's owner must also hold the capability)- Plan feature
crm_loyaltymust 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/crm/guests/{id}/consents" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/crm/guests/{id}/consents JWT API KeyRecord a grant or a withdrawal — appended, never edited
- Capability
manage_guests- API key scope
cap:manage_guests(the key's owner must also hold the capability)- Plan feature
crm_loyaltymust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"channel": "string",
"granted": false,
"source": "string"
}| channel string | `sms` | `whatsapp` | `email`. |
| granted boolean | — |
| source string | `console` (default) | `pos` | `guest_request`. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/crm/guests/{id}/consents" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"channel": "string",
"granted": false,
"source": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/crm/guests/{id}/erase JWTErase the guest's personal data on request
Irreversible, so owner-only and Panoptes.Api.Security.SessionOnlyAttribute: a machine credential never destroys a person's record.
- Capability
erase_guest- Signed-in user only
- API keys and OAuth tokens are refused (403). Do this in the dashboard.
- Plan feature
crm_loyaltymust 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) | — |
Request body
{
"reason": "string"
}| reason string | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/crm/guests/{id}/erase" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"reason": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/crm/guests/{id}/feedback JWT API KeyGet feedback
- Capability
view_guests- API key scope
cap:view_guests(the key's owner must also hold the capability)- Plan feature
crm_loyaltymust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Query parameters
| 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/crm/guests/{id}/feedback" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Query parameters
Headers
/api/v1/console/crm/guests/{id}/feedback JWT API KeyRecord a 1–5 rating and a comment, optionally about one of the guest's visits
- Capability
manage_guests- API key scope
cap:manage_guests(the key's owner must also hold the capability)- Plan feature
crm_loyaltymust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"rating": 0,
"comment": "string",
"orderId": "00000000-0000-0000-0000-000000000000"
}| rating integer (int32) | — |
| comment string | — |
| orderId string (uuid) | One of this guest's own orders (or a merged duplicate's). Anything else is refused. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/crm/guests/{id}/feedback" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"rating": 0,
"comment": "string",
"orderId": "00000000-0000-0000-0000-000000000000"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/crm/guests/{id}/merge JWT API KeyCreate merge
Fold a duplicate into this guest: points moved by a ledger pair, consent reconciled and never widened, feedback re-pointed; the duplicate is kept and keeps finding this guest by its phone.
- Capability
manage_guests- API key scope
cap:manage_guests(the key's owner must also hold the capability)- Plan feature
crm_loyaltymust 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) | — |
Request body
{
"duplicateId": "00000000-0000-0000-0000-000000000000"
}| duplicateId string (uuid) | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/crm/guests/{id}/merge" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"duplicateId": "00000000-0000-0000-0000-000000000000"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/crm/guests/{id}/orders JWT API KeyThe guest's visits, the merged duplicates' included
- Capability
view_guests- API key scope
cap:view_guests(the key's owner must also hold the capability)- Plan feature
crm_loyaltymust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Query parameters
| 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/crm/guests/{id}/orders" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Query parameters
Headers
/api/v1/console/crm/lookup JWT API KeyCreate lookup
The till's lookup: is this phone one of ours, a masked phone and a name to confirm with, and the points. A `POST` so the phone stays out of the query string and the access log.
- Capability (any)
create_saleorview_guests- API key scope
cap:create_saleorcap:view_guests(the key's owner must also hold the capability)- Plan feature
crm_loyaltymust be on the branch's plan, or the call answers 403.
Request body
{
"phone": "string"
}| phone string | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/crm/lookup" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"phone": "string"
}'Request body (JSON)
Headers