API Reference
Loyalty
The loyalty programme, points ledger and adjustments.
6 endpoints· Auth: JWT or API Key
post
/api/v1/console/loyalty/expiry/run JWT API KeyRun the inactivity expiry now — the same body the nightly job runs
- Capability
manage_loyalty- API key scope
cap:manage_loyalty(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.
Responses
200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/loyalty/expiry/run" \
-H "X-Api-Key: <YOUR_API_KEY>" Try itagainst staging · https://staging-api.panoptesos.com
Headers
Set credentials in the “Authorize” menu
post
/api/v1/console/loyalty/guests/{guestId}/adjustments JWT API KeyAn owner's correction with a reason
Never takes the balance below zero.
- Capability
manage_loyalty- API key scope
cap:manage_loyalty(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
| guestIdrequired string (uuid) | — |
Request body
application/json
{
"points": 0,
"reason": "string"
}| points integer (int64) | Signed, non-zero, at most 1,000,000 either way. |
| reason string | `goodwill` | `service_recovery` | `correction` | `migration` | `other` — a code, never free text: the ledger row is immutable. |
Responses
200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/loyalty/guests/{guestId}/adjustments" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"points": 0,
"reason": "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/loyalty/guests/{guestId}/ledger JWT API KeyA guest's journal, newest first, each row with the balance it left
- 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
| guestIdrequired 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/loyalty/guests/{guestId}/ledger" \
-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
get
/api/v1/console/loyalty/program JWT API KeyThe branch's program, or `program: null` when none is set up yet
- Capability (any)
manage_loyaltyorview_guests- API key scope
cap:manage_loyaltyorcap: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.
Responses
200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/loyalty/program" \
-H "X-Api-Key: <YOUR_API_KEY>" Try itagainst staging · https://staging-api.panoptesos.com
Headers
Set credentials in the “Authorize” menu
put
/api/v1/console/loyalty/program JWT API KeyCreate or re-save the program (a new policy version)
Once points exist the point value is fixed and the expiry window can only lengthen — a `409` says so.
- Capability
manage_loyalty- API key scope
cap:manage_loyalty(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
application/json
{
"name": "string",
"isActive": false,
"earnSpendStepIqd": 0,
"earnPointsPerStep": 0,
"pointValueIqd": 0,
"minRedeemPoints": 0,
"expiryMonths": 0
}| name string | — |
| isActive boolean | — |
| earnSpendStepIqd integer (int64) | Whole IQD of settled spend that earns Panoptes.Application.DTOs.Requests.Loyalty.SaveLoyaltyProgramRequest.EarnPointsPerStep points. Positive. |
| earnPointsPerStep integer (int64) | — |
| pointValueIqd integer (int64) | Whole IQD one point takes off a check. Positive. |
| minRedeemPoints integer (int64) | — |
| expiryMonths integer (int32) | 1–120 months of inactivity before a balance expires; null for never. |
Responses
200Success
cURL
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/loyalty/program" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"name": "string",
"isActive": false,
"earnSpendStepIqd": 0,
"earnPointsPerStep": 0,
"pointValueIqd": 0,
"minRedeemPoints": 0,
"expiryMonths": 0
}' Try itagainst staging · https://staging-api.panoptesos.com
Request body (JSON)
Headers
Set credentials in the “Authorize” menu
get
/api/v1/console/loyalty/summary JWT API KeyIssued, redeemed, expired … over business days, and the liability now — server sums
- Capability
manage_loyalty- API key scope
cap:manage_loyalty(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
| From string (date) | — |
| To string (date) | — |
Responses
200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/loyalty/summary" \
-H "X-Api-Key: <YOUR_API_KEY>" Try itagainst staging · https://staging-api.panoptesos.com
Query parameters
Headers
Set credentials in the “Authorize” menu