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
        POST
      • Paging to query the order list
        GET
      • Upload the payment voucher
        POST
      • Cancel the order
        POST
      • Modify the pre-warehouse information of the order
        POST
      • Pay for the order
        POST
      • Get the IM link
        POST
      • Get the order details according to the order ID
        GET
      • Get logistics details
        GET
    • 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
      • Preview data before creating an order (batch different merchants)
      • Create orders (different merchants)
      • Obtain the logistics tracking information of the order
      • Order list paging query
      • Preview data before creating an order
      • Create an order
      • Cancel the order before payment
      • Order payment
      • The buyer confirms the receipt of goods
    • 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

Create an order

POST
/open/order
订单

请求参数

Header 参数
access-key
string 
必需
默认值:
58c0201dfdf148eca63cbf6bb5e7cf03
nonce-str
string 
可选
默认值:
nonce-str
timestamp
string 
必需
默认值:
1715669977082
user-id
string 
必需
默认值:
2100007341207
signature
string 
必需
默认值:
B7F83FE2ADC8D8F044F2E01F0FFE8C80
Body 参数application/json
orderLineList
string 
必需
商品明细json itemId (商品详情中返回的mpId)、orderLineNo(商品明细id 可使用自增)、price (金额,单位分,金额=单价*数量,可以使用接口product/details/query返回的价格作为单价)、currency(货币单位)、 skuId(商品详情中返回的mpSkuId)
orderSource
string 
买方电子商务平台
可选
purchaseAmount
integer <int64>
预算金额(分)
必需
receiver
string 
必需
买方信息 jsonzip(邮编)、country(国家)、address(地址)、mobile_phone(手机号码)、city(城市)、district(区域)、name(姓名)、state(省份/州)
sellerOrderNumber
string 
买方电商平台订单号
可选
示例
{
  "purchaseAmount": 400,
  "receiver": "{\"zip\":\"11111\",\"country\":\"中国\",\"address\":\"测试地址\",\"city\":\"杭州市\",\"phone\":\"\",\"mobile_phone\":\"15068763421\",\"district\":\"余杭区\",\"name\":\"a测试aa\",\"state\":\"浙江省\"}",
  "orderLineList": "[{\"itemId\":\"600126245031041190\",\"orderLineNo\":\"1\",\"quantity\":\"200\",\"price\":\"1\",\"currency\":\"CNY\",\"skuId\":\"5016042822039\"},{\"itemId\":\"600129202197070073\",\"orderLineNo\":\"1\",\"quantity\":\"200\",\"price\":\"1\",\"currency\":\"CNY\",\"skuId\":\"4860968496626\"}]",
  "orderSource": "lazada",
  "sellerOrderNumber": "1"
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/open/order' \
--header 'access-key;' \
--header 'nonce-str: nonce-str' \
--header 'timestamp;' \
--header 'user-id;' \
--header 'signature;' \
--header 'Content-Type: application/json' \
--data-raw '{
  "purchaseAmount": 400,
  "receiver": "{\"zip\":\"11111\",\"country\":\"中国\",\"address\":\"测试地址\",\"city\":\"杭州市\",\"phone\":\"\",\"mobile_phone\":\"15068763421\",\"district\":\"余杭区\",\"name\":\"a测试aa\",\"state\":\"浙江省\"}",
  "orderLineList": "[{\"itemId\":\"600126245031041190\",\"orderLineNo\":\"1\",\"quantity\":\"200\",\"price\":\"1\",\"currency\":\"CNY\",\"skuId\":\"5016042822039\"},{\"itemId\":\"600129202197070073\",\"orderLineNo\":\"1\",\"quantity\":\"200\",\"price\":\"1\",\"currency\":\"CNY\",\"skuId\":\"4860968496626\"}]",
  "orderSource": "lazada",
  "sellerOrderNumber": "1"
}'

返回响应

🟢200OK
application/json
Body
requestId
string 
请求id
必需
code
integer 
返回码
必需
developId
string 
开发者id
必需
msg
string 
返回码对应信息
必需
data
object 
必需
id
string 
订单id
必需
orderNo
string 
订单编号
必需
createTime
string 
创建时间
必需
subOrderVOS
array [object {15}] 
必需
示例
{
    "requestId": "1b69692da4b34920bcd594048c8bdcfc",
    "code": 200,
    "developId": "1028257583384757029",
    "msg": "成功",
    "data": {
        "id": "1031992847890383164",
        "orderNo": "1031992847781331418",
        "subOrderVOS": [
            {
                "subOrderId": "1031992851828834889",
                "orderNo": "1031992847781331418",
                "quantity": 1,
                "title": null,
                "purchaseCurrency": null,
                "purchaseAmount": null,
                "itemId": "600086815456800431",
                "domesticPostFee": null,
                "closeReason": null,
                "skuId": "4766078803304",
                "status": null,
                "taobaoPurchaseId": "200027842447",
                "taobaoSubPurchaseId": "200027842448",
                "errorCode": null,
                "errorMessage": null
            }
        ],
        "createTime": "2023-10-18 18:11:08"
    }
}
修改于 2025-02-24 06:51:46
上一页
Taobao commodity inquiry
下一页
Paging to query the order list
Built with