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. Shopping cart
  • 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
        POST
      • Generate an order preview
        POST
      • List of shopping carts
        GET
      • Delete the shopping cart products
        POST
      • Add a shopping cart
        POST
      • Edit the quantity of goods
        POST
  • 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. Shopping cart

Create an order

POST
/open/cart/create/order

请求参数

Header 参数
access-key
string 
必需
默认值:
58c0201dfdf148eca63cbf6bb5e7cf03
nonce-str
string 
可选
默认值:
nonce-str
timestamp
string 
必需
默认值:
1715669977082
user-id
string 
必需
默认值:
2100007341207
signature
string 
必需
默认值:
B7F83FE2ADC8D8F044F2E01F0FFE8C80
Body 参数application/json
ids
array[integer]
购物车记录id
必需
orderAddress
object (OrderAddress) 
创建订单地址
必需
zip
string  | null 
邮编
可选
country
string  | null 
国家
可选
state
string  | null 
省份
可选
city
string  | null 
杭州市
可选
district
string  | null 
余杭区
可选
address
string  | null 
测试地址
可选
mobile_phone
string  | null 
手机号
可选
phone
string  | null 
手机号
可选
name
string  | null 
收件人
可选
userId
string  | null 
userId
可选
示例
{
    "ids": [
        75,76
    ],
    "orderAddress": {
        "zip": "11111",
        "country": "中国",
        "address": "测试地址",
        "phone": "",
        "mobile_phone": "",
        "city": "杭州市",
        "district": "余杭区",
        "name": "a测试aa",
        "state": "浙江省"
    },
    "userId": "2100007340000"
}

示例代码

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/cart/create/order' \
--header 'access-key;' \
--header 'nonce-str: nonce-str' \
--header 'timestamp;' \
--header 'user-id;' \
--header 'signature;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "ids": [
        75,76
    ],
    "orderAddress": {
        "zip": "11111",
        "country": "中国",
        "address": "测试地址",
        "phone": "",
        "mobile_phone": "",
        "city": "杭州市",
        "district": "余杭区",
        "name": "a测试aa",
        "state": "浙江省"
    },
    "userId": "2100007340000"
}'

返回响应

🟢200成功
application/json
Body
requestId
string 
请求ID
可选
code
integer 
返回码
可选
developId
integer 
开发者ID
可选
msg
string  | null 
返回码对应信息
可选
data
object 
返回内容
必需
id
integer 
订单id
可选
orderNo
string 
订单编号
可选
subOrderVOS
array [object {15}] 
子订单
可选
createTime
string 
创建时间
可选
示例
{
  "requestId": "",
  "code": 0,
  "developId": 0,
  "msg": "",
  "data": {
    "id": 0,
    "orderNo": "",
    "subOrderVOS": [
      {
        "subOrderId": 0,
        "orderNo": "",
        "quantity": 0,
        "title": "",
        "purchaseCurrency": "",
        "purchaseAmount": 0,
        "itemId": "",
        "domesticPostFee": 0,
        "closeReason": "",
        "skuId": "",
        "status": "",
        "taobaoPurchaseId": "",
        "taobaoSubPurchaseId": "",
        "errorCode": "",
        "errorMessage": ""
      }
    ],
    "createTime": ""
  }
}
修改于 2025-02-24 06:58:54
上一页
After-sales refund of orders
下一页
Generate an order preview
Built with