Developers

Cloud POS 4U API reference

Version 1 of the Cloud POS 4U API lets your website, app or back-office system read a branch's menu, orders, tables, reservations and sales, and place orders and reservations. It is part of API Access on the Ultimate plan and on on-premise licences that include it.

Download openapi.jsonOpenAPI 3.1.0 · v1.2.0

Getting started

  1. 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).
  2. 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.
  3. 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/v1
  • https://{server}/api/v1

Scopes

Each endpoint needs one scope. A key without it gets 403 API_SCOPE_NOT_ALLOWED.

menu:readRead the branch menu: dishes, prices in the branch currency, categories and availability.
orders:readRead the branch orders and one order by id.
orders:writePrice a cart (quote) and place orders for the branch. Gives no discount or price-override power.
tables:readRead the branch tables and their state.
reservations:readRead the branch reservations.
reservations:writeCreate reservations and change their status.
reports:readRead 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:readFind 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 key300
Writes per key (POST, PATCH)60
Requests per restaurant, all keys1,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-…"
}
CodeHTTP statusMeaning
API_KEY_MISSING401No API key was sent.
API_KEY_INVALID401The key is wrong or has been revoked.
API_KEY_EXPIRED401The key has passed its expiry date.
API_SCOPE_NOT_ALLOWED403The key does not have the scope this endpoint needs, or it is a retired automation token.
PLAN_FEATURE_REQUIRED403The plan does not include a feature this endpoint needs: API Access, or Reservations for /reservations.
PLAN_LIMIT_REACHED403The plan's monthly order limit is reached (POST /orders).
FORBIDDEN403The module this endpoint uses (orders) is switched off for the restaurant.
BRANCH_FORBIDDEN403The request named a branch that is not the key's branch.
VALIDATION_ERROR400A value is missing or not valid. Some answers use a more specific code.
NOT_FOUND404Nothing with that id in the key's branch.
CONFLICT409The change conflicts with the current state, for example a table already booked.
RATE_LIMITED429Too many requests. Wait for Retry-After.
SERVER_BUSY503The 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.

Pagination

GET /orders answers one page: limit (1 to 200, 50 when not sent) and offset. The pagination object gives total, limit, offset and hasMore.

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

VersionDateDescription
1.2.02026-12-01Orders: 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.02026-11-30Reports: 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.02026-11-21First 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 support

Endpoints

Customers

GET/api/v1/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

NameInTypeRequiredDescription
phonequerystringNoThe phone number as stored, international format, for example +971501234567.
emailquerystringNoThe email address.

Response 200 · Customer

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

GET/api/v1/menu

Get the branch menu

Scope: menu:read

The dishes the key's branch sells now, with the branch's own price (in the branch currency) and availability, and the categories they belong to. A dish with no price in the branch currency is left out, as on the branch's tills.

Parameters

NameInTypeRequiredDescription
categoryquerystringNoOnly the dishes of this category id.

Response 200 · Menu

Example
{
  "success": true,
  "data": {
    "branchId": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
    "dishes": [
      {
        "id": "9b1d7c3e-2f4a-4b6c-8d0e-1f2a3b4c5d6e",
        "name": "Chicken shawarma",
        "description": "With garlic sauce",
        "price": 15,
        "image": null,
        "categoryId": "5e2a9c1b-7d3f-4a5b-9c8d-0e1f2a3b4c5d",
        "category": {
          "id": "5e2a9c1b-7d3f-4a5b-9c8d-0e1f2a3b4c5d",
          "name": "Wraps"
        },
        "isAvailable": true,
        "preparationTime": 10,
        "isFeatured": false
      }
    ],
    "categories": [
      {
        "id": "5e2a9c1b-7d3f-4a5b-9c8d-0e1f2a3b4c5d",
        "name": "Wraps"
      }
    ]
  }
}

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/menu" \
  -H "X-API-Key: $CLOUDPOS_API_KEY"
