创建代付
请求地址
method | url |
---|---|
POST | /api/pay/payout/create/v1 |
头部信息(header)
header参数 | 入参参数描述 |
---|---|
timestamp | 请求时间戳 |
nonce | 随机值 |
country | ID |
app_code | app编号 |
请求参数
字段 | 类型 | 必需 | 最大长度 | 描述 |
---|---|---|---|---|
merchantOrderNo | String | yes | 32 | 商户订单号 |
amount | String | yes | 20 | 代付金额,印尼盾,整数 |
bankCode | String | yes | 50 | 银行编码 |
bankName | String | yes | 50 | 银行名称 |
accountType | Int | yes | 501:BankTransfer | |
bankAccount | String | yes | 255 | 收款账号 |
realName | String | yes | 255 | 用户姓名 |
phone | Stirng | yes | 13 | 电话号码 08开头,10~13位 |
Stirng | yes | 64 | 用户邮箱 | |
callbackUrl | String | no | 200 | 代付回调地址,若不传, 则以商户配置为准 |
sign | String | yes | 签名 |
{ "merchantOrderNo": "OrderNoExample", "realName": "TeemoPay", "bankCode": "0001", "bankName": "Bank Mandiri", "accountType": 501, "bankAccount": "1234567890123456", "amount": "10000", "callbackUrl": "https://www.callbackexample.com", "sign": "YOUR SIGN", "phone": "0800000000", "email": "TeemoPay@example.com"}
返回参数
参数 | 类型 | 必需 | 长度 | 描述 |
---|---|---|---|---|
merchantOrderNo | String | yes | 32 | 商户订单号 |
tradeNo | String | yes | 平台订单号 | |
status | Int | yes | 代付状态,1:支付中 3:失败(可以重新发起) | |
amount | String | yes | 交易金额 |
{ "msg": "success", "traceId": "747bbf80261844ed85b809212aab0d81.85.17422898158610298", "code": 200, "data": { "amount": "10000.00", "merchantOrderNo": "OrderNoExample", "status": 1, "tradeNo": "TF2501010001ID0000000000000000" }}
{ "code": 425, "data": null, "msg": "Insufficient merchant balance", "traceId": "747bbf80261844ed85b809212aab0d81.85.17422898158610298"}