PandaPon OpenAPI
Product documentsAPI reference
English
  • 简体中文
  • Tiếng Việt
  • Español
Product documentsAPI reference
English
  • 简体中文
  • Tiếng Việt
  • Español
Back to PandaPon Website
  1. Order
  • Taobao
    • Goods
      • Taobao commodity picture search interface
      • Taobao product search interface
      • Batch query goods according to Taobao commodity id
      • Query goods according to Taobao commodity id
      • Taobao commodity inquiry
    • Order
      • Create an order
      • Paging to query the order list
      • Upload the payment voucher
      • Cancel the order
      • Modify the pre-warehouse information of the order
      • Pay for the order
      • Get the IM link
      • Get the order details according to the order ID
      • Get logistics details
    • After-sales service
      • Reverse single list query
      • Reverse single rendering interface
      • Return logistics rendering
      • Return logistics submission
      • Reverse order cancellation
      • Submit a message in reverse
      • Reverse order submission
      • Reverse single message list query
      • Reverse order modification
      • Reverse single query
    • Message callback
      • Order price modification and callback
      • Order status modification callback
      • After-sales refund of orders
    • Shopping cart
      • Create an order
      • Generate an order preview
      • List of shopping carts
      • Delete the shopping cart products
      • Add a shopping cart
      • Edit the quantity of goods
  • 1688
    • Goods
      • Commodity details inquiry
      • Convert and decrypt to Wangwang URL
      • Commodity keyword query
      • Commodity picture search
      • Commodity store search
      • Query multilingual categories according to category ID
      • Product recommendation inquiry
      • Related commodity inquiry
    • Order
      • Developers submit and pay 1688 orders in bulk
        POST
      • Preview data before creating an order (batch different merchants)
        POST
      • Create orders (different merchants)
        POST
      • Obtain the logistics tracking information of the order
        GET
      • Order list paging query
        POST
      • Preview data before creating an order
        POST
      • Create an order
        POST
      • Cancel the order before payment
        POST
      • Order payment
        GET
      • The buyer confirms the receipt of goods
        POST
    • After-sales service
      • Check the details of the after-sales order
      • Check the reason for refund and return (used to create refund and return)
      • Upload the refund and return voucher
      • Create a refund and return application
      • The buyer submits the refund information
      • List of logistics companies - all logistics companies
    • Message callback
      • Order price modification and callback
      • Order status modification interface
      • After-sales refund of 1688 orders
    • Shopping cart
      • Create an order
      • Delete the shopping cart products
      • Preview the data interface before creating an order
      • Edit the quantity of goods
      • Add a shopping cart
      • List of shopping carts
    • Marketing
      • Global strict selection
      • 1688 Strict Selection
      • Hot selling list
  • Foundations
    • Get user address information
      POST
    • Address addition and update
      POST
  • Warehouse logistics
    • Detailed overseas freight estimate
      POST
    • Preview of overseas freight for orders
      POST
    • Update domestic logistics information
      POST
    • Create international logistics orders
      POST
  1. Order

Preview data before creating an order

POST
/alibaba/order/create/preview
订单

请求参数

Header 参数
access-key
string 
必需
默认值:
58c0201dfdf148eca63cbf6bb5e7cf03
nonce-str
string 
可选
默认值:
nonce-str
timestamp
string 
必需
默认值:
1715669977082
user-id
string 
必需
默认值:
2100007341207
signature
string 
必需
默认值:
B7F83FE2ADC8D8F044F2E01F0FFE8C80
Body 参数application/json
addressParam
object 
收货地址信息
可选
fullName
string 
收货人姓名
必需
mobile
string 
手机号
必需
phone
string 
电话
必需
postCode
string 
邮编
必需
cityText
string 
市文本
必需
provinceText
string 
省份文本
必需
areaText
string 
区文本
必需
townText
string 
镇文本
必需
address
string 
街道地址
必需
cargoParamList
array [object {3}] 
商品信息不能为空
必需
offerId
integer 
商品ID
必需
specId
string 
商品规格id
必需
quantity
number 
必需
商品数量(计算金额用)
示例
{
    "addressParam": {
        "fullName": "string",
        "mobile": "string",
        "phone": "string",
        "postCode": "string",
        "cityText": "string",
        "provinceText": "string",
        "areaText": "string",
        "townText": "string",
        "address": "string"
    },
    "cargoParamList": [
        {
            "offerId": 0,
            "specId": "string",
            "quantity": 0
        }
    ]
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/alibaba/order/create/preview' \
--header 'access-key;' \
--header 'nonce-str: nonce-str' \
--header 'timestamp;' \
--header 'user-id;' \
--header 'signature;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "addressParam": {
        "fullName": "string",
        "mobile": "string",
        "phone": "string",
        "postCode": "string",
        "cityText": "string",
        "provinceText": "string",
        "areaText": "string",
        "townText": "string",
        "address": "string"
    },
    "cargoParamList": [
        {
            "offerId": 0,
            "specId": "string",
            "quantity": 0
        }
    ]
}'

返回响应

🟢200成功
application/json
Body
requestId
null 
请求ID
必需
code
integer 
返回码
必需
developId
null 
开发者ID
必需
msg
string 
返回码对应信息
必需
data
object 
必需
orderPreviewResuslt
array [object {14}] 
必需
订单预览结果,过自动拆单会返回多个记录
success
boolean 
是否成功
必需
errorCode
null 
错误码
必需
errorMsg
null 
错误信息
必需
postFeeByDescOfferList
null 
运费说明的商品列表
必需
consignOfferList
null 
代销商品列表
必需
unsupportedCrossBorderPayOfferList
array[string]
必需
不支持跨境宝支付的商品列表
示例
{
    "requestId": null,
    "code": 0,
    "developId": null,
    "msg": "string",
    "data": {
        "orderPreviewResuslt": [
            {
                "discountFee": null,
                "tradeModeNameList": [
                    "string"
                ],
                "status": true,
                "taoSampleSinglePromotion": true,
                "sumPayment": 0,
                "message": null,
                "sumCarriage": 0,
                "resultCode": null,
                "sumPaymentNoCarriage": 0,
                "additionalFee": null,
                "flowFlag": "string",
                "cargoList": [
                    {
                        "amount": 0,
                        "message": null,
                        "finalUnitPrice": 0,
                        "specId": "string",
                        "skuId": 0,
                        "resultCode": null,
                        "offerId": 0,
                        "cargoPromotionList": [
                            {
                                "promotionId": "string",
                                "selected": true,
                                "text": "string",
                                "desc": "string",
                                "freePostage": true,
                                "discountFee": 0
                            }
                        ]
                    }
                ],
                "shopPromotionList": [
                    {
                        "promotionId": "string",
                        "selected": true,
                        "text": "string",
                        "desc": "string",
                        "freePostage": true,
                        "discountFee": 0
                    }
                ],
                "tradeModelList": [
                    {
                        "tradeWay": null,
                        "name": "string",
                        "tradeType": "string",
                        "description": "string",
                        "opSupport": true
                    }
                ]
            }
        ],
        "success": true,
        "errorCode": null,
        "errorMsg": null,
        "postFeeByDescOfferList": null,
        "consignOfferList": null,
        "unsupportedCrossBorderPayOfferList": [
            "string"
        ]
    }
}
修改于 2025-02-24 07:12:17
上一页
Order list paging query
下一页
Create an order
Built with