JavaScript (fetch)
const response = await fetch("https://your-restaurant.cloudpos4u.com/api/v1/menu", {
  method: "GET",
  headers: {
      "X-API-Key": process.env.CLOUDPOS_API_KEY
  }
});
const result = await response.json();

Orders

GET/api/v1/orders

List orders

Scope: orders:read

The orders of the key's branch, newest first, one page at a time.

Parameters

NameInTypeRequiredDescription
statusquerystringNoOne order status or a comma-separated list, for example In Progress,Ready.
fromquerystringNoFirst business date (YYYY-MM-DD), in the branch's own time zone and day cut-off.
toquerystringNoLast business date (YYYY-MM-DD), inclusive. from and to go together; one alone means that single day.
paymentStatusquerystringNoOne or more of Pending, Collected, Paid, Partially Paid, Partially Refunded, Refunded, Failed, Cancelled (comma-separated), or unpaid.
orderTypequerystringNoOne or more of Dine-in, Delivery, Takeaway, Staff Meal (comma-separated).
limitqueryintegerNoPage size, 1 to 200. 50 when not sent.
offsetqueryintegerNoOrders 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();
POST/api/v1/orders

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

NameInTypeRequiredDescription
Idempotency-KeyheaderstringNo8 to 64 letters, digits, - or _. The same key again returns the first order (200, replayed) instead of a second one.

Request body OrderCreate

{
  "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();
POST/api/v1/orders/quote

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.

Request body OrderCreate

{
  "orderType": "Takeaway",
  "items": [
    {
      "dishId": "9b1d7c3e-2f4a-4b6c-8d0e-1f2a3b4c5d6e",
      "quantity": 2
    }
  ]
}

Response 200 · OrderQuote

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/api/v1/orders/{id}

Get an order

Scope: orders:read

One order of the key's branch. An order of another branch answers 404.

Parameters

NameInTypeRequiredDescription
idpathstringYesThe 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/exports

Start 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).

Request body ReportRequest

{
  "templateId": "branchComparison",
  "startDate": "2026-11-01",
  "endDate": "2026-11-30",
  "format": "xlsx",
  "language": "en"
}

Response 202 · ReportExport

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

NameInTypeRequiredDescription
idpathstringYesThe export id from POST /reports/exports.

Response 200 · ReportExport

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-orders

Get 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();
POST/api/v1/reports/run

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.

Request body ReportRequest

{
  "templateId": "salesSummary",
  "startDate": "2026-11-01",
  "endDate": "2026-11-30",
  "branchIds": [
    "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
    "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e"
  ]
}

Response 200 · ReportResult

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-summary

Get 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

NameInTypeRequiredDescription
periodquerystringNotoday (the default), yesterday, last7Days, last30Days, thisWeek, thisMonth, lastMonth, thisYear, all or custom.
startDatequerystringNoFor period=custom: the first business date (YYYY-MM-DD).
endDatequerystringNoFor period=custom: the last business date (YYYY-MM-DD).

Response 200 · SalesSummary

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/templates

List 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.

Response 200 · ReportTemplates

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

GET/api/v1/reservations

List reservations

Scope: reservations:read

The reservations of the key's branch. Needs the Reservation System plan feature (included in Ultimate).

Parameters

NameInTypeRequiredDescription
statusquerystringNoOne of Requested, Declined, Pending, Confirmed, Seated, Completed, Cancelled, No Show.
fromquerystringNoReservations ending after this date-time (ISO 8601).
toquerystringNoReservations starting before this date-time (ISO 8601).

Response 200 · Reservation

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();
POST/api/v1/reservations

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.

Request body ReservationCreate

{
  "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"
}

Response 201 · Reservation

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

NameInTypeRequiredDescription
idpathstringYesThe reservation id.

Request body ReservationStatusUpdate

{
  "status": "Seated"
}

Response 200 · Reservation

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

GET/api/v1/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

