/
玩家上分

玩家上分

URl: https://{{gmag_api_url}}/payment/player/deposit?hash={{xxx}}。

方式:POST。

目的:用于给玩家账号上分/存款。


请求

参数名

类型

必选

参数说明

参数名

类型

必选

参数说明

playerId

String(24)

玩家的唯一标识

currency

String(4)

玩家货币

amount

numeric(16, 4)

存款金额,请舍弃末尾多余的0 例如1.00请写为1,1.30请写为1.3

extTransId

String(32)

交易号

playerBrandId

Int

玩家直属的代理,上级代理给下级代理玩家存款时需指定

providerCode

String(32)

如果该参数不为空,为玩家在转账钱包供应商处充值。

目前支持该参数的供应商有:mega888, ig, vrgaming

响应

参数名

类型

必选

参数说明

参数名

类型

必选

参数说明

playerId

String(24)

玩家的唯一标识

currency

String(4)

玩家货币

transId

String(64)

GM-Ag内部交易号

extTransId

String(32)

交易号

status

String(32)

交易状态(approved, declined, pending)

amount

numeric(16, 4)

交易金额

balance

numeric(16, 4)

结束后的余额

bonusBalance

numeric(16, 4)

玩家奖励余额

brandBalance

numeric(16, 4)

完成玩家上分后,代理的账户余额

transTime

DateTime

上分操作的时间

请求例子

{ "requestId": "requestId1234", "brandId": 1001, "playerId": "player1123", "currency": "CNY", "extTransId": "ehcxehxdafkjxndheadfafgesa", "amount": 100, “providerCode”:"vrg" }

响应例子

//success { "requestId": "requestId1234", "playerId": "player1123", "extTransId": "ehcxehxdafkjxndheadfafgesa", "transId": "xsdfagesafdafe", "currency": "CNY", "amount": 100, "balance": 100, "bonusBalance": 0, "status": "approved", "transTime": "2021-04-10 10:12:00.123Z", "error": "0", "message": "success", } //error { "requestId": "requestId1234", "error": "T_05", "extTransId": "ehcxehxdafkjxndheadfafgesa", "status": "declined", "message": "Brand insufficient Funds", }

 

Related content