> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sleetpay.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Errors, limits and pagination

> Status codes, idempotency, pagination and the OpenAPI spec.

## Conventions

* JSON in, JSON out. Request and response fields are `snake_case`.
* Amounts are integers in the currency's minor unit.
* Timestamps are ISO 8601.
* Your own user id travels as `external_customer_id` / `external_id`.

## Errors

A non-2xx response carries a message:

```json theme={null}
{ "error": "The key does not carry the scope this endpoint needs." }
```

| Status | Meaning | What to do |
| - | - | - |
| `400` | Invalid body or parameters | Fix the request |
| `401` | Missing, expired or revoked key | Check the key and its expiry |
| `402` | Not enough prepaid credits (usage and credit transfers) | Inspect the per-event results or `available` |
| `403` | The key lacks the endpoint's scope, or a license activation is refused | Add the scope, or check the key's status and limits |
| `404` | Not found (also an unknown license key) | Check the id |
| `409` | Conflict, such as every paid seat already assigned | Resolve the conflict |
| `429` | Rate limited | Wait for `Retry-After` and retry |
| `5xx` | Our side | Retry GETs with backoff |

The SDKs raise `SleetPayError` (`status`, `body`, `message`) and already retry `429` and, for GETs, `502`, `503` and `504`.

## Idempotency

Usage events and credit transfers take an `idempotencyKey` and are safe to retry. Seat assignment is idempotent per email, license activation per label. For checkouts, create a new one per attempt.

## Pagination

List endpoints return:

```json theme={null}
{ "items": [ ... ], "pagination": { "total_count": 42, "max_page": 5 } }
```

and accept `?page=1&limit=10` (`limit` up to 100). The SDKs expose `iterate()` to walk every page for you.

## Versioning and the spec

All endpoints live under `/api/v1`. The OpenAPI 3.1 document is at [`/api/v1/openapi.json`](https://app.sleetpay.com/api/v1/openapi.json), with no key needed: import it into Postman or Insomnia, or generate a client in any language.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.