Menu

Wallet, on your server

wallet.refund

Gives a bet back when a stake had no answer.

Who calls it

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

We send it when your answer to a wallet.stake was unknown. No money is lost in a timeout. 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.
stakeTransactionIdstringWhich stake to give back.
amountintegerThe bet to give back. 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.

Answer

FieldTypeWhat it is
balanceintegerThe new balance.
appliedbooleanfalse when you never got the wallet.stake. Support sees whether money was ever taken.

If you do not answer

A refund that comes first

Errors

Example

POST {your server}/v1/wallet.refundExample
Request
{
  "transactionId": "t-01JC94…",
  "roundId": "r-01JC95…",
  "sessionId": "s-01JC8Z…",
  "casinoSessionId": "c-5531",
  "playerId": "p-82731",
  "stakeTransactionId": "t-01JC96…",
  "amount": 100,
  "currency": "EUR",
  "traceId": "tr-01JC…"
}

Answer
{ "ok": true, "result": { "balance": 25000, "applied": false } }