WinRequest
typestringrequired
The type of the win.
regular
type means regular bet,free
type means free bet (see Free Rounds section).
Possible values: [regular
, free
]
Example:
regular
sessionIDstringrequired
The Game Session's ID (external). Provided by client via Create New Game
call.
Example:
some_external_session_id
amountstringrequired
The amount of the bet in currency main units (note: not cents). Currency selected by the client during the
Create New Game
call. We support 2 decimal places for all fiat currencies.
Possible values: Value must match regular expression ^(0|[1-9]\d*)(\.\d+)?$
Example:
100.10
txIDuuidrequired
Unique ID for the win (internal) on Swipe Games' side. Could be used as idempotency key.
Example:
c27ccade-5a45-4157-a85f-7d023a689ea5
roundIDuuidrequired
Non unique ID for the round (internal) on Swipe Games' side. Could be the same for different games.
Example:
b78e42f8-2041-482d-9c4b-f2ca79fc75e3
frIDstring
Free Rounds ID (external).
This field is provided only for free rounds (where type
is free
).
Example:
some_external_free_rounds_id
WinRequest
{
"type": "regular",
"sessionID": "some_external_session_id",
"amount": "100.10",
"txID": "c27ccade-5a45-4157-a85f-7d023a689ea5",
"roundID": "b78e42f8-2041-482d-9c4b-f2ca79fc75e3",
"frID": "some_external_free_rounds_id"
}