借记卡() API

此 API 请求从玩家的余额中扣除货币金额。 每次玩家玩游戏时都会触发。 响应将包含任何借记金额的信息和详细信息。

借记()请求

类型输入
HTTP 方法POST
API URLhttps://<API_BASE_URL> /debit
标题"Content-Type": "application/json"
POST参数json对象 eg:
{
    "token": "cc918a3e4dea45ef5c31d6e3b9dce4afed3c02eb",
    "account_id": "259823",
    "amount": 100,
    "amount_type": "real",
    "currency": "GBP",
    "game_id": 1,
    "transaction_id": "123456",
    "round_id": 198909,
    "game_type": "slots",
    "game_name": "testgamename",
    "note": "debit",
    "bonus_id": "test2147hff"
}
参数类型描述
tokenString分配给每个玩家的唯一字符串(会话 ID)
account_idString玩家账号
金额 code>整数从玩家钱包中扣除的金额。
amount_typeString表示金额类型。 可以是real / promo_freespin。
currencyString玩家的货币
game_idInteger< /code>游戏唯一ID
transaction_idString交易唯一id
round_id 整数每次游戏/旋转的回合 ID
game_typeString游戏类型。老虎机/桌上游戏/刮刮卡/宾果游戏
game_nameString游戏名称
noteString< /code>关于借记请求的额外信息t
bonus_id String提供商将发送与促销免费旋转相关的奖金/活动 ID。 当它发送时它将为空处于实模式。

Debit() 响应 + 示例

{ "status": 0, "account_id": "123123", "country": "US", "token": "3c2ef39d02581e2db3ddf6c713e83e05", "balance": 12345, "currency": "USD", "transaction_id": "205354854449856", "bonus_amount": "10" }
响应对象中的对象/键类型描述
状态Integer响应状态
account_idString玩家账号。
countryString玩家国家
tokenString分配给每个玩家的唯一字符串(会话 ID)。
balanceInteger玩家余额
currencyString货币播放器
transaction_idString 借记交易 ID
bonus_amount整数玩家钱包中可用的奖金数额。 如果此金额不可用,请发送 0 值。