- 1688 开发人员参考
- 1688 商品搜索
- 1688 订单管理
- 1688 订单支付
- 1688 其他接口
- 1688 消息说明
取消订单
POST
/alibaba/trade/cancel
宠物
请求参数
Body 参数application/json
appKey
string
必需
appSecret
string
必需
webSite
string
必需
tradeID
string
交易ID,订单号
cancelReason
string
原因描述
remark
string
备注
示例
{
"appKey": "",
"appSecret": "",
"webSite": "1688",
"orderId": "2257164624870311973",
"cancelReason": "buyerCancel",
"remark": "取消订单备注"
}
示例代码
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://openapi.dajisaas.com/alibaba/trade/cancel' \
--header 'Content-Type: application/json' \
--data-raw '{
"appKey":"",
"appSecret":"",
"webSite": "1688",
"orderId": "2257164624870311973",
"cancelReason": "buyerCancel",
"remark": "取消订单备注"
}'
返回响应
🟢200成功
application/json
Body
code
integer
返回码
message
string
消息
data
object
业务数据
success
boolean
成功标记
errorCode
null
错误码
errorMessage
null
错误消息
timestamp
integer
时间戳
traceId
string
traceId
示例
{
"code": 200,
"message": "操作成功",
"data": {
"success": true,
"errorCode": null,
"errorMessage": null
},
"timestamp": 1723620684182,
"traceId": "1acbe76d3459"
}
