Skip to main content

GAP Seamless Wallet — Game API

These APIs are called by the Operator to GAP's server.

POST operator/login

Operator Login: POST /api/operator/login

To get authenticated with Games system and get the active session. Parameter should be in JSON format.

  • Request URL: https://dev-api.dreamdelhi.com/api/operator/login [POST]
  • Content-Type: application/json
  • Signature: byMYoU1abC/86EVvEbwNtumfgZnlbGaAwbeJ3qu668RCZRnkFv8B3fCRAzM9rDnDdjommrhK0B3BVmbpdCv6UzyY1avfxE2lbihvrF/LMkY4oKOyL8IJuGBbSLgzpI+hKYzcb+qD/En9ZAH0V4gNXh6RqI/XIgfWhB55zF9pBs4=

Request

ParameterTypeEnforceDescription
operatorIdStringYesoperatorId of the operator
userIdStringYesUser unique ID in operator system
platformIdStringYesDESKTOP/MOBILE
currencyStringYesCurrency of the user (fiat only: INR/HKD/BDT/AED/USD — no custom codes)
usernameStringYesUser friendly name in operator system
lobbyBooleanYesIf it is lobby or not: True/False
gameIdStringYesGame id of the game
clientIpStringYesIp address of the client
balanceFloat64YesCurrent User Balance (initial value — GAP calls /balance endpoint for real-time balance during gameplay)
redirectUrlStringYesoperator Redirect URL
subOperatorIdStringNoSub Operator Id
partnerIdStringNoPartner ID

Example: Sample Object of the data

{
OperatorId string `json:"operatorId"`
UserId string `json:"userId"`
PlatformId string `json:"platformId"`
Currency string `json:"currency"`
ClientIp string `json:"clientIp"`
Username string `json:"username"`
Lobby bool `json:"lobby"`
GameId string `json:"gameId"`
Balance float64 `json:"balance"`
SubOperatorId string `json:"subOperatorId"`
RedirectUrl string `json:"redirectUrl"`
PartnerId string `json:"partnerId"`
}

Response

ParameterTypeEnforceDescription
userIdStringYesUser unique ID in operator System
tokenStringYesToken created from GAP for each game session
urlStringYesRedirected URL to access the game UI
providerIdStringYesproviderId of the Game provider
providerNameStringYesproviderName of the Game provider
statusIntYesResponse Status message code
errorDescriptionStringYesDetailed Error Response Message

Example: Sample Object of the data

{
UserId string `json:"userId"`
OperatorToken string `json:"token"`
Url string `json:"url"`
ProviderId string `json:"providerId"`
ProviderName string `json:"providerName"`
Status int `json:"status"`
ErrorDescription string `json:"errorDescripion"`
}

Response Status and Error Description

Status IntegerDescription String
0Completed Successfully
1General Error
2Operator Signature Invalid
3OperatorId Invalid
4GameId Invalid
5Provider Details Invalid
6Token Not Created
7Provider Details not Found for Currency (ensure currency is a supported fiat code for the target provider)
8User Blocked (to Play Games)

Token Lifecycle: Tokens expire after 6 hours (hard timeout, user activity does not extend). Rollback/refund only comes from the game provider, NOT from GAP.

Example Request

curl --location 'https://dev-api.dreamdelhi.com/api/operator/login' \
--header 'Signature: byMYoU1abC/86EVvEbwNtumfgZnlbGaAwbeJ3qu668RCZRnkFv8B3fCRAzM9rDnDdjommrhK0B3BVmbpdCv6UzyY1avfxE2lbihvrF/LMkY4oKOyL8IJuGBbSLgzpI+hKYzcb+qD/En9ZAH0V4gNXh6RqI/XIgfWhB55zF9pBs4=' \
--data '{
"operatorId": "xyz",
"providerName": "EZUGI",
"gameId": "100066",
"userId": "xyz_user_id",
"username": "xyz_user_id",
"platformId": "desktop",
"lobby": false,
"clientIp": "13.41.207.164",
"currency": "INR",
"balance": 949.38,
"redirectUrl": "https://xyz.com"
}'

Example Response (200 OK)

