English
Product Documentation1688 APITaobao/Tmall API
Product Documentation1688 APITaobao/Tmall API
中文
  1. Taobao / Tmall Order Manage
  • Taobao / Tmall Product Search
    • Image upload By Get
      GET
    • Image upload By Post
      POST
    • Image search
      GET
    • keyword search
      GET
    • shop search
      GET
    • Product details search
      GET
    • Product Logistics Price Get
      GET
    • Hot list type search
      GET
    • List product search
      GET
    • Product Logistics Price Post
      POST
    • Image search2
      GET
  • Taobao / Tmall Order Manage
    • Product Bunker interface(撞库)
      GET
    • Preview order
      POST
    • Create order
      POST
    • Cancel order
      POST
    • View order details
      POST
  • Taobao / Tmall Order Pay
    • Pay order
      POST
  • Taobao / Tmall Message
    • Message Type
  1. Taobao / Tmall Order Manage

Cancel order

POST
/taobao/purchase/order/asyn/cancel
Order cancellation interface, through which Taobao orders can be automatically canceled.

Request

Body Params application/json
appKey
string 
required
大吉平台appKey
appSecret
string 
required
秘钥,仅调试使用,正式用sign签名
purchase_id
string 
required
调用创建订单接口时,返回的主订单号purchase_id
sub_purchase_orderId_list
array[string]
required
调用创建订单接口时,返回的子订单号sub_purchase_order_id,该字段为空则表示只按主单取消, 该字段不为空则表示按子单取消
cancel_reason
string 
required
取消原因
cancel_remark
string 
required
备注
Example
{
  "appKey": "",
  "appSecret": "",
  "purchase_id": "200049962700",
  "sub_purchase_orderId_list": [
    "200049962701"
  ],
  "cancel_reason": "取消的原因",
  "cancel_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/taobao/purchase/order/asyn/cancel' \
--header 'Content-Type: application/json' \
--data-raw '{
    "appKey": "",
    "appSecret": "",
    "purchase_id": "200049962700",
    "sub_purchase_orderId_list": ["200049962701"],
    "cancel_reason": "取消的原因",
    "cancel_remark": "备注"
}'

Responses

🟢200成功
application/json
Body
code
integer 
required
返回码
message
string 
required
消息
data
object 
required
业务数据
code
string 
required
返回码
success
boolean 
required
是否成功
requestId
string 
required
errorCode
null 
required
错误码
TraceId
string 
required
errorMsg
null 
required
错误消息
timestamp
integer 
required
时间戳
traceId
string 
required
traceId
Example
{
  "code": 200,
  "message": "操作成功",
  "data": {
    "code": "0",
    "success": true,
    "requestId": "2140f4a217231955990844284",
    "errorCode": null,
    "TraceId": "2140e7c617231955990811790e0deb",
    "errorMsg": null
  },
  "timestamp": 1723195600231,
  "traceId": "620d55d39363"
}
Previous
Create order
Next
View order details
Built with