1. 订单相关
Shanjing Ecommerce Api
latest
  • latest
  • 🇺🇸 English
  • 接入指南
    • 平台概述
    • 成为开发者
  • 淘宝&天猫 API
    • 鉴权
      • 获取 Token
      • 刷新 Token
    • 商品相关
      • 获取淘宝/天猫商品详情接口
      • 淘宝/天猫商品关键词搜索接口
      • 淘宝/天猫图片搜索同款商品接口
      • 上传图片到淘宝/天猫用于图搜商品
    • 订单相关
      • 淘宝/天猫撞库接口
        GET
      • 淘宝/天猫预创建订单接口
        POST
      • 淘宝/天猫正式创建订单接口
        POST
      • 淘宝/天猫取消订单接口
        POST
      • 淘宝/天猫查询订单接口
        GET
  1. 订单相关

淘宝/天猫取消订单接口

POST
/rest/taobao-global/purchase/order/asyn/cancel
创建订单接口,可通过该接口可自动取消淘宝订单。

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Body Params application/json

Example
{
    "purchase_id": "436353536",
    "sub_purchase_orderId_list": [
        "657574757"
    ],
    "cancel_reason": "不想采购了",
    "cancel_remark": "不想要了,mark一下"
}

Request Code 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 'https://ecommerce-api.shanjing-inc.com/rest/taobao-global/purchase/order/asyn/cancel' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "purchase_id": "436353536",
    "sub_purchase_orderId_list": [
        "657574757"
    ],
    "cancel_reason": "不想采购了",
    "cancel_remark": "不想要了,mark一下"
}'

Responses

🟢200成功
application/json
Bodyapplication/json

Example
{
    "success": true,
    "errorCode": "string",
    "errorMsg": "string"
}
🟢200接口异常错误
Modified at 2026-03-14 05:37:03
Previous
淘宝/天猫正式创建订单接口
Next
淘宝/天猫查询订单接口
Built with