特别说明:

  1. 在调用代付接口时,可能会遇到网络超时或未知异常(接口返回 code=5000),此时业务处理结果是未知的,需要稍后查询代付订单接口,获取订单最新状态。
  2. 如果网络超时可以在2分钟后重试。

请求URL

  • https://gateway.pay247.io/gateway/payout/create

请求方式

  • POST

请求参数

参数名必选类型说明
mch_idstring商户号
mch_order_nostring商户订单号
currencystring通道编码
amountstring订单金额,单位元,两位小数
pay_methodstring支付方式,如:BANK
account_namestring收款人开户名
account_nostring收款人账号:如gcash、grabpay, 支付宝、微信账号、银行账号
bank_codestring【选填】【银行卡渠道】银行代码
bank_branchstring【选填】【银行卡渠道】支行信息
notify_urlstring异步通知地址,也可以自行使用定时查询的方式
timestampstringunix时间戳
versionstring接口版本: v1.0
uuidstring请求ID: 550e8400-e29b-41d4-a716-446655440000
signstring最后追加的签名

返回参数data说明

参数名必选类型说明
mch_idstring商户号
mch_order_nostring商户订单号
order_nostring平台订单号
currencystring订单币种
amountstring订单金额
feestring手续费
statusstring订单状态,PENDING:等待支付; DEALING:处理中;CLOSED:订单超时关闭; SUCCESS:转账成功;FAIL:失败;
paid_atstring支付成功时,返回支付时间
errorstring支付失败时的错误信息

返回示例

{
    "code": 0,
    "message": "Success",
		"timestamp": 1594099906123,
		"uuid": "7eb3c9e-5a1d-4a19-be2a-c80eac39830a",
    "data": {
        "mch_id": "X3DSKDKII2343",
        "mch_order_no": "R898543254325432",
        "order_no": "202007070427475133333",
        "currency": "USD",
        "amount": "99.11",
    		"status": "PENDING",
        "fee": "3.60",
        "paid_at": 1594223431233,
        "error": ""
    }
}

印度(INR)代付请求参数说明

参数名必选类型说明
mch_idstring商户号
mch_order_nostring商户订单号
currencystring订单币种 PHP
amountstring订单金额,单位元,两位小数
pay_methodstring支付方式,填 BANK
account_nostring收款人账号:如gcash、grabpay,银行账号
bank_codestring银行IFSC
notify_urlstring异步通知地址,也可以自行使用定时查询的方式
timestampstringunix时间戳
versionstring接口版本: v1.0
uuidstring请求ID: 550e8400-e29b-41d4-a716-446655440000
signstring最后追加的签名

菲律宾比索(PHP)代付请求参数说明

参数名必选类型说明
mch_idstring商户号
mch_order_nostring商户订单号
currencystring订单币种 PHP
amountstring订单金额,单位元,两位小数
pay_methodstring支付方式 固定 BANK
account_nostring收款人账号:如gcash、grabpay,银行账号
bank_codestring银行代码
notify_urlstring异步通知地址,也可以自行使用定时查询的方式
timestampstringunix时间戳
versionstring接口版本: v1.0
uuidstring请求ID: 550e8400-e29b-41d4-a716-446655440000
signstring最后追加的签名