type: "BET", "WIN", or "VOID" to move funds during gameplay.
| Type | Effect on balance | Notes |
|---|---|---|
BET | Deduct the amount. | If the player lacks funds, reject with 400 (see below). |
WIN | Credit the amount. | Includes parent_transaction_id referencing the original bet. |
VOID | Credit (refund) the amount. | Sent when a round is cancelled. Includes parent_transaction_id. |
Request
Field reference
Your unique identifier for the player.
BET, WIN, or VOID.Transaction amount in the player’s currency. Always positive.
ISO 4217 currency code.
UUID of the game the transaction belongs to.
Unique identifier for this transaction. Use it as your idempotency key — see Idempotency.
Sent only for
WIN and VOID. References the request_id of the original BET so you can correlate them.“Even if
parent_transaction_id is absent or does not match a known transaction, always respond with HTTP 200 and apply the credit.”Success response — 200 OK
Return the player’s updated balance after applying the transaction:Insufficient funds (BET only)
If the player does not have enough balance to cover aBET, you must reject the request with HTTP 400 Bad Request and the following body so the game provider can block the spin:
