---
title: Errors and retries
summary: The status codes this API returns, and when a retry helps.
group: Get started
order: 40
---

Errors use the same envelope as success, with `data` set to `null`:

```json
{ "status": 403, "message": "...", "data": null }
```

`status` mirrors the HTTP status code.

## Status codes

- **`200`** — success.
- **`400`** — the request was malformed (for example a bad query parameter). Fix the request.
- **`401`** — the token is missing, expired, revoked, or malformed. Get a fresh access token from SequiPay Core. See [Authentication](/guides/authentication.md).
- **`403`** — the token is valid but was not granted the `module:action` scope this route requires. Ask your Core administrator to add it.
- **`404`** — the record does not exist, or is not in your company.
- **`500`** — a server-side error.

## Retries

Retry a `500` with exponential backoff. Do not retry `400`, `401`, `403`, or `404` — they will not change without fixing the request, the token, or the scopes.

Because authorizer decisions are cached at the edge for up to five minutes, a token that was just revoked may keep working briefly, and a scope just granted may take up to five minutes to take effect.