{
"userId": "xyz_user_id",
"token": "f562a685-a160-4d17-876d-ab3363db331c",
"url": "https://the-best-game-provider.com/the-game?session=d4d73882-b3fb-11e7-a3a6-58404eea6d16",
"providerId": "xyz",
"status": 0,
"errorDescripion": "Completed Successfully"
}

POST operator/get-games-list

Games List: POST /api/operator/get-games-list

To get Games List provided by the GAP. Parameter should be in JSON format.

  • Request URL: https://dev-api.dreamdelhi.com/api/operator/get-games-list [POST]
  • Content-Type: application/json
  • Signature: byMYoU1abC/86EVvEbwNtumfgZnlbGaAwbeJ3qu668RCZRnkFv8B3fCRAzM9rDnDdjommrhK0B3BVmbpdCv6UzyY1avfxE2lbihvrF/LMkY4oKOyL8IJuGBbSLgzpI+hKYzcb+qD/En9ZAH0V4gNXh6RqI/XIgfWhB55zF9pBs4=

Request

ParameterTypeEnforceDescription
operator_idStringYesOperator Id of the Operator
pageIntNoPage Number
page_sizeIntNoPage Size

Example: Sample Object of the data

{
OperatorId string `json:"operator_id"`
ProviderName string `json:"provider_name"`
SubProviderName string `json:"sub_provider_name"`
Category string `json:"category"`
Page string `json:"page"`
PageSize string `json:"page_size"`
}

Response

ParameterTypeEnforceDescription
countIntYesTotal number of Games
dataGamesListYesGames List Structure
messageStringYesError Description
StatusIntYesStatus Code

GamesList

ParameterTypeDescription
game_idStringUnique Game Id
game_nameStringGame Name
categoryStringGame Category
provider_nameStringProvider Name
sub_provider_nameStringSub Provider Name
statusStringStatus of the Game
url_thumbStringThumbnail for Game
game_codeStringUnique Game Code

Example: Sample Object of the data

{
Count int `json:"count"`
data GamesList `json:"token"`
Message string `json:"message"`
Status int `json:"status"`
}

GamesList:

{
GameId string `json:"game_id"`
GameName string `json:"game_name"`
Category string `json:"category"`
ProviderName string `json:"provider_name"`
SubProviderName string `json:"sub_provider_name"`
Status string `json:"status"`
UrlThumb string `json:"url_thumb"`
GameCode string `json:"game_code"`
}

Example Request

curl --location 'https://dev-api.dreamdelhi.com/api/operator/get-games-list' \
--header 'Signature: byMYoU1abC/86EVvEbwNtumfgZnlbGaAwbeJ3qu668RCZRnkFv8B3fCRAzM9rDnDdjommrhK0B3BVmbpdCv6UzyY1avfxE2lbihvrF/LMkY4oKOyL8IJuGBbSLgzpI+hKYzcb+qD/En9ZAH0V4gNXh6RqI/XIgfWhB55zF9pBs4=' \
--data '{
"operator_id": "xyz",
"page": 1,
"page_size": 20
}'

Example Response

{
"count": 449,
"data": [
{
"game_id": "200000",
"game_name": "Peek Baccarat",
"category": "Live Baccarat",
"provider_name": "DC",
"sub_provider_name": "Evolution Gaming",
"status": "ACTIVE",
"url_thumb": "https://cdn.dreamcasino.live/evolution/evo_peekbaccarat.webp",
"game_code": "evo_peekbaccarat"
},
{
"game_id": "200138",
"game_name": "Super Sic Bo",
"category": "Live Games",
"provider_name": "DC",
"sub_provider_name": "Evolution Gaming",
"status": "ACTIVE",
"url_thumb": "https://cdn.dreamcasino.live/evo_supersicbo.webp",
"game_code": "evo_super_sic_bo"
},
{
"game_id": "200139",
"game_name": "Dragon Tiger",
"category": "Live Games",
"provider_name": "DC",
"sub_provider_name": "Evolution Gaming",
"status": "ACTIVE",
"url_thumb": "https://cdn.dreamcasino.live/evo_dragontiger.webp",
"game_code": "evo_dragon_tiger"
}
],
"message": "Success",
"status": 200
}