- 淘宝
- 1688
- 商品
- 购物车
- 订单
- 售后
- 消息回调
- 基础
- 仓库物流
支付前取消订单接口
POST
/v2/alibaba/order/cancel
请求参数
Header 参数
access-key
string
必需
默认值:
your-access-key
timestamp
string
必需
默认值:
your-timestamp
user-id
string
必需
默认值:
your-user-id
signature
string
必需
默认值:
your-signature
Body 参数application/json
webSite
string
必需
orderId
integer
必需
cancelReason
string
取消原因
remark
string
备注
示例
{
"webSite": "1688",
"orderId": 2542285634920880600,
"cancelReason": "不想要了"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/v2/alibaba/order/cancel' \
--header 'access-key;' \
--header 'timestamp;' \
--header 'user-id;' \
--header 'signature;' \
--header 'Content-Type: application/json' \
--data-raw '{
"webSite": "1688",
"orderId": 2542285634920880794,
"cancelReason": "不想要了"
}'
返回响应
🟢200成功
application/json
Body
requestId
string
请求ID
code
integer
返回码
developId
integer
开发者ID
msg
string
返回码对应信息
data
boolean
返回内容
示例
{
"requestId": "0d1de79d9f4540308d14c558f86cb3da",
"code": 200,
"developId": "1110890638347337996",
"msg": "成功",
"data": true
}
修改于 2025-04-24 09:35:15