取消订单
接口概述
该接口用于取消订单。
POST /api/v3/platform/order/cancel
请求参数
| 名称 | 类型 | 必填 | 示例值 | 描述 |
|---|---|---|---|---|
| tradeID | Long | 是 | 123456 | 交易id,订单号 |
| cancelReason | String | 是 | buyerCancel | 取消原因;buyerCancel: 买家取消订单;sellerGoodsLack: 卖家库存不足;其他原因请用other |
| remark | String | 否 | 备注 | 备注信息 |
返回参数
| 名称 | 类型 | 描述 | 示例值 |
|---|---|---|---|
| code | Integer | 返回状态码 | 0 |
| result | Boolean | 返回结果 | true |
| message | String | 返回描述 | “success” |
| data | Object | 返回数据 | - |
示例请求
{"tradeID": "202711458975969812","cancelReason": "other","remark": "取消订单"}
示例返回
{"code": 0,"result": true,"message": "success","data": {}}