NameTypeRequiredDescription
idstringYesA UUID.
namestring | nullNo
phonestring | nullNo
emailstring | nullNo
customerTypesarray of stringNo
loyaltyPointsnumberNo
loyaltyTierstring | nullNo
preferredLanguagestring | nullNo
marketingConsentbooleanNo
createdAtstring | nullNo

Dish

A dish as the key's branch sells it.

NameTypeRequiredDescription
idstringYesA UUID.
namestringYes
descriptionstring | nullNo
pricenumber | nullYesThe branch's price in the branch currency.
imagestring | nullNo
categoryIdstring | nullNo
categoryobject | nullNo
isAvailablebooleanYes
preparationTimenumber | nullNoMinutes.
isFeaturedbooleanNo

Error

Every error answer. `code` is stable and machine-readable; `message` is English text for a person.

NameTypeRequiredDescription
statusintegerYes
messagestringYes
codestringNoFor 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.
detailsobjectNo
requestIdstringNoQuote it when you contact support.
errorStackstringNoAlways empty in production.

Menu

NameTypeRequiredDescription
branchIdstring | nullYes
dishesarray of DishYes
categoriesarray of objectYes

Order

An order. The fields listed are stable in v1; other fields may appear and can be ignored.

NameTypeRequiredDescription
idstringYesA UUID.
orderNumberstring | nullNo
orderStatusstring (Pending Approval, In Progress, Ready, Served, On the Way, Delivered, Awaiting Payment, Completed, Cancelled)Yes
paymentStatusstringYes
orderTypestring (Dine-in, Delivery, Takeaway, Staff Meal)No
orderDatestringNoAn ISO 8601 date-time (UTC).
branchIdstring | nullNo
tableIdstring | nullNo
checkNumberinteger | nullNoThe check's number at its table (1, 2, 3…) when the table has several checks.
splitGroupIdstring | nullNoSplit 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.
splitFromOrderIdstring | nullNoSplit 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.
splitPlanobject | nullNoSplit 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.
customerDetailsobjectNo
itemsarray of objectYes
billsobjectYes
currencySymbolstring | nullNoThe order's currency code (ISO 4217) when known.
externalOrderIdstring | nullNo
notesstring | nullNo

OrderCreate

A new order for the key's branch.

NameTypeRequiredDescription
itemsarray of OrderLineYes
orderTypestring (Dine-in, Delivery, Takeaway)NoDine-in when not sent.
tableIdstringNoFor Dine-in: a table id from GET /tables.
customerDetailsobjectNo
deliveryAddressstringNoRequired for Delivery.
orderStatusstring (In Progress, Pending Approval)NoThe 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.
externalOrderIdstringNoYour own reference for the order.
idempotencyKeystringNoOr the Idempotency-Key header: 8 to 64 letters, digits, - or _. Sending the same key again returns the first order instead of a second one.
notesstringNo

OrderLine

One line of an order you send. The server prices every line from the branch menu: a price you send is not used.

NameTypeRequiredDescription
dishIdstringYesThe dish id from GET /menu.
quantitynumberYesMore than 0.
notesstringNoA 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.

NameTypeRequiredDescription
currencystring | nullYesISO 4217 code of the branch currency.
decimalsintegerYes
orderTypestringNo
subtotalnumberYes
discountAmountnumberNo
totalnumberYes
taxRatenumberNo
taxnumberYes
serviceChargeRatenumberNo
serviceChargeAmountnumberNo
customerDeliveryFeenumberNo
totalWithTaxnumberYes
tipAmountnumberNo
amountDuenumberYes
pricesIncludeTaxbooleanNo
appliedDealsarray of objectNo
linesarray of objectYes

Pagination

NameTypeRequiredDescription
totalintegerYes
limitintegerYes
offsetintegerYes
hasMorebooleanYes

RateLimited

429 Too Many Requests. Wait for the Retry-After header (seconds) before trying again.

NameTypeRequiredDescription
statusinteger (429)Yes
codestring (RATE_LIMITED)Yes
messagestringYes
detailsobjectNo

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.

