API Reference
Guest · Self Order
QR self-ordering. The QR token in the path is the credential.
/api/v1/guest/self-order/{qrToken}The table's menu.,,,
Active products minus 86'd ones, by category then name, each with its modifier groups and options in sort order, plus the tender rails a guest may commit to.
- Auth
- No credential needed.
Path parameters
| qrTokenrequired string | — |
Responses
curl -X GET "https://staging-api.panoptesos.com/api/v1/guest/self-order/{qrToken}" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/guest/self-order/{qrToken}/ordersPlace the pay-now order
…,,,.
`201` on a fresh order. A retry of the same checkout — same `Idempotency-Key`, same body — answers `200` with `deduped: true` and the original order's code, because a guest told "error" on a double tap would tap again. The same key with a different body is `422`; a missing or non-UUID key is `400`.
- Auth
- No credential needed.
Path parameters
| qrTokenrequired string | — |
Request body
{
"items": [
{
"productId": "00000000-0000-0000-0000-000000000000",
"quantity": 0,
"modifierOptionIds": [
"00000000-0000-0000-0000-000000000000"
]
}
],
"payments": [
{
"methodId": "00000000-0000-0000-0000-000000000000",
"amountIqd": 0
}
],
"guestPhone": "string"
}| items SelfOrderItemRequest[] | — |
| payments SelfOrderPaymentRequest[] | The tender the guest commits to. At least one, every amount positive (FR-PLT-082), and the amounts must add up to what the sale core folds the cart to (FR-POS-021) — which is why the guest client prices through the quote rather than multiplying prices itself. |
| guestPhone string | The guest's own phone, optional (CRM-MODULE-PLAN §3.2 — the guest types their own number, so staff never dictate one). Best effort: a number that is not an Iraqi mobile, or a restaurant that has not bought guest CRM, leaves the order unattributed rather than refused. The sale earns the guest's points; a QR guest can never <i>redeem</i> them — typing someone's number must not spend their balance. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/guest/self-order/{qrToken}/orders" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"items": [
{
"productId": "00000000-0000-0000-0000-000000000000",
"quantity": 0,
"modifierOptionIds": [
"00000000-0000-0000-0000-000000000000"
]
}
],
"payments": [
{
"methodId": "00000000-0000-0000-0000-000000000000",
"amountIqd": 0
}
],
"guestPhone": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/guest/self-order/{qrToken}/quotePrice the cart through the till's own fold.,
A POST because it carries a cart, not because it changes anything: nothing is written. The figure it returns is the one the order must be paid with.
- Auth
- No credential needed.
Path parameters
| qrTokenrequired string | — |
Request body
{
"items": [
{
"productId": "00000000-0000-0000-0000-000000000000",
"quantity": 0,
"modifierOptionIds": [
"00000000-0000-0000-0000-000000000000"
]
}
]
}| items SelfOrderItemRequest[] | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/guest/self-order/{qrToken}/quote" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"items": [
{
"productId": "00000000-0000-0000-0000-000000000000",
"quantity": 0,
"modifierOptionIds": [
"00000000-0000-0000-0000-000000000000"
]
}
]
}'Path parameters
Request body (JSON)
Headers