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

淘宝/天猫预创建订单接口

POST
/rest/taobao-global/purchase/order/render
正式下单前需要先调用这个接口,接口会返回哪些商品能采购、哪些商品不能采购,以及准确的价格与中国段运费。

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
{
    "need_supplychain_service": true,
    "render_item_List": "[{\"itemId\":600120680003951077,\"quantity\":\"1\",\"skuId\":4951323355633,\"chooseSupplychainServices\":[{\"optionId\":354,\"serviceCategory\":\"LOGISTICS\"},{\"optionId\":356,\"serviceCategory\":\"QUALITY_INSPECTION\"},{\"optionId\":357,\"serviceCategory\":\"ADVANCED_QUALITY_INSPECTION\"}]}]",
    "warehouse_address": {
        "zip": "11111",
        "country": "中国",
        "address": "小王新村",
        "phone": "",
        "city": "杭州市",
        "mobile_phone": "15432456575",
        "district": "余杭区",
        "name": "a测试aa",
        "state": "浙江省"
    },
    "receiver_address": {
        "zip": "11111",
        "country": "United States",
        "address": "The State University of New York College at Buffalo",
        "phone": "",
        "city": "Buffalo",
        "mobile_phone": "150",
        "district": "",
        "name": "a测试aa",
        "tax_id": "1231233",
        "state": "New York"
    }
}

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/render' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "need_supplychain_service": true,
    "render_item_List": "[{\"itemId\":600120680003951077,\"quantity\":\"1\",\"skuId\":4951323355633,\"chooseSupplychainServices\":[{\"optionId\":354,\"serviceCategory\":\"LOGISTICS\"},{\"optionId\":356,\"serviceCategory\":\"QUALITY_INSPECTION\"},{\"optionId\":357,\"serviceCategory\":\"ADVANCED_QUALITY_INSPECTION\"}]}]",
    "warehouse_address": {
        "zip": "11111",
        "country": "中国",
        "address": "小王新村",
        "phone": "",
        "city": "杭州市",
        "mobile_phone": "15432456575",
        "district": "余杭区",
        "name": "a测试aa",
        "state": "浙江省"
    },
    "receiver_address": {
        "zip": "11111",
        "country": "United States",
        "address": "The State University of New York College at Buffalo",
        "phone": "",
        "city": "Buffalo",
        "mobile_phone": "150",
        "district": "",
        "name": "a测试aa",
        "tax_id": "1231233",
        "state": "New York"
    }
}'

Responses

🟢200成功
application/json
Bodyapplication/json

Example
{
    "result": {
        "innerErrorMsg": "string",
        "data": {
            "renderItemList": [
                {
                    "nick": "string",
                    "itemPriceInfos": [
                        {
                            "itemId": 0,
                            "originPrice": {
                                "amount": 0,
                                "currency": "string"
                            },
                            "skuId": 0,
                            "quantity": 0,
                            "discountPrice": {
                                "amount": 0,
                                "currency": "string"
                            },
                            "dispatchPlace": "string",
                            "estimatedDeliveryTime": "string",
                            "currencyCode": "string",
                            "deliveryFee": "string"
                        }
                    ],
                    "sellerId": 0,
                    "mainlandShippingFee": {
                        "amount": 0,
                        "currency": "string"
                    },
                    "orderFee": {
                        "amount": 0,
                        "currency": "string"
                    },
                    "chooseSupplyChainServices": [
                        {
                            "shippingFee": {
                                "amount": 0,
                                "currency": "string"
                            },
                            "name": "string",
                            "description": "string",
                            "optionId": 0,
                            "isMustSelect": true,
                            "shippingTime": {
                                "mode": 0,
                                "min": 0,
                                "max": 0
                            },
                            "serviceCategory": "string"
                        }
                    ]
                }
            ],
            "unavailableSkuList": [
                {
                    "itemId": 0,
                    "skuId": 0,
                    "reason": "string",
                    "errorCode": "string",
                    "errorMsg": "string"
                }
            ],
            "totalRealPayPrice": {
                "amount": 0,
                "currency": "string"
            }
        },
        "success": true,
        "failItems": "string",
        "errorCode": "string",
        "errorMsg": "string"
    }
}
🟢200接口异常错误
Modified at 2026-03-14 05:37:03
Previous
淘宝/天猫撞库接口
Next
淘宝/天猫正式创建订单接口
Built with