English
Product Documentation1688 APITaobao/Tmall API
Product Documentation1688 APITaobao/Tmall API
中文
  1. 1688 Order Manage
  • 1688 Solution Introduction
  • 1688 Product Search
    • Image upload By Get
      GET
    • Image upload By Post
      POST
    • Image search
      GET
    • keyword search
      GET
    • Product details search
      GET
  • 1688 Order Manage
    • Preview order
      POST
    • Create order
      POST
    • Cancel order
      POST
    • View order details
      POST
    • Buyer confirms receipt
      POST
  • 1688 Oder Pay
    • Get payment links for orders in batches
      GET
    • Initiate password-free payment
      POST
  • 1688 Message Service
    • 1688 Message Service
  1. 1688 Order Manage

Cancel order

POST
/alibaba/trade/cancel
The buyer or seller cancels the transaction. Note that only transactions with a specific status can be canceled. 1688 can be used to cancel unpaid orders.

Request

Header Params
api_key
string 
optional
Body Params application/json
appKey
string 
required
大吉平台appKey
appSecret
string 
required
秘钥,仅调试使用,正式用sign签名
webSite
string 
required
站点信息,指定调用的API是属于国际站(alibaba)还是1688网站(1688)
orderId
string 
required
交易ID,订单号
cancelReason
string 
required
原因描述
remark
string 
required
备注
Example
{
  "appKey": "",
  "appSecret": "",
  "webSite": "1688",
  "orderId": "2257164624870311973",
  "cancelReason": "buyerCancel",
  "remark": "取消订单备注"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://openapi.dajisaas.com/alibaba/trade/cancel' \
--header 'api_key;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "appKey":"",
	"appSecret":"",
    "webSite": "1688",
    "orderId": "2257164624870311973",
    "cancelReason": "buyerCancel",
    "remark": "取消订单备注"
}'

Responses

🟢200成功
application/json
Body
code
integer 
required
返回码
message
string 
required
消息
data
object 
required
业务数据
success
boolean 
required
成功标记
errorCode
null 
required
错误码
errorMessage
null 
required
错误消息
timestamp
integer 
required
时间戳
traceId
string 
required
traceId
Example
{
  "code": 200,
  "message": "操作成功",
  "data": {
    "success": true,
    "errorCode": null,
    "errorMessage": null
  },
  "timestamp": 1723620684182,
  "traceId": "1acbe76d3459"
}
Previous
Create order
Next
View order details
Built with