NameTypeRequiredDescription
idstringYes
statusstring (queued, running, done, failed, expired)Yes
formatstring (csv, xlsx, pdf)No
sourcestringNo
templateIdstring | nullNo
savedReportIdstring | nullNo
fileNamestring | nullNo
sizeBytesinteger | nullNo
rowCountinteger | nullNo
createdAtstringNo
completedAtstring | nullNo
expiresAtstring | nullNo
errorobject | nullNo
downloadobject | nullNo

ReportRequest

A ready report (templateId) or a saved report (savedReportId) for a period of business days and the key's branches.

NameTypeRequiredDescription
templateIdstringNoA ready report id from GET /reports/templates.
savedReportIdstringNoA saved report the person who created the key can open.
startDatestringNoThe first business date (YYYY-MM-DD). At most 366 days.
endDatestringNoThe last business date (YYYY-MM-DD).
branchIdsarray of stringNoBranches within the key's allowed branches; none = all of them.
refundBasisstring (refundDay, saleDay)NorefundDay (default): refunds on the day they were made; saleDay: against the sale's day.
currencyModestring (perCurrency, converted)NoTotals per currency always; converted adds one total at the owner's monthly rates.
grainstring (day, week, month)No
pageintegerNo
limitintegerNoRows per page, at most 500.
formatstring (csv, xlsx, pdf)NoExports only.
languagestringNoExports only: the file's language (en, ar, ur, …).

ReportResult

Report rows and totals PER CURRENCY: amounts in different currencies are never added together.

NameTypeRequiredDescription
definitionobjectNo
columnsobjectNo
rowsarray of objectYes
pageobjectNo
totalsarray of objectYes
convertedobject | nullNo
warningsarray of anyNo
templateIdstring | nullNo
savedReportobject | nullNo
labelsobjectNo

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).

NameTypeRequiredDescription
templatesarray of objectYes
branchIdsarray of stringNoThe branches this key reads reports for (its own first).

Reservation

NameTypeRequiredDescription
idstringYesA UUID.
reservationNumberstringNo
customerNamestringYes
customerPhonestring | nullNo
guestCountintegerYes
startsAtstringYesAn ISO 8601 date-time (UTC).
endsAtstringYesAn ISO 8601 date-time (UTC).
statusstring (Requested, Declined, Pending, Confirmed, Seated, Completed, Cancelled, No Show)Yes
scopestring (Tables, Floor)No
floorIdstring | nullNo
notesstring | nullNo
branchIdstringNoA UUID.
sourcestringNo

ReservationCreate

NameTypeRequiredDescription
customerNamestringYes
customerPhonestringNo
guestCountintegerYes
startsAtstringYesAn ISO 8601 date-time (UTC).
endsAtstringYesAn ISO 8601 date-time (UTC).
scopestring (Tables, Floor)NoTables (the default) books tableIds; Floor books a whole floor (floorId).
tableIdsarray of stringNo
floorIdstringNo
statusstring (Confirmed, Pending)NoConfirmed when not sent.
notesstringNo

ReservationStatusUpdate

NameTypeRequiredDescription
statusstring (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).

NameTypeRequiredDescription
periodstringYes
generatedAtstringNoAn ISO 8601 date-time (UTC).
rangesarray | nullNo
currentobjectYes
previousobject | nullNo
salesTrendnumber | nullNo
ordersTrendnumber | nullNo
mixedCurrencybooleanNo
byCurrencyarray of objectNo
recentOrdersarray of objectNo

Table

NameTypeRequiredDescription
idstringYesA UUID.
tableNostring | integerYes
statusstringYesFor example Available, Booked.
seatsinteger | nullNo
floorobject | nullNo
currentOrderIdstring | nullNo

CustomerDishErrorMenuOrderOrderCreateOrderLineOrderQuotePaginationRateLimitedReportExportReportRequestReportResultReportTemplatesReservationReservationCreateReservationStatusUpdateSalesSummaryTable