Menu

Wallet, on your server

wallet.win

Pays a win.

Who calls it

We → youPOST {your server}/v1/wallet.win

We send it when a round ends with a win. We sign the call with our private key. Check it with our public key for the environment. See Signing calls. You answer within 5 seconds.

Request

FieldTypeWhat it is
transactionIdstringThe same call again moves no money.
roundIdstringLinks the stake to its win, loss or refund. Store your own round with it.
sessionIdstringLinks the money to our session.
casinoSessionIdstringLinks the money to your own session.
playerIdstringWhose balance.
amountintegerThe whole win. A whole number in the currency’s smallest unit: 100 EUR is 1.00 EUR. The decimals follow the ISO 4217 list. Social coins use the decimals set in the environment.
currencystringWhich money.
traceIdstringOne search finds the whole chain on both sides.
baseWinintegerWhat the paid spin won by itself. win = baseWin + freeSpins.win.
freeSpinsobject, optionalOnly if the round triggered free spins: { "count": 10, "win": 420 }. How many free spins, and what they won in all. See Free spins.

Answer

FieldTypeWhat it is
balanceintegerThe new balance.

If you do not answer

Rules your wallet must follow

See the rules on wallet.stake. Rule 3 matters most here: a win is always accepted.

Errors

Example

POST {your server}/v1/wallet.winExample
Request
{
  "transactionId": "t-01JC91…",
  "roundId": "r-01JC90…",
  "sessionId": "s-01JC8Z…",
  "casinoSessionId": "c-5531",
  "playerId": "p-82731",
  "amount": 500,
  "currency": "EUR",
  "baseWin": 80,
  "freeSpins": { "count": 10, "win": 420 },
  "traceId": "tr-01JC…"
}

Answer
{ "ok": true, "result": { "balance": 25400 } }