Guides
Rounds and reconciliation
A Round is one unit of play: one stake, one Outcome, one settlement. This page follows its money from start to finish, through the failure cases, and shows how to reconcile your Wallet with our records.
Identifiers
Each ID has one owner and one job. Don’t reuse one in place of another.
| ID | Created by | Unique within | Lives | Purpose |
|---|---|---|---|---|
Idempotency-Key | You | Your Operator and the operation | 24 hours | One intended GameSession, across retries |
X-Request-Id | The caller, per attempt | — | One attempt | Finding one HTTP request in logs |
nonce | The signer | The signing key | The signature’s lifetime | Replay protection; never business identity |
player.id / Wallet player_id | You | Your Operator | Yours | The External Player ID: your player in your Wallet |
GameSession player_id | Us | Your Operator | Permanent | The Player Reference: our ID of your player |
GameSession id | Us | The Environment | Permanent | Launch, reads and support |
round_id | Us | The Environment | Permanent | Groups the money of one Round |
transaction_id | Us | Your integration with us | Forever | The deduplication key in your Wallet |
A Round’s money
- The player stakes. We record the Round and send your Wallet one Debit for the stake.
- Once the Debit succeeds, our servers determine the Outcome. Your Wallet never sees game logic.
- We record the Outcome and send one Credit: the gross payout for a win, or zero with
round_closed: truefor no win. - When your Wallet confirms the Credit, the Round is
completed.
A Round has at most one Debit, and then either one Credit or, if it’s canceled, one Reversal, never both. No current flow cancels a Round. A GameSession plays one Round at a time: the next Round can start only after the previous one is finished.
Scenarios
A win
→ POST /v1/wallet/debits transaction_id T1, round_id R, amount 100, reason gameplay, round_closed false
← 200 succeeded balance_after 49900
→ POST /v1/wallet/credits transaction_id T2, round_id R, amount 250, reason gameplay, round_closed false
← 200 succeeded balance_after 50150
Round R: completed, stake 100, payout 250
No win
→ POST /v1/wallet/debits T1, R, amount 100, gameplay, round_closed false
← 200 succeeded balance_after 49900
→ POST /v1/wallet/credits T2, R, amount 0, reason round_close, round_closed true
← 200 succeeded balance_after 49900
Round R: completed, stake 100, payout 0
Not enough money
→ POST /v1/wallet/debits T1, R, amount 100
← 200 rejected rejection_code insufficient_funds, balance_after 50
Round R: funding_rejected. No Credit follows; the game tells the player.
A later stake is a new Round with a new transaction ID.
A lost answer
→ POST /v1/wallet/debits T1 (your Wallet applies it, the answer is lost)
→ GET /v1/wallet/transactions/T1
← 200 {"status": "receipt", "receipt": {… "outcome": "succeeded" …}}
Nothing is sent again; the Round continues.
If your Wallet has no record:
← 404 not_found
→ POST /v1/wallet/debits T1 again, same body, new signature
← 200 the receipt, applied once
A payout after the session ended
The GameSession expires while the Credit for Round R is still being delivered.
→ POST /v1/wallet/credits T2, R, amount 250 (operator_session_token may be absent)
← 200 succeeded accept it: the Round happened while the session was valid
A canceled Round
No current flow cancels a Round, but the contract defines the shape, and your Wallet must support it:
→ POST /v1/wallet/reversals transaction_id T3, original_transaction_id T1, amount 100, reason compensation
← 200 succeeded, reversal_effect refunded if T1 had taken the money
← 200 succeeded, reversal_effect prevented if T1 never arrived: reject T1 later with transaction_cancelled
← 200 succeeded, reversal_effect no_effect if T1 was rejected
Round R: cancelled
Round statuses
| Status | Meaning |
|---|---|
awaiting_funding | The Debit is being delivered, or its outcome is still unknown. |
ready_to_evaluate, evaluating | The stake is confirmed and the Outcome is being determined. |
awaiting_settlement | The Outcome is recorded; the Credit isn’t confirmed yet. |
completed | Finished: the Credit is confirmed. Terminal. |
settlement_incident | Your Wallet rejected the Credit. The payout is owed, not lost, and needs resolving with us. |
cancelling | A Reversal of the Debit is under way. |
cancelled | Canceled, with the Debit resolved by a Reversal. Terminal. |
funding_rejected | Your Wallet rejected the Debit. Terminal; no money moved. |
Only completed, cancelled and funding_rejected are terminal. Treat a status you don’t know as unknown, neither success nor failure.
Diagnostic reads
Read one Round or one WalletTransaction at a time when you investigate. Reads change nothing: they don’t call your Wallet or retry anything, and they show what we last recorded, which can be a moment behind your Wallet.
GET/v1/rounds/{round_id}Scope rounds:read
{
"id": "9a3e5c1b-7d2f-4b8a-8e6c-0f1d3b5a7c9e",
"game_session_id": "6d1f2c7a-3b4e-4f5a-9c8d-7e6f5a4b3c2d",
"game_id": "44444444-4444-4444-8444-444444444444",
"status": "completed",
"mode": "real",
"stake": { "currency": "EUR", "minor_units": 100 },
"payout": { "currency": "EUR", "minor_units": 250 },
"rules_revision_id": "…",
"started_at": "2026-10-20T12:01:00.25Z",
"completed_at": "2026-10-20T12:01:01Z",
"closed_at": "2026-10-20T12:01:01Z",
"transaction_ids": [
"5f0c2a8e-1d4b-4c3e-9a7f-2b6d8e1c4a90",
"c3b1e7a2-5f4d-4e9b-a1c8-6d2f0b3e5a71"
]
}
payout is present exactly when the Outcome is recorded, so a known zero payout is 0 and an unknown one is absent. transaction_ids lists the Round’s own Debit, Credit and Reversal in the order they were created.
GET/v1/transactions/{transaction_id}Scope transactions:read
{
"id": "5f0c2a8e-1d4b-4c3e-9a7f-2b6d8e1c4a90",
"round_id": "9a3e5c1b-7d2f-4b8a-8e6c-0f1d3b5a7c9e",
"type": "debit",
"status": "succeeded",
"amount": { "currency": "EUR", "minor_units": 100 },
"reason": "gameplay",
"round_closed": false,
"delivery_status": "complete",
"created_at": "2026-10-20T12:01:00.25Z",
"updated_at": "2026-10-20T12:01:00.4Z"
}
A WalletTransaction has three separate fields: its financial status, our local delivery_status and an optional attention marker. The last two never change the first.
| Field | Known values |
|---|---|
status | pending: no answer yet. succeeded or rejected: your Wallet’s receipt. indeterminate: sent, outcome unknown, never a rejection. A Debit later refunded by a Reversal stays succeeded. |
delivery_status | complete, scheduled, in_flight, paused, manual_review. Paused or held is neither success nor failure. |
attention | unresolved_age, budget_exhausted, delivery_window_elapsed, remote_hold_beyond_horizon, rejected_settlement, rejected_compensation: a reason for a person to look at it. |
reversal_effect | On a succeeded Reversal: refunded, prevented or no_effect. |
The read is not a balance: we never publish a balance of our own. Unknown and other Operators’ IDs both return 404 resource_not_found.
Reconciliation
Reconcile transactions, not balances. Your Wallet’s records of our WalletTransactions, keyed by transaction_id, are the base:
- You have a receipt, we show
indeterminate. Our answer was lost. We’ll ask your status endpoint and settle on your receipt; nothing to do. - We show
succeededorrejected, you have no record. That contradicts the receipt we hold. Contact us with the transaction ID. - A Round in
awaiting_settlementhas a recorded Outcome whose Credit is on its way to your Wallet. It arrives with retries; don’t compensate it yourself. - A Round in
settlement_incidenthas a payout your Wallet rejected. The payout stays owed and the Round stays in that status; contact us. - Any
attentionmarker means the transaction needs a closer look. Contact us if it concerns money on your side.
v1 has no endpoint that lists many Rounds or transactions. Start from your own records and read the matching Round or WalletTransaction by ID.
Reporting an issue
To let us find a case quickly, send what applies:
- the
X-Request-Idof the response, and the time in UTC; - the GameSession
id, theround_idand thetransaction_id; - your Idempotency-Key for a GameSession creation;
- the receipt your Wallet returned, without the Operator Session Token.
Never send tokens, private keys, signatures or launch URLs.