Skip to content

资金转账

将资金转入或转出玩家在游戏商的钱包。

接口信息

属性
路径POST /papi/v1/player/transfer
认证Agent Token(Bearer)

请求参数

参数名类型必填说明
providerstring游戏商标识
operator_codestring运营商编码
currencystring货币代码
usernamestring玩家用户名
amountdecimal转账金额(正数 = 转入/充值,负数 = 转出/提现)
transfer_idstring转账唯一流水号(幂等性控制)
transfer_typestring转账类型:deposit(转入)/ withdraw(转出)

请求示例

json
{
  "provider": "BG",
  "operator_code": "OP001",
  "currency": "CNY",
  "username": "player_001",
  "amount": 500.00,
  "transfer_id": "TXN20260326001",
  "transfer_type": "deposit"
}

响应字段

字段类型说明
transfer_idstring转账流水号
usernamestring玩家用户名
amountdecimal实际转账金额
balance_beforedecimal转账前余额
balance_afterdecimal转账后余额
statusstring转账状态:success / failed / pending

响应示例

json
{
  "code": 0,
  "message": "success",
  "data": {
    "transfer_id": "TXN20260326001",
    "username": "player_001",
    "amount": 500.00,
    "balance_before": 1000.00,
    "balance_after": 1500.00,
    "status": "success"
  },
  "timestamp": 1711411200000,
  "request_id": "req_ghi789"
}

Seamless 钱包模式

SA 和 WM 采用 Seamless(无缝钱包)模式,资金变动通过游戏商回调自动完成,一般不需要主动调用转账接口。BG 和 GSC 支持主动转账模式。

游戏商映射

游戏商对应接口备注
BGopen.operator.user.transferJSON-RPC 2.0,正数充值/负数提现
GSCseamless/withdraw + seamless/deposit分离式接口,withdraw = 扣款,deposit = 入账
SASeamless 钱包模式通过回调自动处理,无需主动调用转账
WMSeamless 钱包模式通过 Webhook pointInout 自动处理

VCT Gaming Integration Platform