Appearance
Reconciliation
Reconciliation is how you verify that FAST's shadow ledger matches your sportsbook's records. Think of it as a daily health check: making sure every bet your system processed also exists in FAST, and vice versa.
Why Reconcile?
Network failures, timeouts, or bugs can cause bets to be recorded in your system but not in FAST (or the other way around). Reconciliation catches these gaps before they become problems.
How It Works
1. Pull FAST's Records
bash
curl -H "X-API-Key: your-api-key" \
"https://api.fundedfast.eu/v1/reconciliation/user-001?from=2026-01-01T00:00:00Z&to=2026-01-31T23:59:59Z"from and to are optional, inclusive and must be full ISO 8601 date-times: a bare date such as 2026-01-01 answers 400. They filter on the bet's eventTimestamp. The call needs your server key.
json
{
"betEvents": [
{
"id": "uuid",
"externalBetId": "BET-001",
"stakeAmount": 5.0,
"odds": 2.1,
"status": "placed",
"settlementAmount": null,
"eventTimestamp": "2026-01-15T14:30:00.000Z",
"validationResult": "accepted",
"rejectionReasons": [],
"isCashOut": false,
"challengeId": "uuid",
"fundedAccountId": null
}
],
"challenge": { "id": "uuid", "startingBalance": 1000.0, "currentBalance": 1040.0, "status": "active" },
"fundedAccount": null,
"nextCursor": null,
"correlationId": "uuid"
}One call returns one page: 1000 bet events by default, up to 5000 with limit. When nextCursor is not null, call again with cursor set to it (and the same from and to) for the next page. The SDK's reconciliation.getForUser(userId, { from, to, cursor }) takes the same options.
betEvents holds every row FAST stored for that user in the range, oldest first, including your externalBetId for cross referencing. The ledger is append only, so one bet has a row per status (placed, then settled-won and so on), and rejected or flagged rows are included: compare on externalBetId plus status, and look at validationResult. challenge and fundedAccount are the user's most recent ones (or null); currentBalance there is the ledger balance, with open stakes still counted.
2. Compare with Your Records
For each bet in your system, check if FAST has a matching externalBetId. For each bet in FAST, check if your system has a matching record.
javascript
// Simple reconciliation example; date is 'YYYY-MM-DD'
async function reconcile(userId, date) {
// Get FAST's records
const fastRes = await fetch(
`${API_URL}/reconciliation/${userId}?from=${date}T00:00:00Z&to=${date}T23:59:59Z`,
{ headers: { 'X-API-Key': API_KEY } }
);
const fastData = await fastRes.json(); // one page; follow nextCursor for more
// Get your records
const yourBets = await db.getBetsForUser(userId, date);
// Find mismatches
const fastIds = new Set(fastData.betEvents.map(b => b.externalBetId));
const yourIds = new Set(yourBets.map(b => b.ticketId));
const missingInFast = [...yourIds].filter(id => !fastIds.has(id));
const missingInYours = [...fastIds].filter(id => !yourIds.has(id));
if (missingInFast.length > 0) {
console.log('Bets in your system but not in FAST:', missingInFast);
// These need to be re-sent to FAST
}
}3. Fix Gaps
If bets are missing from FAST, re-send them through the normal POST /v1/bets endpoint. FAST deduplicates on externalBetId plus status, so sending the same event twice is safe.
Backfilling Missing Transactions
Yes, operators can backfill missing bets. Just send them through the normal API:
bash
# Re-send a missing placed bet
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-MISSING-001",
"stakeAmount": 5.00,
"odds": 2.10,
"status": "placed",
"isCashOut": false,
"eventTimestamp": "2026-01-15T14:30:00Z"
}'
# Then send the settlement
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-MISSING-001",
"stakeAmount": 5.00,
"odds": 2.10,
"status": "settled-won",
"settlementAmount": 10.50,
"isCashOut": false,
"eventTimestamp": "2026-01-15T15:00:00Z"
}'Send the placement before its settlement: a settlement whose placement was never accepted is stored as rejected with no_accepted_placement and moves no money.
On a production tenant, FAST holds eventTimestamp between ten minutes ago and now, so a backfill sent later is recorded at about the time it arrives, not its original time (a stamp in the past cannot earn active days or skip a pause). Staging keeps the stamp you send. Keep that in mind when you reconcile a past date range afterwards: a backfilled bet shows up under the day you sent it.
Manual Bet Settlement
If a bet was sent to FAST as placed but the settlement was lost, the operator can settle it manually from the backoffice. To find such bets, list the ones still open: GET /v1/admin/bet-events?status=placed returns only placements that have no settlement or void row yet (the ledger is append-only, so a settled bet keeps its placed row; the filter leaves those out). Add userId to narrow it to one player.
bash
# Settle a specific bet as won or lost
curl -X POST https://api.fundedfast.eu/v1/admin/bet-events/BET_EVENT_ID/settle \
-H "Authorization: Bearer YOUR_JWT" \
-H "Content-Type: application/json" \
-d '{"outcome": "won"}'Or settle multiple bets at once:
bash
curl -X POST https://api.fundedfast.eu/v1/admin/bet-events/bulk-settle \
-H "Authorization: Bearer YOUR_JWT" \
-H "Content-Type: application/json" \
-d '{
"settlements": [
{"betEventId": "uuid-1", "outcome": "won"},
{"betEventId": "uuid-2", "outcome": "lost"}
]
}'Reconciliation Flags
When FAST detects a discrepancy it cannot settle on its own, it raises a reconciliation flag for you to review. Flags are visible in the operator backoffice under "Reconciliation" and via the API. Only FAST raises them; there is no API to create one.
What Creates a Flag?
- A settlement contradicts an earlier one for the same
externalBetId(won after lost, lost after won, or a settlement after a void). FAST stores it asflaggedwith reasonconflicting_settlementand leaves the balance unchanged - A settlement does not match the accepted placement: a different stake or odds, or a payout above stake x odds. FAST stores it as
flaggedwith reasonsettlement_mismatchand leaves the balance unchanged - A void reverses a settlement that had already ended the challenge or funded account, or that a payout was already made from; the money moves back but the account stays closed until you review it
- A void of a bet whose reward was already paid out (a mission reward, a completed bonus); the reward is not taken back automatically
Viewing Flags
bash
# List open flags
curl -H "Authorization: Bearer YOUR_JWT" \
"https://api.fundedfast.eu/v1/admin/reconciliation/flags?status=open"status is optional (open or resolved); the list is newest first, at most 100. Each flag has id, userId, betEventId, description, annotation (your review note, or null), status, flaggedBy (system) and createdAt.
Resolving Flags
After investigating and fixing the discrepancy (by backfilling the missing bet or correcting the settlement), mark the flag as resolved in the backoffice.
Recommended Schedule
| Frequency | What to Check |
|---|---|
| Daily | Compare bet counts for all active users |
| Weekly | Full reconciliation of all bet IDs and settlement amounts |
| Monthly | Verify challenge completion and funded account balances match |
Tips
- Always include
eventTimestampwhen backfilling so the bet is recorded at the correct time - Use the staging environment to test your reconciliation script before running it against production
- Log the
correlationIdfrom every FAST response: you'll need it when investigating discrepancies - Set up alerts for when your reconciliation script finds mismatches