Skip to Content

Win

Called when the player wins. The wallet must credit amount to the player’s balance and return the new balance.

Request

[GET] {WALLET_URL}/?user_id=10000&action=win&amount=0.20&currency=USD&game_id=19773&transaction_id=054525d7cc7f426c947d38ff35d17d30&round_id=33403baa3a374218a8d4a8c92493f055&ext_round_id=33403baa3a374218a8d4a8c92493f055
ParameterTypeRequiredDescription
actionstringyesalways win
user_idintegeryesuser’s ID at the casino
currencystring(3)yescurrency code in ISO 4217 format
amountfloatyesamount to credit, in the major currency unit
game_idintegeryesunique game id
transaction_idstring(32)yesunique transaction id, use it to reject duplicates
round_idstring(32)yesid of the game round the win belongs to
ext_round_idstring(32)nogame provider’s own round id, when it differs from round_id
ext_round_id_finishedstringnoset when this win closes the external round
freespins_idstringnothe Gift Spin id, when the win is part of a gift spin session
freespins_finishedstringnoset when this win is the last one of the gift spin session

transaction_id is unique per transaction. If the same transaction_id arrives twice, treat it as a duplicate and do not credit the player again — see error 1007.

Response

Response should be a json object.

{ "status": "OK", "balance": 100.05, "currency": "USD" }
ParameterTypeRequiredDescription
statusstringyesOK on success, ERROR otherwise
balancefloatyesplayer’s balance after the win
currencystring(3)yescurrency code in ISO 4217 format
Last updated on