Seamless Wallet Requests Flow
This section shows how the wallet calls follow one another through a bet’s lifecycle: which transaction GR8 Tech sends at each stage, what your wallet is expected to return, and what happens when a call fails.
Each page below pairs the flow diagram for one stage with the request payloads sent at that stage. If you are looking for the endpoint contract itself rather than the sequence, start with perform-transaction.
Bet lifecycle
Which transaction arrives when
| Stage | Type | Reason | Flow page |
|---|---|---|---|
| Player places a bet | withdrawal | bet | Place Bet |
| Bet placement fails technically | rollback | sport rollback | Place Bet |
| Event is settled | deposit | settle | Settlement |
| New payout is greater than the previous one | deposit | resettle | Settlement Corrections |
| New payout is smaller than the previous one | withdrawal | resettle | Settlement Corrections |
| Settlement is reverted entirely | withdrawal | cancelsettle | Settlement Corrections |
| Partial cashout is settled | deposit | partial settle | Partial Cashout |
| Partial cashout payout is adjusted | deposit / withdrawal | partial resettle | Partial Cashout |
| Partial cashout is reverted | withdrawal | partial cancelsettle | Partial Cashout |
Bonus and freebet transactions follow their own flows — see Bonuses.
Response shape
Every stage uses the same two envelopes, so they are shown once per transaction type rather than for every case:
- Success (HTTP 200) — echo the fields of the request back and add
balances(the player’s balances after the operation) andalreadyProcessed. See Response Structure. - Error (HTTP 400) — return an
errorobject withcode,messageandorigin, plusalreadyProcessed. See Wallet Error Codes.
Always answer with either HTTP 200 or HTTP 400 and a valid body. A 5XX response or a timeout is treated as “unknown” and triggers retries — the retry budget differs per stage and is documented in Rollback and Retry Logic.
Related Documentation
- perform-transaction - The endpoint every transaction on these pages is sent to
- Transaction Types Reference - Complete type and reason mapping
- Transaction Examples - Request and response examples per transaction type
- Rollback and Retry Logic - Retry budgets and rollback requirements
- Wallet Error Codes - Complete error code reference