Documentation Index
Fetch the complete documentation index at: https://developer.clopos.com/llms.txt
Use this file to discover all available pages before exploring further.
Core concepts
Before building against the API, it helps to understand the four identifiers that appear on every v2 request: brand, venue, integrator, and the JWT that ties them together.Brand
A brand is the top-level tenant on the Clopos platform. Every restaurant chain, cloud kitchen, or coffee shop operator has its own brand, identified by a short string such asopenapitest. All data — venues, products, orders, receipts — lives inside a brand.
You receive your brand identifier from Clopos when your account is provisioned.
Venue
A venue is a physical location that belongs to a brand — a single restaurant, branch, or kiosk. A brand can have one venue or hundreds. Venues are identified by numeric IDs (for example,venue_id: 1).
Each JWT is issued with a default venue_id encoded inside it. You can override it on any request with the optional x-venue header, which is useful when a single integration needs to operate across multiple venues under the same brand without re-authenticating.
Integrator
An integrator represents the third-party system talking to the Clopos API — a delivery marketplace, a loyalty platform, an ERP connector, and so on. Each integrator is registered with Clopos and receives a uniqueintegrator_id.
Integrators are a v2 concept and are required on every authentication call. They allow Clopos to:
- Attribute traffic and rate limits to a specific partner.
- Gate access to experimental or test-only brands.
- Revoke a single partner’s access without rotating every client credential.
Test vs production integrators
Integrators are flagged as eitheris_test: true or is_test: false. The rule enforced on both /v2/auth and every authenticated endpoint is:
Use a test integrator while you are building and verifying your integration against a sandbox brand. When you are ready to go live against a real brand, request a production integrator_id.
JWT access token
Once you call/v2/auth with client_id, client_secret, brand, and integrator_id, Clopos returns a signed JWT that encodes all of the above plus the default venue_id and upstream authentication state.
That is why authenticated v2 requests need only a single header (x-token) — everything else is already inside the token.
expires_at rather than waiting for a 401 Token expired. See Authentication for the full flow and code examples.
Putting it together
A typical v2 request therefore carries:- A JWT in
x-tokenthat authenticates who is calling (integrator) and where they are calling (brand + default venue). - Optionally
x-venueto target a different venue under the same brand. - The request body or query parameters for the endpoint itself.