Skip to main content

CreateNewGameRequest

cIDuuidrequired

Client's ID. It's provided by Swipe Games and is used as your identifier.

extCIDstringrequired

External Client's ID (client/platform/game aggregator/integrator or casino on your side). This is provided from your side, and this is how you identify your clients. We use it in all callbacks to you.

Example: your_ext_id
gameIDstringrequired

Game's ID. This is Swipe Games's game identifier. See the list of supported games in Game IDs section.

Example: sg_catch_97
sessionIDstring

Session ID (external).This is your Session ID. We use it in all callbacks to you. Not required for demo games, since we don't use callbacks for demo games.

Example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
returnURLstring

Return URL which we could use to redirect the user after the game is finished/exited. If you don't provide this URL, return button in the game will be disabled. Please make sure you provide this URL when using redirect to open the game, otherwise player cannot go back to your site.

Example: https://your-site.com/game-lobby
depositURLstring

Deposit URL which we could use to open a deposit page for the user. If you don't provide this URL, deposit flow in the game will be disabled.

Example: https://your-site.com/deposit
currencystringrequired

Currency code in ISO4217.

Example: USD
localestringrequired

Locale code in IETF BCP 47 format (ISO 639-1 language code with optional ISO 3166-1 country code), using underscore as separator.

Example: en_us
platformPlatformType (string)required

Platform code. This is used to identify the platform where the game is launched.

Possible values: [desktop, mobile]

Example: desktop
demobooleanrequired

Demo mode. If true, the game will be launched in demo mode (means no callbacks will be fired on your side, and we use our demo balance for the game). If false, the game will be launched in real mode.

initDemoBalancestring

Initial demo balance for the user (in currency units). Only used in demo mode, ignored in real mode. Must be greater than the minimum bet. Default is 10 000 USD equivalent.

Example: 10000.00
user object

User information we show in the game. User should be provided for real game.

idstringrequired

User's ID (external). This is User's ID on your side.

firstNamestring
lastNamestring
nickNamestring
countrystring

Country code ISO 3166-1 alpha-2.

CreateNewGameRequest
{
"cID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"extCID": "your_ext_id",
"gameID": "sg_catch_97",
"sessionID": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"returnURL": "https://your-site.com/game-lobby",
"depositURL": "https://your-site.com/deposit",
"currency": "USD",
"locale": "en_us",
"platform": "desktop",
"demo": true,
"initDemoBalance": "10000.00",
"user": {
"id": "string",
"firstName": "string",
"lastName": "string",
"nickName": "string",
"country": "string"
}
}