Skip to content

Get Game Start Url

INFO

Whenever a player wants to play a game, Merchant Server should make a request to GamingPanda Server with proper user and game information, and GamingPanda Server will return parameters needed for a game client to start.

Request Method

ItemNameSample
PathPath{Api_Address}/game/start
Request MethodPOST

Request Parameters

NameTypeRequiredDescription
Sign ParamsYView details
game_idintNGame Id
game_codestringYThe index of game data
user_idstringYUser Unique Identifier
currencystringYCurrency
langstringYLanguage Displayed for the game
usernamestringYuser name
client_ipstringYrequest ip
versionstringYVersion number, default 1.1
variant_idintNAI generated variant Id; only effective for games that support AI variants

Version field description recommends using version 1.1 directly

  • Version 1.1

    Version 1.1 integrates credit and settlement into the credit_n_settle interface Use this version calling sequence debit->credit_n_settle

  • Version 1.0

    Use this version calling sequence debit->credit->settle

Return Parameters

NameTypeRequiredDescription
codeintY
msgstringYMessage for debug
dataarrayYBody
data.user_tokenstringYPlayer Request Credential
data.game_urlstringYReturn game url if it is an H5 game
data.game_configJson stringYGame Config

Sample

Http Request
    Post Method
    URL : /game/start?mid=1697028447&sign=ac304cdd3e4f3ad98bb08a52e8b1e40cc76303fcf9aa72558368ff1c8e35be52&ts=1713768205 
    {"game_code":"gp_classic_4","currency":"PHP","user_id":"jUhNj+meQ16inuksiKj0zR88","lang":"en","username":"User9243735337","client_ip":"210.21.98.36","version":"1.1"}


Http Response(success)
    {
    "code": 0,
    "msg": "",
    "data": {
        "user_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbiI6Ik92Tm11Z0xPaVlYWkx0Z29GRnVtZ0l4aXRXV1ZoZUJIIiwidGFnIjoiIiwidXNlcl9pZCI6IjY0ZDljMmM5ZTMzOTYyOTM3OGU1YmQ1MiIsIm1lcmNoYW50X2lkIjoibTIiLCJnYW1lX2lkIjoiNyIsImN1cnJlbmN5IjoiTVhOIiwiZXhwIjoxNjk0MzEwMTUzfQ.ZQJnnJr-WLfdyajWBxNf3iy_NuGzWk6F_OfZxW2pJGs",
        "game_url": "",
        "game_config": "{\"user_token\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbiI6Ik92Tm11Z0xPaVlYWkx0Z29GRnVtZ0l4aXRXV1ZoZUJIIiwidGFnIjoiIiwidXNlcl9pZCI6IjY0ZDljMmM5ZTMzOTYyOTM3OGU1YmQ1MiIsIm1lcmNoYW50X2lkIjoibTIiLCJnYW1lX2lkIjoiNyIsImN1cnJlbmN5IjoiTVhOIiwiZXhwIjoxNjk0MzEwMTUzfQ.ZQJnnJr-WLfdyajWBxNf3iy_NuGzWk6F_OfZxW2pJGs\",\"currency\":\"MXN\",\"lang\":\"en\",\"ws_url\":\"wss://gatetcpsrv.office.coinmoney.xyz/ws\"}"
    }
}