发起代付

说明

发起代付订单

接口地址

POST https://api.tokenpay.me/v1/payanother/payment

接口参数

名称
位置
类型
必选
说明

app_id

body

string

应用 ID,示例值:8e4b8c2e7cxxxxxxxx1a1cbd3d59e0bd

mch_id

body

string

商户 ID,示例值:12345678

description

body

string

描述,示例值:1234567890

out_trade_no

body

string

商户订单号(out_trade_notransaction_id至少传一个)

amount

body

string

代付金额

chain

body

string

所属公链,示例值:TRONETHEREUMBSC查看支持公链

currency

body

string

币种,示例值:TRXUSDTETH查看支持币种

to_address

body

string

收款钱包

attach

body

string

自定义参数,在查询 API 和支付通知中原样返回,可作为自定义参数使用,实际情况下只有支付完成状态才会返回该字段

notify_url

body

string

回调地址,示例值:https://xxx/xxx 建议使用 https

说明

app_id 可通过商户后台创建应用获取。

接口返回

名称
类型
必选
说明

code

integer

true

msg

string

true

状态说明

request_id

string

true

返回示例

代码示例

Last updated