1. Order Related
Shanjing Ecommerce Api
🇺🇸 English
  • latest
  • 🇺🇸 English
  • Access Guide
    • Platform Overview
    • Become a Developer
  • Taobao & Tmall API
    • Authentication
      • Obtain Token
      • Refresh Token
    • Product Related
      • Taobao/Tmall Product Details API
      • Taobao/Tmall Product Keyword Search Interface
      • Taobao/Tmall Image Search for Similar Products Interface
      • Upload image to Taobao/Tmall for product search
    • Order Related
      • Taobao/Tmall Collision Database Interface
        GET
      • Taobao/Tmall Pre-create Order Interface
        POST
      • Taobao/Tmall Order Cancellation Interface
        POST
      • Taobao/Tmall Official Order Creation Interface
        POST
      • Taobao/Tmall Order Query Interface
        GET
  1. Order Related

Taobao/Tmall Official Order Creation Interface

POST
/rest/taobao-global/purchase/order/create
Order creation interface, through which Taobao orders can be automatically generated. Before calling the order creation interface, please first call the database collision interface
order_line_list field parameter description:
1.
productId is the original id of the product,
2.
itemId uses the mpId returned by the database collision interface,
3.
skuId uses the mpSkuid returned by the database collision interface.

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
{
    "outer_purchase_id": "CG2553453224",
    "purchase_amount": 443,
    "seller_order_number": "-",
    "order_source": "lazada",
    "order_line_list": "[{\"itemId\":600068435000185140,\"orderLineNo\":\"1\",\"quantity\":\"3\",\"price\":23,\"currency\":\"USD\",\"title\":\"测试商品1\",\"orderRemark\":\"子单维度备注\",\"skuId\":4683815098027}]",
    "receiver": {
        "zip": "11111",
        "country": "中国",
        "address": "测试地址",
        "city": "杭州市",
        "phone": "",
        "mobile_phone": "15068763421",
        "district": "余杭区",
        "name": "a测试aa",
        "state": "浙江省"
    },
    "warehouse_address_info": {
        "zip": "11111",
        "country": "中国",
        "address": "测试地址",
        "city": "杭州市",
        "phone": "",
        "mobile_phone": "15068763421",
        "district": "余杭区",
        "name": "a测试aa",
        "state": "浙江省"
    },
    "channel_order_type": "PANAMA",
    "support_partial_success": false,
    "order_remark": "-",
    "need_supply_chain_service": false,
    "need_sys_retry": false
}

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/create' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "outer_purchase_id": "CG2553453224",
    "purchase_amount": 443,
    "seller_order_number": "-",
    "order_source": "lazada",
    "order_line_list": "[{\"itemId\":600068435000185140,\"orderLineNo\":\"1\",\"quantity\":\"3\",\"price\":23,\"currency\":\"USD\",\"title\":\"测试商品1\",\"orderRemark\":\"子单维度备注\",\"skuId\":4683815098027}]",
    "receiver": {
        "zip": "11111",
        "country": "中国",
        "address": "测试地址",
        "city": "杭州市",
        "phone": "",
        "mobile_phone": "15068763421",
        "district": "余杭区",
        "name": "a测试aa",
        "state": "浙江省"
    },
    "warehouse_address_info": {
        "zip": "11111",
        "country": "中国",
        "address": "测试地址",
        "city": "杭州市",
        "phone": "",
        "mobile_phone": "15068763421",
        "district": "余杭区",
        "name": "a测试aa",
        "state": "浙江省"
    },
    "channel_order_type": "PANAMA",
    "support_partial_success": false,
    "order_remark": "-",
    "need_supply_chain_service": false,
    "need_sys_retry": false
}'

Responses

🟢200success
application/json
Bodyapplication/json

Example
{
    "success": true,
    "errorCode": "string",
    "errorMsg": "string",
    "data": {
        "paymentUrl": "string",
        "outerPurchaseId": "string",
        "success": true,
        "errorMessage": "string",
        "errorCode": "string",
        "orderList": [
            {
                "estimateCurrency": "string",
                "orderLineList": [
                    {
                        "itemId": "string",
                        "orderLineNo": "string",
                        "quantity": 0,
                        "estimateAmount": 0,
                        "subPurchaseOrderId": 0,
                        "estimateCurrency": "string",
                        "skuId": 0,
                        "supplierNick": "string"
                    }
                ],
                "purchaseId": 0,
                "supplierNick": "string",
                "estimateAmount": 0,
                "purchaseMarket": "string"
            }
        ]
    }
}
🟢200Failed
Modified at 2026-03-14 06:46:03
Previous
Taobao/Tmall Order Cancellation Interface
Next
Taobao/Tmall Order Query Interface
Built with