BetRequest
typestringrequired
The type of the bet.
regulartype means regular bet,freetype means free bet (see Free Rounds section).
Possible values: [regular, free]
Example:
regularsessionIDstringrequired
The Game Session's ID (external). Provided by client via Create New Game call.
Example:
a1b2c3d4-e5f6-7890-abcd-ef1234567890amountstringrequired
The amount of the bet in currency main units (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.10txIDuuidrequired
Unique ID for the bet (internal) on Swipe Games' side. Could be used as idempotency key.
Example:
c27ccade-5a45-4157-a85f-7d023a689ea5roundIDuuidrequired
Non unique ID for the round (internal) on Swipe Games' side. Could be the same for different games.
Example:
b78e42f8-2041-482d-9c4b-f2ca79fc75e3frIDstring
Free Rounds ID (external).
This field is provided only for free rounds bets (where type is free).
Example:
some_external_free_rounds_idBetRequest
{
"type": "regular",
"sessionID": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"amount": "100.10",
"txID": "c27ccade-5a45-4157-a85f-7d023a689ea5",
"roundID": "b78e42f8-2041-482d-9c4b-f2ca79fc75e3",
"frID": "some_external_free_rounds_id"
}