PandaPon OpenAPI
产品文档API参考
中文简体
  • English
  • Tiếng Việt
  • Español
产品文档API参考
中文简体
  • English
  • Tiếng Việt
  • Español
返回PandaPon官网
  1. 订单
  • 淘宝
    • 商品
      • 淘宝商品图片搜索接口
      • 淘宝商品搜索接口
      • 根据淘宝商品id批量查询商品
      • 根据淘宝商品id查询商品
      • 淘宝商品查询
    • 订单
      • 创建订单
        POST
      • 分页查询订单列表
        GET
      • 上传支付凭证
        POST
      • 取消订单
        POST
      • 修改订单前置仓信息
        POST
      • 支付订单
        POST
      • 获取IM 链接
        POST
      • 根据订单ID获取订单详情
        GET
      • 获取物流详情
        GET
    • 售后
      • 逆向单列表查询
      • 逆向单渲染接口
      • 退货物流渲染
      • 退货物流提交
      • 逆向单撤销
      • 提交逆向单留言
      • 逆向单提交
      • 逆向单留言列表查询
      • 逆向单修改
      • 逆向单查询
    • 消息回调
      • 订单价格修改回调
      • 订单状态修改回调
      • 订单售后退款
    • 购物车
      • 创建订单
      • 生成订单预览
      • 购物车列表
      • 删除购物车商品
      • 新增购物车
      • 编辑商品数量
  • 1688
    • 商品
      • 商品详情查询
      • 转换解密为旺旺URL
      • 商品关键词查询
      • 商品图片搜索
      • 商品店搜
      • 根据类目ID查询多语言类目
      • 商品推荐查询
      • 相关性商品查询
    • 订单
      • 开发者批量提交支付1688订单
      • 创建订单前预览数据(批量不同商家)
      • 创建订单(不同商家)
      • 获取订单的物流跟踪信息
      • 订单列表分页查询
      • 创建订单前预览数据
      • 创建订单
      • 支付前取消订单
      • 订单支付
      • 买家确认收货
    • 售后
      • 查询售后单详情
      • 查询退款退货原因(用于创建退款退货)
      • 上传退款退货凭证
      • 创建退款退货申请
      • 买家提交退款货信息
      • 物流公司列表-所有的物流公司
    • 消息回调
      • 订单价格修改回调
      • 订单状态修改接口
      • 1688订单售后退款
    • 购物车
      • 创建订单
      • 删除购物车商品
      • 创建订单前预览数据接口
      • 编辑商品数量
      • 新增购物车
      • 购物车列表
    • 营销
      • 全球严选
      • 1688严选
      • 热销榜单
  • 基础
    • 获取用户地址信息
      POST
    • 地址新增与更新
      POST
  • 仓库物流
    • 商详海外运费预估
      POST
    • 订单海外运费预览
      POST
    • 更新国内物流信息
      POST
    • 创建国际物流订单
      POST
  1. 订单

创建订单

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 'https://api.pandapon.com/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"
    }
}
上一页
淘宝商品查询
下一页
分页查询订单列表
Built with