Appearance
Error Codes
All FAST API error responses use a consistent format with machine-readable error codes, human-readable messages, and a correlation ID for tracing.
Response Format
json
{
"error": "error_code",
"message": "Human-readable description",
"correlationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}Branch on error, never on message: messages are for people and can change.
HTTP Status Codes
| Status | Error Code | Description |
|---|---|---|
| 400 | validation_error | A field is missing, has a value the route does not accept, or is not a field the route knows (Unknown field: <name>). |
| 400 | invalid_request | The body is not valid JSON, or a JSON request was sent with no body (send {}). |
| 400 | missing_idempotency_key | A money action (withdrawal, stake refund, reward grant, loyalty adjustment) sent without the required X-Idempotency-Key header. |
| 401 | unauthorized | API key is missing or invalid. JWT token is missing, expired or revoked. |
| 402 | purchase_declined, withdrawal_declined, cancel_declined | Your approval URL declined the action. |
| 403 | insufficient_scope | Your server key has the integration scope and called the admin API (/v1/admin/*, /v1/audit/* or /v1/analytics/*). |
| 403 | forbidden | The credential may not call this endpoint or act on this user. See below. |
| 403 | approval_required | A widget-initiated purchase, withdrawal, refund or cancel on a production tenant with no approval URL configured. |
| 404 | not_found | Requested resource does not exist (user, challenge, funded account). |
| 409 | Specific code | Business rule conflict, e.g. active_challenge_exists, tier_disabled. See below. |
| 413 | payload_too_large | The request body is larger than the API accepts. |
| 415 | unsupported_media_type | The body is not sent as application/json. |
| 422 | mapping_error | Adapter mapping failed to translate the incoming payload. Check mapping configuration. |
| 429 | rate_limited | Request rate exceeded a limit (endpoint category, 30 bet placements per user per minute, or 30 failed authentications per IP per minute). |
| 429 | purchase_cooldown | Purchase attempted before the operator's next midnight after a failed or cancelled challenge. |
| 500 | internal_error | Unexpected server error. Include the correlationId when contacting support. |
| 503 | maintenance_mode | FAST is in maintenance mode. Write operations are blocked. Read operations continue. |
| 503 | service_unavailable | Idempotency store unavailable on a withdrawal or stake refund. Retry with the same key. |
Error Code Strings
Requests and credentials
| Error Code | HTTP Status | When It Occurs |
|---|---|---|
validation_error | 400 | Missing userId, invalid challengeTierId, a value out of range, invalid date format, a withdrawal with no grossAmount (except the last payout), an X-Idempotency-Key over 128 characters, a body field the route does not name (Unknown field: bogus; nested fields read parent/child). Bet payloads are exempt, since an adapter may map your own format. |
invalid_request | 400 | Malformed JSON, or Content-Type: application/json with an empty body. |
unauthorized | 401 | No X-API-Key header, invalid key, expired or revoked JWT, missing X-Super-Admin-Key. |
insufficient_scope | 403 | A server key with the integration scope called the admin API: /v1/admin/*, /v1/audit/* or /v1/analytics/*. Use the backoffice login, or ask FAST to give the key the admin scope. |
forbidden | 403 | A public widget key (pk_) called an endpoint outside the widget's own list, or a user resource without a user token; a user token acted on another user; a public key tried to mint a user token on a production tenant; a staging only endpoint (/v1/sandbox/*) was called on a production tenant. |
token_chain_expired | 403 | POST /v1/sse/token refreshing a user token whose chain began more than 24 hours ago. Mint a new one with the server key. |
configuration_error | 500 | POST /v1/sse/token on a tenant with no SSE secret. Contact FAST. |
invalid_mfa_token | 401 | POST /v1/auth/mfa/send or /mfa/verify with anything but the short-lived mfaToken from the login response. A session token is not accepted. |
invalid_reset_token | 400 | POST /v1/auth/reset-password with a link that is unknown, already used, replaced by a newer one, or older than 30 minutes. Ask for a new link. |
weak_password | 400 | POST /v1/auth/reset-password with a password that does not meet the rules (upper and lower case, a digit and a symbol; shorter than 8 characters answers validation_error). The link stays usable. |
idempotency_conflict | 409 | An X-Idempotency-Key reused with a different path or body. |
idempotency_in_progress | 409 | A repeat of a request whose first call with the same key is still running. Comes with Retry-After: 1. |
missing_idempotency_key | 400 | POST /v1/users/:userId/withdraw, /challenge/refund-stake, /funded/refund-stake, /v1/admin/rewards/grant, /v1/admin/rewards/bulk-grant or /v1/admin/loyalty/users/:userId/adjust without X-Idempotency-Key. |
approval_required | 403 | Widget money action on a production tenant with no approval URL. |
purchase_declined | 402 | Your approval URL declined a purchase. |
withdrawal_declined | 402 | Your approval URL declined a withdrawal or a stake refund (both are sent as type: "withdrawal"). |
cancel_declined | 402 | Your approval URL declined a challenge or funded account cancel. |
not_found | 404 | User has no active challenge or funded account (bet validation, progress, withdrawal). Requested resource ID does not exist. |
mapping_error | 422 | Adapter mapping cannot extract required fields from the bet payload. |
rate_limited | 429 | Per-minute request limit exceeded for the endpoint category, more than 30 bet placements for one user in a minute, or 30 failed authentications from one IP in a minute. |
internal_error | 500 | Unhandled exception in the API. Database connection failure. Queue processing error. |
maintenance_mode | 503 | Super admin activated maintenance mode. All write endpoints return this until maintenance is lifted. The body carries retryAfter: 300. |
service_unavailable | 503 | The idempotency store is down on a withdrawal or stake refund. Retry with the same key. |
Challenge purchase and the choice after a pass
| Error Code | HTTP Status | When It Occurs |
|---|---|---|
active_challenge_exists | 409 | POST /v1/challenges/purchase when the user already has an active challenge. |
challenge_awaiting_choice | 409 | Purchase while a passed challenge awaits continue or refund. |
active_funded_account_exists | 409 | Purchase while the user has an active funded account. |
tier_not_found | 409 / 404 | Purchase of a tier that does not exist for your tenant (409); GET /v1/challenge-tiers/:id/terms for one (404). |
tier_disabled | 409 | Purchase of a disabled tier. |
user_self_excluded | 409 | Purchase by a user who is self-excluded. |
monthly_challenge_limit_reached | 409 | Your tenant has sold as many challenges this month as its challenge limit allows. |
purchase_price_changed | 409 | Purchase whose discount changed between the operator approval and the purchase. Nothing was recorded; call again. |
purchase_cooldown | 429 | Purchase before the operator's next midnight after a failed or cancelled challenge. Response includes cooldownUntil. |
no_pending_choice | 404 | Continue or refund-stake when no challenge is awaiting the choice. |
not_pending_choice | 409 | Continue or refund-stake that lost a race: the challenge left the choice while the call ran. |
confirmation_required | 400 | Stake refund or cancellation sent without "confirm": true. |
no_active_challenge | 404 | POST /v1/users/:userId/challenge/cancel with no active or passed challenge. |
challenge_not_cancellable | 409 | Cancel of a challenge that ended while the call ran. |
no_active_funded_account | 404 | POST /v1/users/:userId/funded/cancel with no active funded account. |
funded_account_not_cancellable | 409 | Cancel of a funded account that ended while the call ran. |
stake_not_refundable | 409 | POST /v1/users/:userId/funded/refund-stake on a tier that does not allow an own stake refund. |
stake_already_returned | 409 | POST /v1/users/:userId/funded/refund-stake after the first payout, which already returned the own stake. The account stays open. |
Payouts
A refused POST /v1/users/:userId/withdraw answers 400 with the first blocking reason as error and every reason in reasons. Confirming a payout request (POST /v1/admin/payout-requests/:id/confirm) answers 404 for an unknown request and 409 for every other refusal.
| Error Code | HTTP Status | When It Occurs |
|---|---|---|
insufficient_withdrawable_balance | 400 / 409 | Withdrawal grossAmount exceeds what can be taken now (payout.withdrawableGross). 409 on confirm: the request has no payable profit left (a void took it back), so it was withdrawn as profit_changed. |
invalid_amount | 400 | Withdrawal amount with more than 2 decimals, or one that rounds to 0 cents. |
below_min_payout | 400 | Withdrawal share below the tier's fundedMinPayout. |
payout_interval | 400 | Withdrawal before the tier's gap after the previous executed payout has passed. |
max_payouts_reached | 400 | Withdrawal on an account that has used every payout it allows. |
no_profit | 400 | Withdrawal with the virtual balance not above the funded amount. |
open_bets | 400 / 409 | The account's last payout before every open bet has settled (400 on the request, 409 on confirm). |
payout_pending | 400 | Withdrawal while another request waits for the operator's decision. |
payout_debt | 400 | Withdrawal while a void after a payout has left profit to repay. Later profit repays it first. |
profit_held | 400 / 409 | Withdrawal of profit from wins younger than the settlement hold (400), or confirming a last payout while any is held (409). |
first_payout_below_stake | 400 | First withdrawal whose gross amount is below the own stake it returns. |
payout_amount_changed | 409 | Confirming a last payout whose amount changed since the request; it has been updated, confirm again. |
payout_request_not_found | 404 | Confirm or reject of an unknown payout request. |
payout_request_not_pending | 409 | Confirm or reject of a request that has already been decided. |
funded_account_not_found | 409 | Confirm of a request whose funded account is no longer active. |
Engagement
| Error Code | HTTP Status | When It Occurs |
|---|---|---|
reward_not_found_or_expired | 404 | POST /v1/users/:userId/rewards/:rewardId/claim for a reward that does not exist, has expired or was already claimed. |
offer_not_found | 409 | Bonus activation for an unknown or disabled offer. |
offer_not_yet_active / offer_expired | 409 | Bonus activation before the offer starts or after it ends. |
max_per_user_reached | 409 | The user has activated the offer as often as it allows. |
max_activations_reached | 409 | The offer has reached its total activation cap. |
active_bonus_exists | 409 | The user already has an active wagering bonus and the offer does not stack. |
bonus_amount_zero | 409 | The offer works out to a bonus of 0 for this deposit. |
deposit_from_operator_only | 403 | A widget user token sent depositAmount to POST /v1/users/:userId/bonuses/activate. Only your server names a deposit. |
deposit_required | 409 | A deposit-based bonus offer (deposit_match, reload, or one with a minQualifyingDeposit) activated with no depositAmount. |
deposit_below_minimum | 409 | Bonus activation with a depositAmount below the offer's minQualifyingDeposit. |
mission_not_found | 409 | Joining an unknown or disabled mission, or one outside its start and end dates. |
mission_not_opt_in | 409 | Joining a mission that enrols users on its own. |
max_completions_reached | 409 | Joining a mission the user has completed as often as it allows. |
tournament_not_found | 409 | Joining an unknown tournament. |
tournament_is_auto_enroll | 409 | Joining a tournament that enrols users on its own. |
not_invited | 409 | Joining an invite-only tournament without an invite. |
tournament_full | 409 | Joining a tournament that has reached its maximum entries. |
invalid_prizes | 400 | A tournament saved with prize bands that overlap, end before they start, or start below rank 1. Each rank can win one prize. |
Admin API
| Error Code | HTTP Status | When It Occurs |
|---|---|---|
boundary_violation | 400 | A ruleset value outside the bounds FAST sets for every operator. |
ruleset_in_use | 409 | Deleting a ruleset a tier, an active challenge or an active funded account still uses. |
tier_in_use | 409 | Deleting a challenge tier any challenge was bought on (disable it instead), or a loyalty tier users are at. |
tier_limit_reached | 403 | Creating a challenge tier beyond what your plan allows. |
achievement_in_use / reward_rule_in_use | 409 | Deleting an achievement or a reward rule that is still referenced. |
already_earned | 409 | Granting an achievement the user already has. |
already_replayed | 409 | Replaying a dead-letter webhook that has already been replayed. |
not_excluded | 404 | Lifting a self-exclusion for a user who is not excluded. |
Bulk settle (POST /v1/admin/bet-events/bulk-settle) answers 200 and reports each bet on its own, with already_settled or not_found for the ones it skipped.
Rate Limit Error
The endpoint-category 429 response includes additional fields (the per-user bet limit returns only error, message and correlationId, with no Retry-After):
json
{
"error": "rate_limited",
"message": "Too many requests. Limit: 500/min for this endpoint.",
"retryAfter": 42,
"correlationId": "uuid"
}Headers:
Retry-After: 42
X-RateLimit-Limit: 500
X-RateLimit-Remaining: 0
X-RateLimit-Reset: 1706000042Correlation ID
Every response includes a correlationId, in the body and in the X-Correlation-ID header. Send your own X-Correlation-ID and FAST uses it instead of making one. The ID appears in FAST's server logs and error responses. Always log it for debugging and include it in support requests.