取消订单
撤销之前下的未完成订单,每次最多可撤50个单。
HTTP请求
- POST
/api/v1/private/order/cancel
接口权限要求: 交易下单
请求参数
| 参数名 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
| orderIds | List<Long> | true | 订单id列表,最大50条 |
返回参数
公共参数,success: true成功,false失败
响应
{
"success":true,
"code":0,
"data":[
{
"orderId":101716841474621953,
"errorCode":2040,
"errorMsg":"order not exist"
},
{
"orderId":108885377779302912,
"errorCode":2041,
"errorMsg":"order state cannot be cancelled"
},
{
"orderId":108886241042563584,
"errorCode":0,
"errorMsg":"success"
}
]
}