商户发起提币请求

此接口用于商户发起提币请求。

请求地址

沙盒环境: http://sandboxwww.666otc.com/api/merchant/withdraw

生产环境: http://www.666otc.com/api/merchant/withdraw

请求方式

POST

请求参数

名称
是否必填
长度
类型
说明

名称

是否必填

长度

类型

说明

type

16

String

类型,TRC20 or ERC20

address

128

String

提取地址

num

16

String

数量

notify_url

128

String

回调地址

remark

128

String

备注

appid

64

String

appid

order_id

64

String

商户传入的自身平台交易号

sign

64

String

加密结果值

(以curl命令请求生产环境接口为例)示例如下:

curl --location --request POST 'http://127.0.0.1:8000/api/merchant/withdraw' \
--header 'Content-Type: application/json' \
--data-raw '{
"type":"TRC20",
"address":"123",
"num":"120",
"remark":"remark",
"order_id":"119020",
"notify_url":"notify_url",
"appid":"VlYIRyIaTFxztSgL",
"sign":"5F000724121B19B61C377E3EACC0896208DC8866"
}'               

响应参数

名称

子项

是否

必填

长度

类型

说明

示例值

status

--

Integer

请参考本页"应答结果编码"部分

0

data

--

Object

接口返回值json串,具体见业务响应参数

num

--

String

数量

fee

--

String

手续费

order_no

--

String

订单号

成功应答示例如下:

{
    "status": 1,
    "data": {
        "num": "300",
        "fee": 6,
        "order_no": "M4TA115358843375PS460"
    }
}

失败应答示例如下:

{
	"err":"签名错误",
	"status":0
}  

应答结果编码

开发者在调用开放平台接口的时候,相关错误码请参考如下:

错误码

说明

1

平台处理成功

0

平台处理失败

Last updated

Was this helpful?