- 授权
- 商品
- 地址
- 价格
- 库存
- 订单
- 售后
- 物流
- 发票
- 类目
- 员工
8.3 取消订单
POST
/api/v2/Order/cancel
NewOrder
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Header 参数
channel
string
可选
默认值:
benlai
shopId
string
商城id
默认值:
123
Body 参数application/json
out_trade_no
string
三方单号
>= 8 字符<= 32 字符
示例
{
"out_trade_no": "OT177886655443399544"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://open-agent-branch.benlai.com/api/v2/Order/cancel' \
--header 'channel: benlai' \
--header 'shopId: 123' \
--header 'Content-Type: application/json' \
--data-raw '{
"out_trade_no": "OT177886655443399544"
}'
返回响应
🟢200成功
text/plain
Body
isClose
boolean
是否成功
示例
{
"code": 0,
"msg": "success",
"value": {
"isClose": true
}
}