/
玩家上分
玩家上分
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",
}
, multiple selections available,