Errors
Every failed request in Clopos Open API v2 returns a JSON body with a consistent shape. This page documents that envelope, the HTTP status codes you can expect, and the most common errors you will encounter in practice.Error envelope
All error responses share the same top-level shape:Status codes
Common errors
Missing x-token
x-token header. Every v2 endpoint except /v2/auth requires it.
Invalid or malformed token
Expired token
/v2/auth again to obtain a fresh token, then retry the original request.
The
expires_at in this error body is an ISO 8601 string, while the expires_at returned by /v2/auth is a Unix timestamp in seconds. Parse each accordingly.Invalid integrator_id at /v2/auth
integrator_id is not registered with Clopos or has been disabled. Request a new one via this form.
Test integrator hitting a production brand
integrator_id or target a non-production brand. See Core concepts → Test vs production integrators.
Missing required field at /v2/auth
Resource not found
x-venue you are using (explicit header or JWT default) matches the venue where the resource lives.
Retry guidance
Reporting a bug
If you encounter an error you cannot explain, contact dev@clopos.com with:- The full request (method, URL, headers except
x-token, and body). - The full response (status code, headers, body).
- Your
integrator_idandbrand. - The approximate UTC timestamp.