商户买币订单查询

此接口用于开发者代表商户向开放平台请求,希望查询商户买币订单的状态。

请求地址

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

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

请求方式

POST

请求参数

名称

是否必填

长度

类型

说明

appid

64

String

授权appid

orderid

64

String

开发者系统订单id

sign

64

String

加密结果值

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

curl 'http://www.666otc.com/api/merchant/buyOrderStatus' \
  -H 'Content-Type: application/json;charset=UTF-8' \
  --data-raw '{"appid": "666666",\
  "orderid":"10011",\    
  "sign":"84336629F874E793035255E12E88"}'                  

响应参数

名称

子项

是否

必填

长度

类型

说明

示例值

status

--

Integer

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

0

data

--

Object

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

status

--

String

买单状态:

1: 等待用户付款

2: 等待交易员确认

3: 完成

4: 超时取消

5: 用户取消

6: 管理员取消

orderid

--

String

开发者系统订单id

total_price

--

String

交易金额

amount

--

String

usdt数量

成功应答示例如下:

{
	"data":{"status":"1","orderid":"10011","total_price":"10.13","amount":"1.71"},
	"status":1
}  

失败应答示例如下:

{
	"err":"提交失败",
	"status":0
}  

应答结果编码

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

错误码

说明

1

平台处理成功

0

平台处理失败

Last updated

Was this helpful?