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.

gameIDstringrequired

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

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.

returnURLstringrequired

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

currencystringrequired

Currency code in ISO4217.

localestringrequired

Locale code in IIETF BCP 47 (ISO 639).

platformstringrequired

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

Possible values: [desktop, mobile]

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.

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": "string",
"gameID": "string",
"sessionID": "string",
"returnURL": "string",
"currency": "string",
"locale": "string",
"platform": "desktop",
"demo": true,
"user": {
"id": "string",
"firstName": "string",
"lastName": "string",
"nickName": "string",
"country": "string"
}
}