Get started
Errors
One error shape, with a stable code and a message you can show.
A failed request returns a non-2xx status and an error object. Branch on code; the message is written for people and may change.
{
"error": {
"code": "invalid_request",
"message": "Insufficient USD balance. Add funds, or use Stable Connector so your customer funds this payout."
}
}| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request | A field is missing or wrong, or the request cannot be done. The message says which. |
| 400 | invalid_json | The body is not a JSON object. |
| 401 | unauthorized | The key is missing, wrong, revoked, or used from an address it does not allow. |
| 403 | forbidden | The key lacks the scope this endpoint needs. |
| 403 | live_disabled | A live key was used. Live mode is not open yet. |
| 403 | account_suspended | The business account is suspended. Contact support. |
| 404 | not_found | No such object on your account. |
| 413 | too_large | The request body is larger than 20 kB. |
| 429 | rate_limited | Too many requests. Wait for the Retry-After seconds. |
| 502 | provider_error | Our payment partner could not answer. Safe to try again. |
Retrying
Retry 429 and 5xx with a growing delay. Do not retry other 4xx errors without changing the request. For anything that creates money movement, retry with the same idempotency key.