Credit
Pay one round’s gross payout, or give one stake back, and answer the receipt.
200 with an applied receipt, or 409 with credit_unverified when your own check refuses it. See Credits.Headers
Equals the body's id.
"batch_3a787ce18225e69054f0bfbe34e909d7"
When the game server signed this attempt, in Unix milliseconds. Refuse a call whose timestamp is more than 60 seconds from your clock. A retry carries a fresh timestamp.
^[0-9]{13}$"1793629805120"
Lowercase hex HMAC-SHA256, keyed with your WALLET_SECRET, over the exact UTF-8 bytes of timestamp + "." + body. Compare it in constant time before you parse the body, and refuse the call with a status other than 200 when it does not match.
^[0-9a-f]{64}$"0315897c76ddcf819b7603a809501ff9ef1dd518187448e6d41597b6d4b7a021"
Body
The idempotency ID. payout_ for a payout, refund_ for a refund.
^(payout|refund)_[0-9a-f]{32}$Your stable player ID, the sub of the session token.
^[A-Za-z0-9_-]{1,128}$"player_48213"
The currency code. Each currency is a separate account of the player.
^[A-Z0-9]{2,12}$"USD"
A canonical non-negative integer string in the currency's minor units. No decimals, signs or leading zeros.
^(0|[1-9][0-9]{0,18})$"9900"
"credit"The rounds this credit settles. Each credit pays one round today.
1A bet ID, chosen by the player's browser. The element uses 32 lowercase hex characters.
^[A-Za-z0-9_-]{16,80}$One settlement per round of rounds, in the same order. Their amounts add up to amount.
1Response
The credit is applied. Credits are never declined.
The request's id.
declined only for a debit the player cannot cover. Credits and balance reads are always applied.
applied, declined The player's balance after this operation, in minor units.
^(0|[1-9][0-9]{0,18})$"9900"
Your wallet-wide revision after this operation. It increases with every change to the account, including changes outside kinematic. Two different balances never share a revision.
^(0|[1-9][0-9]{0,18})$"9900"
The request's currency.
^[A-Z0-9]{2,12}$"USD"