Base URL
All API requests use the following base URL:Request format
All requests that include a body must send JSON and set theContent-Type header:
Response format
All responses return JSON. Successful responses include the requested resource or an array of resources. Error responses include anerror or message field describing what went wrong.
HTTP status codes
| Code | Meaning |
|---|---|
200 | Request succeeded. |
201 | Resource created successfully. |
400 | Bad request. The request body or parameters are invalid. |
401 | Unauthorized. The token is missing or expired. |
403 | Forbidden. The token does not have permission to perform this action. |
404 | Not found. The requested resource does not exist. |
422 | Unprocessable entity. The request is well-formed but failed validation. |
500 | Internal server error. Something went wrong on Cleo Pay’s side. |
Rate limiting
The API enforces rate limits per authenticated token. If you exceed the limit, you receive a429 Too Many Requests response. Back off and retry after the interval indicated in the Retry-After response header.
Pagination
List endpoints return paginated results. Use thelimit and offset query parameters to page through results:
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | number | 20 | Number of items to return. |
offset | number | 0 | Number of items to skip before returning results. |