API Reference

Guests

The guest book: profiles, visits, tags, merge and erase.

12 endpoints· Auth: JWT or API Key
get/api/v1/console/crm/guests JWT API Key

The 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_loyalty must 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

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/crm/guests" \
  -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/crm/guests JWT API Key

Create 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_loyalty must be on the branch's plan, or the call answers 403.

Request body

application/json
{
  "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

200Success
cURL
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
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
get/api/v1/console/crm/guests/{id} JWT API Key

One 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_loyalty must be on the branch's plan, or the call answers 403.

Path parameters

idrequired
string (uuid)
—

Responses

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/crm/guests/{id}" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Headers

Set credentials in the “Authorize” menu
put/api/v1/console/crm/guests/{id} JWT API Key

Replace 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_loyalty must be on the branch's plan, or the call answers 403.

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "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

200Success
cURL
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
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
get/api/v1/console/crm/guests/{id}/consents JWT API Key

The 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_loyalty must be on the branch's plan, or the call answers 403.

Path parameters

idrequired
string (uuid)
—

Responses

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/crm/guests/{id}/consents" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/crm/guests/{id}/consents JWT API Key

Record 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_loyalty must be on the branch's plan, or the call answers 403.

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "channel": "string",
  "granted": false,
  "source": "string"
}
channel
string
`sms` | `whatsapp` | `email`.
granted
boolean
—
source
string
`console` (default) | `pos` | `guest_request`.

Responses

200Success
cURL
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"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/crm/guests/{id}/erase JWT

Erase 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_loyalty 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.

Path parameters

idrequired
string (uuid)
—

Request body

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

Responses

200Success
cURL
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"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

This action refuses API keys — it needs a signed-in user. Switch to a JWT under Authorize, or do it in the dashboard.
Set credentials in the “Authorize” menu
get/api/v1/console/crm/guests/{id}/feedback JWT API Key

Get feedback

Capability
view_guests
API key scope
cap:view_guests (the key's owner must also hold the capability)
Plan feature
crm_loyalty must 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

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/crm/guests/{id}/feedback" \
  -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/crm/guests/{id}/feedback JWT API Key

Record 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_loyalty must be on the branch's plan, or the call answers 403.

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "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

200Success
cURL
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"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/crm/guests/{id}/merge JWT API Key

Create 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_loyalty 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.

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "duplicateId": "00000000-0000-0000-0000-000000000000"
}
duplicateId
string (uuid)
—

Responses

200Success
cURL
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"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
get/api/v1/console/crm/guests/{id}/orders JWT API Key

The 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_loyalty must 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

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/crm/guests/{id}/orders" \
  -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/crm/lookup JWT API Key

Create 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_loyalty must be on the branch's plan, or the call answers 403.

Request body

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

Responses

200Success
cURL
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"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

Set credentials in the “Authorize” menu