Getting started
- In Cloud POS 4U, open Automation in the sidebar (under Intelligence) and choose the APIs tab. You need the Manage settings permission and a plan with API Access and Marketing Automation (both are in Ultimate).
- Create an API key: give it a name, choose its branch and only the scopes it needs. Copy the key at once: it is shown only once.
- Send the key with every request to your restaurant's address, for example GET /api/v1/menu.
Authentication
Send the key in one of these headers. Staff sign-ins and automation (n8n) tokens are not accepted on /api/v1, and an API key does not work on any other part of the system.
X-API-Key: pos_…
Authorization: Bearer pos_…
- A key belongs to one branch: every answer is for that branch, and asking for another branch is refused.
- Keys can have an expiry date. You can revoke a key, or regenerate it (the old key stops working at once).
- Keep keys on your server. Never put a key in a web page or a mobile app.
Base URL and restaurant
The restaurant is the one at the address you call: your restaurant's Cloud POS 4U address (<restaurant>.cloudpos4u.com) or your on-premise server. Other domains, such as your restaurant website's own domain, do not serve the API. The X-Tenant-ID header with the restaurant's address name also works.
https://{restaurant}.cloudpos4u.com/api/v1https://{server}/api/v1
Scopes
Each endpoint needs one scope. A key without it gets 403 API_SCOPE_NOT_ALLOWED.
menu:read | Read the branch menu: dishes, prices in the branch currency, categories and availability. |
orders:read | Read the branch orders and one order by id. |
orders:write | Price a cart (quote) and place orders for the branch. Gives no discount or price-override power. |
tables:read | Read the branch tables and their state. |
reservations:read | Read the branch reservations. |
reservations:write | Create reservations and change their status. |
reports:read | Read the sales summary and the live orders of the branch, and run or export the ready and saved reports across the key's allowed branches (sales figures only; no costs, staff or customer details). |
customers:read | Find a customer by phone number or email address. |
Rate limits
Limits per minute. Every answer to a request that passed the key, plan and scope checks carries RateLimit and RateLimit-Policy headers; refusals before that (401, and 403 for the plan or the scope) do not. Over a limit, the answer is 429 RATE_LIMITED: wait the number of seconds in Retry-After.
| Requests per key | 300 |
| Writes per key (POST, PATCH) | 60 |
| Requests per restaurant, all keys | 1,200 |
Errors
An error answer is JSON with status, message, code and sometimes details and requestId. Act on code; message is for people. Quote requestId when you contact support.
{
"status": 403,
"message": "This API key does not have the orders:write scope.",
"code": "API_SCOPE_NOT_ALLOWED",
"details": {
"requiredScope": "orders:write"
},
"requestId": "c0ffee12-…"
}
| Code | HTTP status | Meaning |
|---|
API_KEY_MISSING | 401 | No API key was sent. |
API_KEY_INVALID | 401 | The key is wrong or has been revoked. |
API_KEY_EXPIRED | 401 | The key has passed its expiry date. |
API_SCOPE_NOT_ALLOWED | 403 | The key does not have the scope this endpoint needs, or it is a retired automation token. |
PLAN_FEATURE_REQUIRED | 403 | The plan does not include a feature this endpoint needs: API Access, or Reservations for /reservations. |
PLAN_LIMIT_REACHED | 403 | The plan's monthly order limit is reached (POST /orders). |
FORBIDDEN | 403 | The module this endpoint uses (orders) is switched off for the restaurant. |
BRANCH_FORBIDDEN | 403 | The request named a branch that is not the key's branch. |
VALIDATION_ERROR | 400 | A value is missing or not valid. Some answers use a more specific code. |
NOT_FOUND | 404 | Nothing with that id in the key's branch. |
CONFLICT | 409 | The change conflicts with the current state, for example a table already booked. |
RATE_LIMITED | 429 | Too many requests. Wait for Retry-After. |
SERVER_BUSY | 503 | The key could not be checked just now. Try again in a moment. |
Placing orders
- The server prices every line from the branch menu, with the branch's deals, tax and service charge. Prices you send are not used, and a key cannot give discounts or change prices.
- Use POST /orders/quote to show the total first. Send an Idempotency-Key header with POST /orders so a retry never creates a second order.
- The branch needs an open shift. Each key has its own order setting: by default orders wait for staff to accept them in the app (Pending Approval). A key set to send orders straight to the kitchen creates them In Progress, unless you send orderStatus Pending Approval. orderStatus can only make it stricter.
Versioning and deprecation
This is version 1, at /api/v1. New fields and endpoints can be added at any time, so ignore fields you do not know. A breaking change only comes in a new version, announced at least 6 months ahead; old operations are marked deprecated in openapi.json with a dated changelog entry.
Changelog
| Version | Date | Description |
|---|
| 1.2.0 | 2026-12-01 | Orders: split bill link fields. An order split into separate checks and every check cut from it carry splitGroupId (the original order's id); a cut check carries splitFromOrderId. checkNumber is documented. A check shared between payers carries splitPlan (frozen payer shares; each share's payment lines name it). Additive: existing fields are unchanged. |
| 1.1.0 | 2026-11-30 | Reports: list the ready reports, run a ready or saved report and start / follow a background export (CSV, Excel, PDF) across the key's allowed branches (its own plus the branches chosen in Automation > APIs). Totals per currency, never added across currencies. |
| 1.0.0 | 2026-11-21 | First version: menu, orders (list, get, quote, create), tables, reservations, sales summary, live orders and customer lookup. API keys with scopes, a per-key order setting (orders wait for staff approval unless the key is set to send them to the kitchen), per-key rate limits. |
Support
Questions about the API, or need an endpoint that is not here? Contact us and include the requestId of the answer.
Contact supportEndpoints
Customers
Find a customer
Scope: customers:read
The restaurant's customer with exactly this phone number or email address, or null. Send phone or email.
Parameters
| Name | In | Type | Required | Description |
|---|
phone | query | string | No | The phone number as stored, international format, for example +971501234567. |
email | query | string | No | The email address. |
Example
{
"success": true,
"data": {
"id": "6f7a8b9c-0d1e-4f2a-8b3c-4d5e6f7a8b9c",
"name": "Sara Ahmed",
"phone": "+971501234567",
"email": null,
"customerTypes": [
"Regular"
],
"loyaltyPoints": 120,
"loyaltyTier": null,
"preferredLanguage": "en",
"marketingConsent": false,
"createdAt": "2026-05-02T10:00:00.000Z"
}
}
Errors
400 The request is not valid (VALIDATION_ERROR, or a more specific code).401 No API key, or the key is not valid or has expired (API_KEY_MISSING, API_KEY_INVALID, API_KEY_EXPIRED).403 The key lacks the scope (API_SCOPE_NOT_ALLOWED), the plan does not include a feature this endpoint needs (PLAN_FEATURE_REQUIRED), the module is switched off for the restaurant (FORBIDDEN) or the branch is not the key's (BRANCH_FORBIDDEN).429 Too many requests for the key or the restaurant (RATE_LIMITED). Wait Retry-After seconds.503 The key could not be checked just now (SERVER_BUSY). Try again in a moment.
curl
curl -X GET "https://your-restaurant.cloudpos4u.com/api/v1/customers?phone=%2B971501234567" \
-H "X-API-Key: $CLOUDPOS_API_KEY"
JavaScript (fetch)
const response = await fetch("https://your-restaurant.cloudpos4u.com/api/v1/customers?phone=%2B971501234567", {
method: "GET",
headers: {
"X-API-Key": process.env.CLOUDPOS_API_KEY
}
});
const result = await response.json();
Menu
Orders
List orders
Scope: orders:read
The orders of the key's branch, newest first, one page at a time.
Parameters
| Name | In | Type | Required | Description |
|---|
status | query | string | No | One order status or a comma-separated list, for example In Progress,Ready. |
from | query | string | No | First business date (YYYY-MM-DD), in the branch's own time zone and day cut-off. |
to | query | string | No | Last business date (YYYY-MM-DD), inclusive. from and to go together; one alone means that single day. |
paymentStatus | query | string | No | One or more of Pending, Collected, Paid, Partially Paid, Partially Refunded, Refunded, Failed, Cancelled (comma-separated), or unpaid. |
orderType | query | string | No | One or more of Dine-in, Delivery, Takeaway, Staff Meal (comma-separated). |
limit | query | integer | No | Page size, 1 to 200. 50 when not sent. |
offset | query | integer | No | Orders to skip, for the next page. |
Response 200 · Order
Example
{
"success": true,
"data": [
{
"id": "3f6c1d2e-8a4b-4c5d-9e6f-7a8b9c0d1e2f",
"orderNumber": "ORD-1042",
"orderStatus": "In Progress",
"paymentStatus": "Pending",
"orderType": "Takeaway",
"orderDate": "2026-11-21T12:30:00.000Z",
"branchId": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"tableId": null,
"customerDetails": {
"name": "Sara Ahmed",
"phone": "+971501234567",
"email": null,
"guests": null
},
"items": [
{
"dishId": "9b1d7c3e-2f4a-4b6c-8d0e-1f2a3b4c5d6e",
"name": "Chicken shawarma",
"quantity": 2,
"price": "30.000000"
}
],
"bills": {
"subtotal": 28.57,
"discountAmount": 0,
"total": 28.57,
"tax": 1.43,
"taxRate": 5,
"serviceChargeAmount": 0,
"totalWithTax": 30,
"customerDeliveryFee": 0,
"tipAmount": 0,
"pricesIncludeTax": true
},
"currencySymbol": "AED",
"externalOrderId": "WEB-88213",
"notes": null
}
],
"pagination": {
"total": 1,
"limit": 50,
"offset": 0,
"hasMore": false
}
}
Errors
400 The request is not valid (VALIDATION_ERROR, or a more specific code).401 No API key, or the key is not valid or has expired (API_KEY_MISSING, API_KEY_INVALID, API_KEY_EXPIRED).403 The key lacks the scope (API_SCOPE_NOT_ALLOWED), the plan does not include a feature this endpoint needs (PLAN_FEATURE_REQUIRED), the module is switched off for the restaurant (FORBIDDEN) or the branch is not the key's (BRANCH_FORBIDDEN).429 Too many requests for the key or the restaurant (RATE_LIMITED). Wait Retry-After seconds.503 The key could not be checked just now (SERVER_BUSY). Try again in a moment.
curl
curl -X GET "https://your-restaurant.cloudpos4u.com/api/v1/orders?status=In%20Progress%2CReady&from=2026-11-01" \
-H "X-API-Key: $CLOUDPOS_API_KEY"
JavaScript (fetch)
const response = await fetch("https://your-restaurant.cloudpos4u.com/api/v1/orders?status=In%20Progress%2CReady&from=2026-11-01", {
method: "GET",
headers: {
"X-API-Key": process.env.CLOUDPOS_API_KEY
}
});
const result = await response.json();
Place an order
Scope: orders:write
Places an order for the key's branch. The server prices every line from the branch menu (prices you send are not used) and a key cannot give discounts or change prices. The branch needs an open shift. How the order starts is set per key in Automation > APIs: by default it waits for staff to accept it in the app (Pending Approval); a key set to send orders straight to the kitchen creates them In Progress, unless you send orderStatus Pending Approval. orderStatus can only make it stricter: In Progress from a key that waits for approval still gives Pending Approval (no error; the answer shows the real status). Send an Idempotency-Key header so a retry never creates a second order. The order counts toward the plan's monthly order limit.
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | No | 8 to 64 letters, digits, - or _. The same key again returns the first order (200, replayed) instead of a second one. |
{
"orderType": "Takeaway",
"customerDetails": {
"name": "Sara Ahmed",
"phone": "+971501234567"
},
"externalOrderId": "WEB-88213",
"items": [
{
"dishId": "9b1d7c3e-2f4a-4b6c-8d0e-1f2a3b4c5d6e",
"quantity": 2,
"notes": "No pickles"
}
]
}
Response 201 · Order
Example
{
"success": true,
"message": "Order created!",
"data": {
"id": "3f6c1d2e-8a4b-4c5d-9e6f-7a8b9c0d1e2f",
"orderNumber": "ORD-1042",
"orderStatus": "Pending Approval",
"paymentStatus": "Pending",
"orderType": "Takeaway",
"orderDate": "2026-11-21T12:30:00.000Z",
"branchId": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"tableId": null,
"customerDetails": {
"name": "Sara Ahmed",
"phone": "+971501234567",
"email": null,
"guests": null
},
"items": [
{
"dishId": "9b1d7c3e-2f4a-4b6c-8d0e-1f2a3b4c5d6e",
"name": "Chicken shawarma",
"quantity": 2,
"price": "30.000000"
}
],
"bills": {
"subtotal": 28.57,
"discountAmount": 0,
"total": 28.57,
"tax": 1.43,
"taxRate": 5,
"serviceChargeAmount": 0,
"totalWithTax": 30,
"customerDeliveryFee": 0,
"tipAmount": 0,
"pricesIncludeTax": true
},
"currencySymbol": "AED",
"externalOrderId": "WEB-88213",
"notes": null
}
}
Errors
400 The request is not valid (VALIDATION_ERROR, or a more specific code).401 No API key, or the key is not valid or has expired (API_KEY_MISSING, API_KEY_INVALID, API_KEY_EXPIRED).403 The key lacks the scope (API_SCOPE_NOT_ALLOWED), the plan does not include a feature this endpoint needs (PLAN_FEATURE_REQUIRED), the module is switched off for the restaurant (FORBIDDEN) or the branch is not the key's (BRANCH_FORBIDDEN). The plan's monthly order limit is reached (PLAN_LIMIT_REACHED, or PLAN_LIMIT_REACTIVATION).409 The change conflicts with the current state (CONFLICT, or a more specific code).429 Too many requests for the key or the restaurant (RATE_LIMITED). Wait Retry-After seconds.503 The key could not be checked just now (SERVER_BUSY). Try again in a moment.
curl
curl -X POST "https://your-restaurant.cloudpos4u.com/api/v1/orders" \
-H "X-API-Key: $CLOUDPOS_API_KEY" \
-H "Idempotency-Key: web-88213-1" \
-H "Content-Type: application/json" \
-d '{"orderType":"Takeaway","customerDetails":{"name":"Sara Ahmed","phone":"+971501234567"},"externalOrderId":"WEB-88213","items":[{"dishId":"9b1d7c3e-2f4a-4b6c-8d0e-1f2a3b4c5d6e","quantity":2,"notes":"No pickles"}]}'
JavaScript (fetch)
const response = await fetch("https://your-restaurant.cloudpos4u.com/api/v1/orders", {
method: "POST",
headers: {
"X-API-Key": process.env.CLOUDPOS_API_KEY,
"Idempotency-Key": "web-88213-1",
"Content-Type": "application/json"
},
body: JSON.stringify({
"orderType": "Takeaway",
"customerDetails": {
"name": "Sara Ahmed",
"phone": "+971501234567"
},
"externalOrderId": "WEB-88213",
"items": [
{
"dishId": "9b1d7c3e-2f4a-4b6c-8d0e-1f2a3b4c5d6e",
"quantity": 2,
"notes": "No pickles"
}
]
})
});
const result = await response.json();
Price a cart
Scope: orders:write
Prices the lines exactly as POST /orders would (menu prices, deals, tax and service charge of the branch) and saves nothing. Use it to show the customer the total before placing the order.
{
"orderType": "Takeaway",
"items": [
{
"dishId": "9b1d7c3e-2f4a-4b6c-8d0e-1f2a3b4c5d6e",
"quantity": 2
}
]
}
Example
{
"success": true,
"data": {
"currency": "AED",
"decimals": 2,
"orderType": "Takeaway",
"subtotal": 28.57,
"discountAmount": 0,
"total": 28.57,
"taxRate": 5,
"tax": 1.43,
"serviceChargeRate": 0,
"serviceChargeAmount": 0,
"customerDeliveryFee": 0,
"totalWithTax": 30,
"tipAmount": 0,
"amountDue": 30,
"pricesIncludeTax": true,
"appliedDeals": [],
"lines": [
{
"index": 0,
"dishId": "9b1d7c3e-2f4a-4b6c-8d0e-1f2a3b4c5d6e",
"quantity": 2
}
]
}
}
Errors
400 The request is not valid (VALIDATION_ERROR, or a more specific code).401 No API key, or the key is not valid or has expired (API_KEY_MISSING, API_KEY_INVALID, API_KEY_EXPIRED).403 The key lacks the scope (API_SCOPE_NOT_ALLOWED), the plan does not include a feature this endpoint needs (PLAN_FEATURE_REQUIRED), the module is switched off for the restaurant (FORBIDDEN) or the branch is not the key's (BRANCH_FORBIDDEN).409 The change conflicts with the current state (CONFLICT, or a more specific code).429 Too many requests for the key or the restaurant (RATE_LIMITED). Wait Retry-After seconds.503 The key could not be checked just now (SERVER_BUSY). Try again in a moment.
curl
curl -X POST "https://your-restaurant.cloudpos4u.com/api/v1/orders/quote" \
-H "X-API-Key: $CLOUDPOS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"orderType":"Takeaway","items":[{"dishId":"9b1d7c3e-2f4a-4b6c-8d0e-1f2a3b4c5d6e","quantity":2}]}'
JavaScript (fetch)
const response = await fetch("https://your-restaurant.cloudpos4u.com/api/v1/orders/quote", {
method: "POST",
headers: {
"X-API-Key": process.env.CLOUDPOS_API_KEY,
"Content-Type": "application/json"
},
body: JSON.stringify({
"orderType": "Takeaway",
"items": [
{
"dishId": "9b1d7c3e-2f4a-4b6c-8d0e-1f2a3b4c5d6e",
"quantity": 2
}
]
})
});
const result = await response.json();
Get an order
Scope: orders:read
One order of the key's branch. An order of another branch answers 404.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | The order id. |
Response 200 · Order
Example
{
"success": true,
"data": {
"id": "3f6c1d2e-8a4b-4c5d-9e6f-7a8b9c0d1e2f",
"orderNumber": "ORD-1042",
"orderStatus": "In Progress",
"paymentStatus": "Pending",
"orderType": "Takeaway",
"orderDate": "2026-11-21T12:30:00.000Z",
"branchId": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"tableId": null,
"customerDetails": {
"name": "Sara Ahmed",
"phone": "+971501234567",
"email": null,
"guests": null
},
"items": [
{
"dishId": "9b1d7c3e-2f4a-4b6c-8d0e-1f2a3b4c5d6e",
"name": "Chicken shawarma",
"quantity": 2,
"price": "30.000000"
}
],
"bills": {
"subtotal": 28.57,
"discountAmount": 0,
"total": 28.57,
"tax": 1.43,
"taxRate": 5,
"serviceChargeAmount": 0,
"totalWithTax": 30,
"customerDeliveryFee": 0,
"tipAmount": 0,
"pricesIncludeTax": true
},
"currencySymbol": "AED",
"externalOrderId": "WEB-88213",
"notes": null
}
}
Errors
400 The request is not valid (VALIDATION_ERROR, or a more specific code).401 No API key, or the key is not valid or has expired (API_KEY_MISSING, API_KEY_INVALID, API_KEY_EXPIRED).403 The key lacks the scope (API_SCOPE_NOT_ALLOWED), the plan does not include a feature this endpoint needs (PLAN_FEATURE_REQUIRED), the module is switched off for the restaurant (FORBIDDEN) or the branch is not the key's (BRANCH_FORBIDDEN).404 Not found in the key's branch (NOT_FOUND).429 Too many requests for the key or the restaurant (RATE_LIMITED). Wait Retry-After seconds.503 The key could not be checked just now (SERVER_BUSY). Try again in a moment.
curl
curl -X GET "https://your-restaurant.cloudpos4u.com/api/v1/orders/{id}" \
-H "X-API-Key: $CLOUDPOS_API_KEY"
JavaScript (fetch)
const response = await fetch("https://your-restaurant.cloudpos4u.com/api/v1/orders/{id}", {
method: "GET",
headers: {
"X-API-Key": process.env.CLOUDPOS_API_KEY
}
});
const result = await response.json();
Reports
POST/api/v1/reports/exportsStart a report export
Scope: reports:read
Starts a background export of a ready or saved report as csv, xlsx (one sheet per currency, numbers with the currency's decimals) or pdf, with the same rules as POST /reports/run. Answers 202 with the export id; poll GET /reports/exports/{id}. At most 3 exports in progress per key and 100 a day per restaurant (429 REPORT_EXPORT_BUSY / REPORT_EXPORT_DAILY_LIMIT).
{
"templateId": "branchComparison",
"startDate": "2026-11-01",
"endDate": "2026-11-30",
"format": "xlsx",
"language": "en"
}
Example
{
"success": true,
"data": {
"id": "5c6d7e8f-9a0b-4c1d-8e2f-3a4b5c6d7e8f",
"status": "queued",
"format": "xlsx",
"source": "api",
"templateId": "branchComparison",
"savedReportId": null,
"fileName": null,
"sizeBytes": null,
"rowCount": null,
"createdAt": "2026-11-30T08:00:00.000Z",
"completedAt": null,
"expiresAt": null,
"error": null,
"download": null
}
}
Errors
400 The request is not valid (VALIDATION_ERROR, or a more specific code).401 No API key, or the key is not valid or has expired (API_KEY_MISSING, API_KEY_INVALID, API_KEY_EXPIRED).403 The key lacks the scope (API_SCOPE_NOT_ALLOWED), the plan does not include a feature this endpoint needs (PLAN_FEATURE_REQUIRED), the module is switched off for the restaurant (FORBIDDEN) or the branch is not the key's (BRANCH_FORBIDDEN).409 The change conflicts with the current state (CONFLICT, or a more specific code).429 Too many requests for the key or the restaurant (RATE_LIMITED). Wait Retry-After seconds.503 The key could not be checked just now (SERVER_BUSY). Try again in a moment.
curl
curl -X POST "https://your-restaurant.cloudpos4u.com/api/v1/reports/exports" \
-H "X-API-Key: $CLOUDPOS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"templateId":"branchComparison","startDate":"2026-11-01","endDate":"2026-11-30","format":"xlsx","language":"en"}'
JavaScript (fetch)
const response = await fetch("https://your-restaurant.cloudpos4u.com/api/v1/reports/exports", {
method: "POST",
headers: {
"X-API-Key": process.env.CLOUDPOS_API_KEY,
"Content-Type": "application/json"
},
body: JSON.stringify({
"templateId": "branchComparison",
"startDate": "2026-11-01",
"endDate": "2026-11-30",
"format": "xlsx",
"language": "en"
})
});
const result = await response.json();
GET/api/v1/reports/exports/{id}Get a report export
Scope: reports:read
The status of an export this key started: queued, running, done, failed (with error.code) or expired. When done, download.url is a signed link on this host that works for 15 minutes without the API key; call again for a fresh one. Files are deleted after 7 days. Another key's export answers 404.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | The export id from POST /reports/exports. |
Example
{
"success": true,
"data": {
"id": "5c6d7e8f-9a0b-4c1d-8e2f-3a4b5c6d7e8f",
"status": "done",
"format": "xlsx",
"source": "api",
"templateId": "branchComparison",
"savedReportId": null,
"fileName": "report-branchComparison-2026-11-01-2026-11-30.xlsx",
"sizeBytes": 8421,
"rowCount": 2,
"createdAt": "2026-11-30T08:00:00.000Z",
"completedAt": "2026-11-30T08:00:04.000Z",
"expiresAt": "2026-12-07T08:00:04.000Z",
"error": null,
"download": {
"url": "/api/reports/exports/5c6d7e8f-9a0b-4c1d-8e2f-3a4b5c6d7e8f/file?expires=1764490504&sig=AbC123",
"expiresAt": "2026-11-30T08:15:04.000Z"
}
}
}
Errors
400 The request is not valid (VALIDATION_ERROR, or a more specific code).401 No API key, or the key is not valid or has expired (API_KEY_MISSING, API_KEY_INVALID, API_KEY_EXPIRED).403 The key lacks the scope (API_SCOPE_NOT_ALLOWED), the plan does not include a feature this endpoint needs (PLAN_FEATURE_REQUIRED), the module is switched off for the restaurant (FORBIDDEN) or the branch is not the key's (BRANCH_FORBIDDEN).404 Not found in the key's branch (NOT_FOUND).429 Too many requests for the key or the restaurant (RATE_LIMITED). Wait Retry-After seconds.503 The key could not be checked just now (SERVER_BUSY). Try again in a moment.
curl
curl -X GET "https://your-restaurant.cloudpos4u.com/api/v1/reports/exports/{id}" \
-H "X-API-Key: $CLOUDPOS_API_KEY"
JavaScript (fetch)
const response = await fetch("https://your-restaurant.cloudpos4u.com/api/v1/reports/exports/{id}", {
method: "GET",
headers: {
"X-API-Key": process.env.CLOUDPOS_API_KEY
}
});
const result = await response.json();
GET/api/v1/reports/live-ordersGet the live orders
Scope: reports:read
The open orders of the key's branch right now (not completed or cancelled), newest first, at most 50. meta.truncated says when there are more.
Response 200 · Order
Example
{
"success": true,
"data": [
{
"id": "3f6c1d2e-8a4b-4c5d-9e6f-7a8b9c0d1e2f",
"orderNumber": "ORD-1042",
"orderStatus": "In Progress",
"paymentStatus": "Pending",
"orderType": "Takeaway",
"orderDate": "2026-11-21T12:30:00.000Z",
"branchId": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"tableId": null,
"customerDetails": {
"name": "Sara Ahmed",
"phone": "+971501234567",
"email": null,
"guests": null
},
"items": [
{
"dishId": "9b1d7c3e-2f4a-4b6c-8d0e-1f2a3b4c5d6e",
"name": "Chicken shawarma",
"quantity": 2,
"price": "30.000000"
}
],
"bills": {
"subtotal": 28.57,
"discountAmount": 0,
"total": 28.57,
"tax": 1.43,
"taxRate": 5,
"serviceChargeAmount": 0,
"totalWithTax": 30,
"customerDeliveryFee": 0,
"tipAmount": 0,
"pricesIncludeTax": true
},
"currencySymbol": "AED",
"externalOrderId": "WEB-88213",
"notes": null
}
],
"meta": {
"limit": 50,
"truncated": false
}
}
Errors
400 The request is not valid (VALIDATION_ERROR, or a more specific code).401 No API key, or the key is not valid or has expired (API_KEY_MISSING, API_KEY_INVALID, API_KEY_EXPIRED).403 The key lacks the scope (API_SCOPE_NOT_ALLOWED), the plan does not include a feature this endpoint needs (PLAN_FEATURE_REQUIRED), the module is switched off for the restaurant (FORBIDDEN) or the branch is not the key's (BRANCH_FORBIDDEN).429 Too many requests for the key or the restaurant (RATE_LIMITED). Wait Retry-After seconds.503 The key could not be checked just now (SERVER_BUSY). Try again in a moment.
curl
curl -X GET "https://your-restaurant.cloudpos4u.com/api/v1/reports/live-orders" \
-H "X-API-Key: $CLOUDPOS_API_KEY"
JavaScript (fetch)
const response = await fetch("https://your-restaurant.cloudpos4u.com/api/v1/reports/live-orders", {
method: "GET",
headers: {
"X-API-Key": process.env.CLOUDPOS_API_KEY
}
});
const result = await response.json();
Run a ready or saved report
Scope: reports:read
Runs a ready report (templateId) or a saved report (savedReportId) for a period of business days (each branch's time zone and day-close cut-off, at most 366 days) across the key's allowed branches, or the branchIds you send (a branch the key may not read is 403 BRANCH_FORBIDDEN). Rows and totals are per currency; amounts in different currencies are never added. Figures the key may not see answer 403 REPORT_FIELD_FORBIDDEN. A saved report needs the plan's custom report builder. The same numbers as the app.
{
"templateId": "salesSummary",
"startDate": "2026-11-01",
"endDate": "2026-11-30",
"branchIds": [
"1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e"
]
}
Example
{
"success": true,
"data": {
"rows": [
{
"key": "[\"AED\",\"2026-11-01\"]",
"currency": "AED",
"dims": {
"businessDate": "2026-11-01"
},
"values": {
"netSales": 1250.5,
"saleCount": 48
}
}
],
"page": {
"page": 1,
"limit": 100,
"total": 30,
"hasMore": false
},
"totals": [
{
"currency": "AED",
"decimals": 2,
"values": {
"netSales": 38420.75,
"saleCount": 1460
}
},
{
"currency": "KWD",
"decimals": 3,
"values": {
"netSales": 912.375,
"saleCount": 210
}
}
],
"converted": null,
"templateId": "salesSummary"
}
}
Errors
400 The request is not valid (VALIDATION_ERROR, or a more specific code).401 No API key, or the key is not valid or has expired (API_KEY_MISSING, API_KEY_INVALID, API_KEY_EXPIRED).403 The key lacks the scope (API_SCOPE_NOT_ALLOWED), the plan does not include a feature this endpoint needs (PLAN_FEATURE_REQUIRED), the module is switched off for the restaurant (FORBIDDEN) or the branch is not the key's (BRANCH_FORBIDDEN).409 The change conflicts with the current state (CONFLICT, or a more specific code).429 Too many requests for the key or the restaurant (RATE_LIMITED). Wait Retry-After seconds.503 The key could not be checked just now (SERVER_BUSY). Try again in a moment.
curl
curl -X POST "https://your-restaurant.cloudpos4u.com/api/v1/reports/run" \
-H "X-API-Key: $CLOUDPOS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"templateId":"salesSummary","startDate":"2026-11-01","endDate":"2026-11-30","branchIds":["1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d","2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e"]}'
JavaScript (fetch)
const response = await fetch("https://your-restaurant.cloudpos4u.com/api/v1/reports/run", {
method: "POST",
headers: {
"X-API-Key": process.env.CLOUDPOS_API_KEY,
"Content-Type": "application/json"
},
body: JSON.stringify({
"templateId": "salesSummary",
"startDate": "2026-11-01",
"endDate": "2026-11-30",
"branchIds": [
"1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e"
]
})
});
const result = await response.json();
GET/api/v1/reports/sales-summaryGet the sales summary
Scope: reports:read
Net sales, order counts, refunds and the payment mix of the key's branch for a period of business days, with the previous period for comparison. The same figures as the app's Home dashboard.
Parameters
| Name | In | Type | Required | Description |
|---|
period | query | string | No | today (the default), yesterday, last7Days, last30Days, thisWeek, thisMonth, lastMonth, thisYear, all or custom. |
startDate | query | string | No | For period=custom: the first business date (YYYY-MM-DD). |
endDate | query | string | No | For period=custom: the last business date (YYYY-MM-DD). |
Example
{
"success": true,
"data": {
"period": "today",
"generatedAt": "2026-11-21T15:00:00.000Z",
"ranges": [],
"current": {
"netSales": 1250.5,
"refunds": 0,
"orderCount": 48,
"settledCount": 45,
"averageCheck": 27.79,
"cancelledCount": 1
},
"previous": {
"netSales": 1100,
"orderCount": 44
},
"salesTrend": 13.68,
"ordersTrend": 9.09,
"mixedCurrency": false,
"byCurrency": [],
"recentOrders": []
}
}
Errors
400 The request is not valid (VALIDATION_ERROR, or a more specific code).401 No API key, or the key is not valid or has expired (API_KEY_MISSING, API_KEY_INVALID, API_KEY_EXPIRED).403 The key lacks the scope (API_SCOPE_NOT_ALLOWED), the plan does not include a feature this endpoint needs (PLAN_FEATURE_REQUIRED), the module is switched off for the restaurant (FORBIDDEN) or the branch is not the key's (BRANCH_FORBIDDEN).429 Too many requests for the key or the restaurant (RATE_LIMITED). Wait Retry-After seconds.503 The key could not be checked just now (SERVER_BUSY). Try again in a moment.
curl
curl -X GET "https://your-restaurant.cloudpos4u.com/api/v1/reports/sales-summary?period=today" \
-H "X-API-Key: $CLOUDPOS_API_KEY"
JavaScript (fetch)
const response = await fetch("https://your-restaurant.cloudpos4u.com/api/v1/reports/sales-summary?period=today", {
method: "GET",
headers: {
"X-API-Key": process.env.CLOUDPOS_API_KEY
}
});
const result = await response.json();
GET/api/v1/reports/templatesList the ready reports
Scope: reports:read
The ready reports (the same as the app's Reports screen) with the figures and splits each shows, whether this key may run it, and the branches the key reads reports for: its own branch plus the branches chosen for it in Automation > APIs.
Example
{
"success": true,
"data": {
"templates": [
{
"id": "salesSummary",
"group": "sales",
"measures": [
"grossSales",
"discounts",
"sales",
"refunds",
"netSales",
"outputTax",
"tips",
"saleCount",
"averageCheck"
],
"dimensions": [
"businessDate"
],
"allowed": true
},
{
"id": "labourVsSales",
"group": "costs",
"measures": [
"netSales",
"labour"
],
"dimensions": [
"branch",
"businessDate"
],
"allowed": false
}
],
"branchIds": [
"1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e"
]
}
}
Errors
400 The request is not valid (VALIDATION_ERROR, or a more specific code).401 No API key, or the key is not valid or has expired (API_KEY_MISSING, API_KEY_INVALID, API_KEY_EXPIRED).403 The key lacks the scope (API_SCOPE_NOT_ALLOWED), the plan does not include a feature this endpoint needs (PLAN_FEATURE_REQUIRED), the module is switched off for the restaurant (FORBIDDEN) or the branch is not the key's (BRANCH_FORBIDDEN).429 Too many requests for the key or the restaurant (RATE_LIMITED). Wait Retry-After seconds.503 The key could not be checked just now (SERVER_BUSY). Try again in a moment.
curl
curl -X GET "https://your-restaurant.cloudpos4u.com/api/v1/reports/templates" \
-H "X-API-Key: $CLOUDPOS_API_KEY"
JavaScript (fetch)
const response = await fetch("https://your-restaurant.cloudpos4u.com/api/v1/reports/templates", {
method: "GET",
headers: {
"X-API-Key": process.env.CLOUDPOS_API_KEY
}
});
const result = await response.json();
Reservations
List reservations
Scope: reservations:read
The reservations of the key's branch. Needs the Reservation System plan feature (included in Ultimate).
Parameters
| Name | In | Type | Required | Description |
|---|
status | query | string | No | One of Requested, Declined, Pending, Confirmed, Seated, Completed, Cancelled, No Show. |
from | query | string | No | Reservations ending after this date-time (ISO 8601). |
to | query | string | No | Reservations starting before this date-time (ISO 8601). |
Example
{
"success": true,
"data": [
{
"id": "2d3e4f5a-6b7c-4d8e-9f0a-1b2c3d4e5f6a",
"reservationNumber": "RSV-0031",
"customerName": "Omar Khan",
"customerPhone": "+971551112233",
"guestCount": 4,
"startsAt": "2026-11-22T17:00:00.000Z",
"endsAt": "2026-11-22T19:00:00.000Z",
"status": "Confirmed",
"scope": "Tables",
"floorId": null,
"notes": "Window seat",
"branchId": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"source": "Staff"
}
]
}
Errors
400 The request is not valid (VALIDATION_ERROR, or a more specific code).401 No API key, or the key is not valid or has expired (API_KEY_MISSING, API_KEY_INVALID, API_KEY_EXPIRED).403 The key lacks the scope (API_SCOPE_NOT_ALLOWED), the plan does not include a feature this endpoint needs (PLAN_FEATURE_REQUIRED), the module is switched off for the restaurant (FORBIDDEN) or the branch is not the key's (BRANCH_FORBIDDEN). PLAN_FEATURE_REQUIRED here can also mean the plan lacks Reservations.429 Too many requests for the key or the restaurant (RATE_LIMITED). Wait Retry-After seconds.503 The key could not be checked just now (SERVER_BUSY). Try again in a moment.
curl
curl -X GET "https://your-restaurant.cloudpos4u.com/api/v1/reservations?from=2026-11-22T00%3A00%3A00Z&to=2026-11-23T00%3A00%3A00Z" \
-H "X-API-Key: $CLOUDPOS_API_KEY"
JavaScript (fetch)
const response = await fetch("https://your-restaurant.cloudpos4u.com/api/v1/reservations?from=2026-11-22T00%3A00%3A00Z&to=2026-11-23T00%3A00%3A00Z", {
method: "GET",
headers: {
"X-API-Key": process.env.CLOUDPOS_API_KEY
}
});
const result = await response.json();
Create a reservation
Scope: reservations:write
Books tables (or a whole floor) of the key's branch. Overlapping bookings of the same table are refused with 409.
{
"customerName": "Omar Khan",
"customerPhone": "+971551112233",
"guestCount": 4,
"startsAt": "2026-11-22T17:00:00Z",
"endsAt": "2026-11-22T19:00:00Z",
"tableIds": [
"7c8d9e0f-1a2b-4c3d-8e4f-5a6b7c8d9e0f"
],
"notes": "Window seat"
}
Example
{
"success": true,
"message": "Reservation created.",
"data": {
"id": "2d3e4f5a-6b7c-4d8e-9f0a-1b2c3d4e5f6a",
"reservationNumber": "RSV-0031",
"customerName": "Omar Khan",
"customerPhone": "+971551112233",
"guestCount": 4,
"startsAt": "2026-11-22T17:00:00.000Z",
"endsAt": "2026-11-22T19:00:00.000Z",
"status": "Confirmed",
"scope": "Tables",
"floorId": null,
"notes": "Window seat",
"branchId": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"source": "Staff"
}
}
Errors
400 The request is not valid (VALIDATION_ERROR, or a more specific code).401 No API key, or the key is not valid or has expired (API_KEY_MISSING, API_KEY_INVALID, API_KEY_EXPIRED).403 The key lacks the scope (API_SCOPE_NOT_ALLOWED), the plan does not include a feature this endpoint needs (PLAN_FEATURE_REQUIRED), the module is switched off for the restaurant (FORBIDDEN) or the branch is not the key's (BRANCH_FORBIDDEN). PLAN_FEATURE_REQUIRED here can also mean the plan lacks Reservations.409 The change conflicts with the current state (CONFLICT, or a more specific code).429 Too many requests for the key or the restaurant (RATE_LIMITED). Wait Retry-After seconds.503 The key could not be checked just now (SERVER_BUSY). Try again in a moment.
curl
curl -X POST "https://your-restaurant.cloudpos4u.com/api/v1/reservations" \
-H "X-API-Key: $CLOUDPOS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"customerName":"Omar Khan","customerPhone":"+971551112233","guestCount":4,"startsAt":"2026-11-22T17:00:00Z","endsAt":"2026-11-22T19:00:00Z","tableIds":["7c8d9e0f-1a2b-4c3d-8e4f-5a6b7c8d9e0f"],"notes":"Window seat"}'
JavaScript (fetch)
const response = await fetch("https://your-restaurant.cloudpos4u.com/api/v1/reservations", {
method: "POST",
headers: {
"X-API-Key": process.env.CLOUDPOS_API_KEY,
"Content-Type": "application/json"
},
body: JSON.stringify({
"customerName": "Omar Khan",
"customerPhone": "+971551112233",
"guestCount": 4,
"startsAt": "2026-11-22T17:00:00Z",
"endsAt": "2026-11-22T19:00:00Z",
"tableIds": [
"7c8d9e0f-1a2b-4c3d-8e4f-5a6b7c8d9e0f"
],
"notes": "Window seat"
})
});
const result = await response.json();
PATCH/api/v1/reservations/{id}Change a reservation's status
Scope: reservations:write
Moves a reservation to another status (for example Seated, Completed, Cancelled, No Show). A move the reservation cannot make answers 409. A guest's online booking request (Requested) can only be cancelled here; staff confirm or decline it in the app.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | The reservation id. |
{
"status": "Seated"
}
Example
{
"success": true,
"data": {
"id": "2d3e4f5a-6b7c-4d8e-9f0a-1b2c3d4e5f6a",
"reservationNumber": "RSV-0031",
"customerName": "Omar Khan",
"customerPhone": "+971551112233",
"guestCount": 4,
"startsAt": "2026-11-22T17:00:00.000Z",
"endsAt": "2026-11-22T19:00:00.000Z",
"status": "Seated",
"scope": "Tables",
"floorId": null,
"notes": "Window seat",
"branchId": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"source": "Staff"
}
}
Errors
400 The request is not valid (VALIDATION_ERROR, or a more specific code).401 No API key, or the key is not valid or has expired (API_KEY_MISSING, API_KEY_INVALID, API_KEY_EXPIRED).403 The key lacks the scope (API_SCOPE_NOT_ALLOWED), the plan does not include a feature this endpoint needs (PLAN_FEATURE_REQUIRED), the module is switched off for the restaurant (FORBIDDEN) or the branch is not the key's (BRANCH_FORBIDDEN). PLAN_FEATURE_REQUIRED here can also mean the plan lacks Reservations.404 Not found in the key's branch (NOT_FOUND).409 The change conflicts with the current state (CONFLICT, or a more specific code).429 Too many requests for the key or the restaurant (RATE_LIMITED). Wait Retry-After seconds.503 The key could not be checked just now (SERVER_BUSY). Try again in a moment.
curl
curl -X PATCH "https://your-restaurant.cloudpos4u.com/api/v1/reservations/{id}" \
-H "X-API-Key: $CLOUDPOS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"status":"Seated"}'
JavaScript (fetch)
const response = await fetch("https://your-restaurant.cloudpos4u.com/api/v1/reservations/{id}", {
method: "PATCH",
headers: {
"X-API-Key": process.env.CLOUDPOS_API_KEY,
"Content-Type": "application/json"
},
body: JSON.stringify({
"status": "Seated"
})
});
const result = await response.json();
Tables
List tables
Scope: tables:read
The tables of the key's branch with their state and floor.
Response 200 · Table
Example
{
"success": true,
"data": [
{
"id": "7c8d9e0f-1a2b-4c3d-8e4f-5a6b7c8d9e0f",
"tableNo": "T4",
"status": "Available",
"seats": 4,
"floor": {
"id": "5e2a9c1b-7d3f-4a5b-9c8d-0e1f2a3b4c5d",
"name": "Ground floor"
},
"currentOrderId": null
}
]
}
Errors
400 The request is not valid (VALIDATION_ERROR, or a more specific code).401 No API key, or the key is not valid or has expired (API_KEY_MISSING, API_KEY_INVALID, API_KEY_EXPIRED).403 The key lacks the scope (API_SCOPE_NOT_ALLOWED), the plan does not include a feature this endpoint needs (PLAN_FEATURE_REQUIRED), the module is switched off for the restaurant (FORBIDDEN) or the branch is not the key's (BRANCH_FORBIDDEN).429 Too many requests for the key or the restaurant (RATE_LIMITED). Wait Retry-After seconds.503 The key could not be checked just now (SERVER_BUSY). Try again in a moment.
curl
curl -X GET "https://your-restaurant.cloudpos4u.com/api/v1/tables" \
-H "X-API-Key: $CLOUDPOS_API_KEY"
JavaScript (fetch)
const response = await fetch("https://your-restaurant.cloudpos4u.com/api/v1/tables", {
method: "GET",
headers: {
"X-API-Key": process.env.CLOUDPOS_API_KEY
}
});
const result = await response.json();
Data shapes
Customer
| Name | Type | Required | Description |
|---|
id | string | Yes | A UUID. |
name | string | null | No | |
phone | string | null | No | |
email | string | null | No | |
customerTypes | array of string | No | |
loyaltyPoints | number | No | |
loyaltyTier | string | null | No | |
preferredLanguage | string | null | No | |
marketingConsent | boolean | No | |
createdAt | string | null | No | |
Dish
A dish as the key's branch sells it.
| Name | Type | Required | Description |
|---|
id | string | Yes | A UUID. |
name | string | Yes | |
description | string | null | No | |
price | number | null | Yes | The branch's price in the branch currency. |
image | string | null | No | |
categoryId | string | null | No | |
category | object | null | No | |
isAvailable | boolean | Yes | |
preparationTime | number | null | No | Minutes. |
isFeatured | boolean | No | |
Error
Every error answer. `code` is stable and machine-readable; `message` is English text for a person.
| Name | Type | Required | Description |
|---|
status | integer | Yes | |
message | string | Yes | |
code | string | No | For example API_KEY_MISSING, API_KEY_INVALID, API_KEY_EXPIRED, API_SCOPE_NOT_ALLOWED, PLAN_FEATURE_REQUIRED, PLAN_LIMIT_REACHED, FORBIDDEN, BRANCH_FORBIDDEN, RATE_LIMITED, VALIDATION_ERROR, NOT_FOUND, CONFLICT, SERVER_BUSY. |
details | object | No | |
requestId | string | No | Quote it when you contact support. |
errorStack | string | No | Always empty in production. |
Order
An order. The fields listed are stable in v1; other fields may appear and can be ignored.
| Name | Type | Required | Description |
|---|
id | string | Yes | A UUID. |
orderNumber | string | null | No | |
orderStatus | string (Pending Approval, In Progress, Ready, Served, On the Way, Delivered, Awaiting Payment, Completed, Cancelled) | Yes | |
paymentStatus | string | Yes | |
orderType | string (Dine-in, Delivery, Takeaway, Staff Meal) | No | |
orderDate | string | No | An ISO 8601 date-time (UTC). |
branchId | string | null | No | |
tableId | string | null | No | |
checkNumber | integer | null | No | The check's number at its table (1, 2, 3…) when the table has several checks. |
splitGroupId | string | null | No | Split bill: the same UUID on an order split into separate checks and on every check cut from it (the original order's id). Null when the order was never split. |
splitFromOrderId | string | null | No | Split bill: on a check cut from another order, that order's UUID; null on the original and on orders never split. Each check has its own payments and tax invoice. |
splitPlan | object | null | No | Split bill: payer shares of this check, frozen when saved: { version, mode (even, amount or seat), shares: [{ key, label, amount, seatKey? }] }. Amounts exclude tips and add up to the bill. Each share's payments are in the order's payment lines (settlementScope "share", settlementKey = the share's key, tipPortion = that payer's tip). One tax invoice for the order. Null when the check is not shared. |
customerDetails | object | No | |
items | array of object | Yes | |
bills | object | Yes | |
currencySymbol | string | null | No | The order's currency code (ISO 4217) when known. |
externalOrderId | string | null | No | |
notes | string | null | No | |
OrderCreate
A new order for the key's branch.
| Name | Type | Required | Description |
|---|
items | array of OrderLine | Yes | |
orderType | string (Dine-in, Delivery, Takeaway) | No | Dine-in when not sent. |
tableId | string | No | For Dine-in: a table id from GET /tables. |
customerDetails | object | No | |
deliveryAddress | string | No | Required for Delivery. |
orderStatus | string (In Progress, Pending Approval) | No | The key's order setting decides how the order starts. The default is Pending Approval: staff accept it in the app first. A key set to send orders straight to the kitchen creates them In Progress unless you ask for Pending Approval. This field can only make it stricter: In Progress from a key that waits for approval still gives Pending Approval. |
externalOrderId | string | No | Your own reference for the order. |
idempotencyKey | string | No | Or the Idempotency-Key header: 8 to 64 letters, digits, - or _. Sending the same key again returns the first order instead of a second one. |
notes | string | No | |
OrderLine
One line of an order you send. The server prices every line from the branch menu: a price you send is not used.
| Name | Type | Required | Description |
|---|
dishId | string | Yes | The dish id from GET /menu. |
quantity | number | Yes | More than 0. |
notes | string | No | A note for the kitchen. |
OrderQuote
What the order would cost now, priced by the server exactly as POST /orders would price it. Nothing is saved. Amounts are numbers rounded to the currency's decimals.
| Name | Type | Required | Description |
|---|
currency | string | null | Yes | ISO 4217 code of the branch currency. |
decimals | integer | Yes | |
orderType | string | No | |
subtotal | number | Yes | |
discountAmount | number | No | |
total | number | Yes | |
taxRate | number | No | |
tax | number | Yes | |
serviceChargeRate | number | No | |
serviceChargeAmount | number | No | |
customerDeliveryFee | number | No | |
totalWithTax | number | Yes | |
tipAmount | number | No | |
amountDue | number | Yes | |
pricesIncludeTax | boolean | No | |
appliedDeals | array of object | No | |
lines | array of object | Yes | |
RateLimited
429 Too Many Requests. Wait for the Retry-After header (seconds) before trying again.
| Name | Type | Required | Description |
|---|
status | integer (429) | Yes | |
code | string (RATE_LIMITED) | Yes | |
message | string | Yes | |
details | object | No | |
ReportExport
A background report export. When status is done, download.url (on this API host, no key needed) works for 15 minutes; ask again for a fresh link. Files are kept 7 days.
| Name | Type | Required | Description |
|---|
id | string | Yes | |
status | string (queued, running, done, failed, expired) | Yes | |
format | string (csv, xlsx, pdf) | No | |
source | string | No | |
templateId | string | null | No | |
savedReportId | string | null | No | |
fileName | string | null | No | |
sizeBytes | integer | null | No | |
rowCount | integer | null | No | |
createdAt | string | No | |
completedAt | string | null | No | |
expiresAt | string | null | No | |
error | object | null | No | |
download | object | null | No | |
ReportRequest
A ready report (templateId) or a saved report (savedReportId) for a period of business days and the key's branches.
| Name | Type | Required | Description |
|---|
templateId | string | No | A ready report id from GET /reports/templates. |
savedReportId | string | No | A saved report the person who created the key can open. |
startDate | string | No | The first business date (YYYY-MM-DD). At most 366 days. |
endDate | string | No | The last business date (YYYY-MM-DD). |
branchIds | array of string | No | Branches within the key's allowed branches; none = all of them. |
refundBasis | string (refundDay, saleDay) | No | refundDay (default): refunds on the day they were made; saleDay: against the sale's day. |
currencyMode | string (perCurrency, converted) | No | Totals per currency always; converted adds one total at the owner's monthly rates. |
grain | string (day, week, month) | No | |
page | integer | No | |
limit | integer | No | Rows per page, at most 500. |
format | string (csv, xlsx, pdf) | No | Exports only. |
language | string | No | Exports only: the file's language (en, ar, ur, …). |
ReportResult
Report rows and totals PER CURRENCY: amounts in different currencies are never added together.
| Name | Type | Required | Description |
|---|
definition | object | No | |
columns | object | No | |
rows | array of object | Yes | |
page | object | No | |
totals | array of object | Yes | |
converted | object | null | No | |
warnings | array of any | No | |
templateId | string | null | No | |
savedReport | object | null | No | |
labels | object | No | |
ReportTemplates
The ready reports and whether this key may run each (a key reads sales, refunds, tax collected, payments and items; financial and staff figures need staff permissions).
| Name | Type | Required | Description |
|---|
templates | array of object | Yes | |
branchIds | array of string | No | The branches this key reads reports for (its own first). |
Reservation
| Name | Type | Required | Description |
|---|
id | string | Yes | A UUID. |
reservationNumber | string | No | |
customerName | string | Yes | |
customerPhone | string | null | No | |
guestCount | integer | Yes | |
startsAt | string | Yes | An ISO 8601 date-time (UTC). |
endsAt | string | Yes | An ISO 8601 date-time (UTC). |
status | string (Requested, Declined, Pending, Confirmed, Seated, Completed, Cancelled, No Show) | Yes | |
scope | string (Tables, Floor) | No | |
floorId | string | null | No | |
notes | string | null | No | |
branchId | string | No | A UUID. |
source | string | No | |
ReservationCreate
| Name | Type | Required | Description |
|---|
customerName | string | Yes | |
customerPhone | string | No | |
guestCount | integer | Yes | |
startsAt | string | Yes | An ISO 8601 date-time (UTC). |
endsAt | string | Yes | An ISO 8601 date-time (UTC). |
scope | string (Tables, Floor) | No | Tables (the default) books tableIds; Floor books a whole floor (floorId). |
tableIds | array of string | No | |
floorId | string | No | |
status | string (Confirmed, Pending) | No | Confirmed when not sent. |
notes | string | No | |
ReservationStatusUpdate
| Name | Type | Required | Description |
|---|
status | string (Pending, Confirmed, Seated, Completed, Cancelled, No Show) | Yes | |
SalesSummary
Sales of the key's branch for a period of business days (the branch's own time zone and day cut-off).
| Name | Type | Required | Description |
|---|
period | string | Yes | |
generatedAt | string | No | An ISO 8601 date-time (UTC). |
ranges | array | null | No | |
current | object | Yes | |
previous | object | null | No | |
salesTrend | number | null | No | |
ordersTrend | number | null | No | |
mixedCurrency | boolean | No | |
byCurrency | array of object | No | |
recentOrders | array of object | No | |
Table
| Name | Type | Required | Description |
|---|
id | string | Yes | A UUID. |
tableNo | string | integer | Yes | |
status | string | Yes | For example Available, Booked. |
seats | integer | null | No | |
floor | object | null | No | |
currentOrderId | string | null | No | |
CustomerDishErrorMenuOrderOrderCreateOrderLineOrderQuotePaginationRateLimitedReportExportReportRequestReportResultReportTemplatesReservationReservationCreateReservationStatusUpdateSalesSummaryTable