Appearance
Bet Events
Every bet placed or settled by a user with an active challenge or funded account must be sent to FAST. FAST provides two endpoints: synchronous validation and ingestion.
Both take the server key only. The public widget key gets 403 forbidden: a bet event moves a balance, so it must come from your backend.
Event Fields
| Field | Type | Required | Description |
|---|---|---|---|
userId | string | yes | Your user identifier, not empty |
externalBetId | string | yes | Your bet identifier. Use the same one for every event of one bet |
stakeAmount | number | yes | Stake in EUR, 0 or more, rounded to the cent |
odds | number | yes | Decimal odds, above 0 |
status | string | yes | placed, settled-won, settled-lost or voided |
settlementAmount | number or null | no | Total return of a win, stake included (see below) |
eventTimestamp | string | no | ISO 8601 time of the event in your system; the server time when omitted (see Event Time) |
isCashOut | boolean | no | Whether this is a cash-out. Default false |
selections | integer | no | Number of selections on an accumulator, checked against the ruleset's maxAccumulatorSelections |
betTypeIdentifier | string | no | Your bet type label (single, accumulator, ...), stored for reference only |
A payload FAST cannot read (a required field missing or empty, an unknown status, a negative or non-numeric amount, odds of 0 or less, an unparseable eventTimestamp, or one more than 24 hours in the future) is answered 422 with "error": "mapping_error" and the field it failed on.
Synchronous Validation
Use POST /v1/bets/validate when you need an immediate accept/reject decision before confirming the bet in your sportsbook.
bash
curl -X POST https://api.fundedfast.eu/v1/bets/validate \
-H "X-API-Key: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"userId": "user-001",
"externalBetId": "BET-12345",
"stakeAmount": 5.00,
"odds": 2.10,
"betTypeIdentifier": "single",
"status": "placed",
"isCashOut": false
}'Accepted Response
json
{
"validationResult": {
"status": "accepted",
"reasonCodes": []
},
"correlationId": "uuid"
}Rejected Response
json
{
"validationResult": {
"status": "rejected",
"reasonCodes": ["max_stake_exceeded", "odds_limit_exceeded"]
},
"correlationId": "uuid"
}The reasonCodes array can contain multiple codes when a bet violates more than one rule. See Rejection Codes for the full list.
Validation records nothing and changes no balance. A user with no active challenge or funded account gets 404 not_found ("No active challenge or funded account for user"), and so does a user whose passed challenge waits for the continue or refund choice.
Bet Ingestion
Use POST /v1/bets to send bet events for ledger tracking. This endpoint handles both placement and settlement events.
In async mode, the endpoint returns 202 Accepted immediately and processes the event in the background. In sync mode, it processes the event and returns the validation result.
Sync mode answers 200:
json
{
"status": "processed",
"mode": "sync",
"validationResult": { "status": "accepted", "reasonCodes": [] },
"correlationId": "uuid"
}Async mode answers 202:
json
{
"status": "accepted",
"mode": "async",
"message": "Bet event received for tracking. Rejected bets will be silently ignored.",
"correlationId": "uuid"
}A 202 means the event is stored: FAST writes it to its database before answering, so a database outage, a restart or a queue outage after the 202 delays the event but never loses it. FAST keeps retrying a stored event, backing off to every 10 minutes, for about a day. If FAST cannot store the event, you get a 5xx and should resend it (resending is safe, see below). A settlement stored before its placement waits a few seconds for it; if the placement has still not arrived, the settlement is refused with no_accepted_placement.
Batch Ingestion
POST /v1/bets/batch takes { "bets": [ ... ] } with 1 to 100 events and processes each on its own: one failing event does not stop the others. Events of one user run in the order sent. The answer is always 200:
json
{
"status": "completed",
"total": 2,
"succeeded": 1,
"failed": 1,
"results": [
{ "index": 0, "status": "processed", "validationResult": { "status": "accepted", "reasonCodes": [] } },
{ "index": 1, "status": "error", "error": "Required field 'odds' is missing from payload" }
],
"correlationId": "uuid"
}A result's status is processed in sync mode, accepted in async mode, or error with the reason in error.
Placed Bet
bash
curl -X POST https://api.fundedfast.eu/v1/bets \
-H "X-API-Key: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"userId": "user-001",
"externalBetId": "BET-12345",
"stakeAmount": 5.00,
"odds": 2.10,
"betTypeIdentifier": "single",
"status": "placed",
"isCashOut": false
}'Won Settlement
Include settlementAmount, the total return to the user (stake plus profit).
bash
curl -X POST https://api.fundedfast.eu/v1/bets \
-H "X-API-Key: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"userId": "user-001",
"externalBetId": "BET-12345",
"stakeAmount": 5.00,
"odds": 2.10,
"status": "settled-won",
"settlementAmount": 10.50,
"isCashOut": false
}'Lost Settlement
bash
curl -X POST https://api.fundedfast.eu/v1/bets \
-H "X-API-Key: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"userId": "user-001",
"externalBetId": "BET-12346",
"stakeAmount": 5.00,
"odds": 1.80,
"status": "settled-lost",
"isCashOut": false
}'Voided Bet
A settlement only moves a balance for a bet FAST accepted. Settle every bet you took anyway: one FAST rejected, or one placed before the user bought a challenge, is recorded with no_accepted_placement and changes nothing. A void of such a bet changes nothing either and is answered accepted, as any void is.
A challenge passes the moment its target, bets and active days are met, even with bets still open, and the player can move on to the funded account straight away. A bet still open at that point settles later with program_closed: it is recorded under the challenge that accepted it and moves neither that challenge nor the funded account.
A void of an unsettled bet leaves the ledger balance and the counters alone; it only releases the stake the open bet held, so the visible balance gets it back. A void that arrives after the bet was settled reverses that settlement's balance effect (a win's credit is taken back, a loss is restored and removed from that day's loss total). If the settlement had already ended the account (for example a drawdown failure), the account stays in its terminal state and FAST raises a reconciliation flag for you to review.
bash
curl -X POST https://api.fundedfast.eu/v1/bets \
-H "X-API-Key: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"userId": "user-001",
"externalBetId": "BET-12347",
"stakeAmount": 5.00,
"odds": 2.00,
"status": "voided"
}'Event Time
eventTimestamp is when the bet was placed or settled in your system. On a production tenant FAST runs the rules on server time: a stamp in the future counts as now, and a stamp more than ten minutes old counts as ten minutes ago. A stamp from tomorrow cannot skip a session stop pause, and a stamp from last week cannot earn an active day. Staging tenants use the stamp as sent, so you can play out several days of a challenge in a few minutes.
Bet Statuses
| Status | Description | Balance Effect |
|---|---|---|
placed | Bet accepted, not yet settled | The stake is reserved: the visible balance (the balance less open stake) drops by it |
settled-won | Bet settled as a win | The ledger balance rises by settlementAmount less the stake |
settled-lost | Bet settled as a loss | The ledger balance falls by the stake; the visible balance does not change again |
voided | Bet cancelled | An open bet's stake is released; a settled bet's settlement is reversed |
Duplicates and Conflicting Settlements
Events are keyed on externalBetId + status. Resending an event FAST already has (same externalBetId, same status) changes nothing, so retries are safe. In sync mode the reply carries "duplicate": true and the validationResult the event got the first time: a placement refused for max_stake_exceeded stays refused on every retry, and an accepted one stays accepted even if the balance has moved since. Only a settlement that moved money makes its retry a no-op: a settlement FAST refused or held for review does not block the corrected one you send after it.
A settlement that contradicts an earlier one (won after lost, lost after won, or any settlement after a void) does not touch the balance. It is stored with status flagged and reason conflicting_settlement, and opens a reconciliation flag for you to resolve.
A settlement must also match the placement FAST accepted: the same stakeAmount and odds, and a settlementAmount no larger than stake x odds. One that does not is stored as flagged with reason settlement_mismatch, leaves the balance unchanged and opens a reconciliation flag. A second settled-won with a different settlementAmount from the one already paid is answered the same way: the first amount stands and one reconciliation flag is opened.
Rate Limit
POST /v1/bets accepts at most 30 placements per user per minute, and each placement item in POST /v1/bets/batch counts too (an over-limit item fails individually). Settlements and voids do not count and are never refused for rate, so a burst of results after a busy afternoon or a replayed backlog always lands. Over the limit, FAST answers 429 with "error": "rate_limited" and no Retry-After header; back off and resend once the 60-second window has passed.
The settlementAmount Field
For settled-won events, settlementAmount is the total return including the original stake. FAST uses this to calculate the profit and update the shadow ledger balance.
Example: a 5.00 EUR stake at 2.10 odds returns 10.50 EUR. The settlementAmount is 10.50, and the net profit is 5.50.
When a settled-won event has no settlementAmount, FAST pays the win at the accepted odds: stake x odds. A win is always paid at the odds FAST accepted at placement, even when the settlement reports odds that differ by a rounding hair.
For settled-lost events, settlementAmount is not required (the stake was already reserved on placement).
Integration Modes
The integration mode is configured per tenant:
- Sync: Call
/v1/bets/validatebefore accepting a bet, then/v1/betsfor settlement. FAST returns accept/reject immediately. - Async: Send all events to
/v1/bets. FAST returns202 Acceptedand processes in the background. Rejected bets are silently ignored.
Toggle the mode via PUT /v1/admin/integration-mode in the operator backoffice.