Skip to content

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 ​

StatusError CodeDescription
400validation_errorA field is missing, has a value the route does not accept, or is not a field the route knows (Unknown field: <name>).
400invalid_requestThe body is not valid JSON, or a JSON request was sent with no body (send {}).
400missing_idempotency_keyA money action (withdrawal, stake refund, reward grant, loyalty adjustment) sent without the required X-Idempotency-Key header.
401unauthorizedAPI key is missing or invalid. JWT token is missing, expired or revoked.
402purchase_declined, withdrawal_declined, cancel_declinedYour approval URL declined the action.
403insufficient_scopeYour server key has the integration scope and called the admin API (/v1/admin/*, /v1/audit/* or /v1/analytics/*).
403forbiddenThe credential may not call this endpoint or act on this user. See below.
403approval_requiredA widget-initiated purchase, withdrawal, refund or cancel on a production tenant with no approval URL configured.
404not_foundRequested resource does not exist (user, challenge, funded account).
409Specific codeBusiness rule conflict, e.g. active_challenge_exists, tier_disabled. See below.
413payload_too_largeThe request body is larger than the API accepts.
415unsupported_media_typeThe body is not sent as application/json.
422mapping_errorAdapter mapping failed to translate the incoming payload. Check mapping configuration.
429rate_limitedRequest rate exceeded a limit (endpoint category, 30 bet placements per user per minute, or 30 failed authentications per IP per minute).
429purchase_cooldownPurchase attempted before the operator's next midnight after a failed or cancelled challenge.
500internal_errorUnexpected server error. Include the correlationId when contacting support.
503maintenance_modeFAST is in maintenance mode. Write operations are blocked. Read operations continue.
503service_unavailableIdempotency store unavailable on a withdrawal or stake refund. Retry with the same key.

Error Code Strings ​

Requests and credentials ​

Error CodeHTTP StatusWhen It Occurs
validation_error400Missing 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_request400Malformed JSON, or Content-Type: application/json with an empty body.
unauthorized401No X-API-Key header, invalid key, expired or revoked JWT, missing X-Super-Admin-Key.
insufficient_scope403A 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.
forbidden403A 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_expired403POST /v1/sse/token refreshing a user token whose chain began more than 24 hours ago. Mint a new one with the server key.
configuration_error500POST /v1/sse/token on a tenant with no SSE secret. Contact FAST.
invalid_mfa_token401POST /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_token400POST /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_password400POST /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_conflict409An X-Idempotency-Key reused with a different path or body.
idempotency_in_progress409A repeat of a request whose first call with the same key is still running. Comes with Retry-After: 1.
missing_idempotency_key400POST /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_required403Widget money action on a production tenant with no approval URL.
purchase_declined402Your approval URL declined a purchase.
withdrawal_declined402Your approval URL declined a withdrawal or a stake refund (both are sent as type: "withdrawal").
cancel_declined402Your approval URL declined a challenge or funded account cancel.
not_found404User has no active challenge or funded account (bet validation, progress, withdrawal). Requested resource ID does not exist.
mapping_error422Adapter mapping cannot extract required fields from the bet payload.
rate_limited429Per-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_error500Unhandled exception in the API. Database connection failure. Queue processing error.
maintenance_mode503Super admin activated maintenance mode. All write endpoints return this until maintenance is lifted. The body carries retryAfter: 300.
service_unavailable503The idempotency store is down on a withdrawal or stake refund. Retry with the same key.

Challenge purchase and the choice after a pass ​

Error CodeHTTP StatusWhen It Occurs
active_challenge_exists409POST /v1/challenges/purchase when the user already has an active challenge.
challenge_awaiting_choice409Purchase while a passed challenge awaits continue or refund.
active_funded_account_exists409Purchase while the user has an active funded account.
tier_not_found409 / 404Purchase of a tier that does not exist for your tenant (409); GET /v1/challenge-tiers/:id/terms for one (404).
tier_disabled409Purchase of a disabled tier.
user_self_excluded409Purchase by a user who is self-excluded.
monthly_challenge_limit_reached409Your tenant has sold as many challenges this month as its challenge limit allows.
purchase_price_changed409Purchase whose discount changed between the operator approval and the purchase. Nothing was recorded; call again.
purchase_cooldown429Purchase before the operator's next midnight after a failed or cancelled challenge. Response includes cooldownUntil.
no_pending_choice404Continue or refund-stake when no challenge is awaiting the choice.
not_pending_choice409Continue or refund-stake that lost a race: the challenge left the choice while the call ran.
confirmation_required400Stake refund or cancellation sent without "confirm": true.
no_active_challenge404POST /v1/users/:userId/challenge/cancel with no active or passed challenge.
challenge_not_cancellable409Cancel of a challenge that ended while the call ran.
no_active_funded_account404POST /v1/users/:userId/funded/cancel with no active funded account.
funded_account_not_cancellable409Cancel of a funded account that ended while the call ran.
stake_not_refundable409POST /v1/users/:userId/funded/refund-stake on a tier that does not allow an own stake refund.
stake_already_returned409POST /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 CodeHTTP StatusWhen It Occurs
insufficient_withdrawable_balance400 / 409Withdrawal 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_amount400Withdrawal amount with more than 2 decimals, or one that rounds to 0 cents.
below_min_payout400Withdrawal share below the tier's fundedMinPayout.
payout_interval400Withdrawal before the tier's gap after the previous executed payout has passed.
max_payouts_reached400Withdrawal on an account that has used every payout it allows.
no_profit400Withdrawal with the virtual balance not above the funded amount.
open_bets400 / 409The account's last payout before every open bet has settled (400 on the request, 409 on confirm).
payout_pending400Withdrawal while another request waits for the operator's decision.
payout_debt400Withdrawal while a void after a payout has left profit to repay. Later profit repays it first.
profit_held400 / 409Withdrawal of profit from wins younger than the settlement hold (400), or confirming a last payout while any is held (409).
first_payout_below_stake400First withdrawal whose gross amount is below the own stake it returns.
payout_amount_changed409Confirming a last payout whose amount changed since the request; it has been updated, confirm again.
payout_request_not_found404Confirm or reject of an unknown payout request.
payout_request_not_pending409Confirm or reject of a request that has already been decided.
funded_account_not_found409Confirm of a request whose funded account is no longer active.

Engagement ​

Error CodeHTTP StatusWhen It Occurs
reward_not_found_or_expired404POST /v1/users/:userId/rewards/:rewardId/claim for a reward that does not exist, has expired or was already claimed.
offer_not_found409Bonus activation for an unknown or disabled offer.
offer_not_yet_active / offer_expired409Bonus activation before the offer starts or after it ends.
max_per_user_reached409The user has activated the offer as often as it allows.
max_activations_reached409The offer has reached its total activation cap.
active_bonus_exists409The user already has an active wagering bonus and the offer does not stack.
bonus_amount_zero409The offer works out to a bonus of 0 for this deposit.
deposit_from_operator_only403A widget user token sent depositAmount to POST /v1/users/:userId/bonuses/activate. Only your server names a deposit.
deposit_required409A deposit-based bonus offer (deposit_match, reload, or one with a minQualifyingDeposit) activated with no depositAmount.
deposit_below_minimum409Bonus activation with a depositAmount below the offer's minQualifyingDeposit.
mission_not_found409Joining an unknown or disabled mission, or one outside its start and end dates.
mission_not_opt_in409Joining a mission that enrols users on its own.
max_completions_reached409Joining a mission the user has completed as often as it allows.
tournament_not_found409Joining an unknown tournament.
tournament_is_auto_enroll409Joining a tournament that enrols users on its own.
not_invited409Joining an invite-only tournament without an invite.
tournament_full409Joining a tournament that has reached its maximum entries.
invalid_prizes400A 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 CodeHTTP StatusWhen It Occurs
boundary_violation400A ruleset value outside the bounds FAST sets for every operator.
ruleset_in_use409Deleting a ruleset a tier, an active challenge or an active funded account still uses.
tier_in_use409Deleting a challenge tier any challenge was bought on (disable it instead), or a loyalty tier users are at.
tier_limit_reached403Creating a challenge tier beyond what your plan allows.
achievement_in_use / reward_rule_in_use409Deleting an achievement or a reward rule that is still referenced.
already_earned409Granting an achievement the user already has.
already_replayed409Replaying a dead-letter webhook that has already been replayed.
not_excluded404Lifting 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: 1706000042

Correlation 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.

BLACKLINE CONSULTING d.o.o.