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

批量创建创建订单接口(不同商家)

POST
/v2/alibaba/order/batch/create

请求参数

Header 参数
access-key
string 
必需
默认值:
your-access-key
timestamp
string 
必需
默认值:
your-timestamp
user-id
string 
必需
默认值:
your-user-id
signature
string 
必需
默认值:
your-signature
Body 参数application/json
flow
string 
必需
订单类型 general(创建大市场订单),fenxiao(创建分销订单),saleproxy流程将校验分销关系,paired(火拼下单),boutiquefenxiao(精选货源分销价下单,采购量1个使用包邮), boutiquepifa(精选货源批发价下单,采购量大于2使用).
message
string 
订单备注
可选
shopPromotionId
string 
可选
店铺优惠ID,通过“创建订单前预览数据接口”获得。为空默认使用默认优惠
tradeType
string 
可选
由于不同的商品支持的交易方式不同,没有一种交易方式是全局通用的,所以当前下单可使用的交易方式必须通过下单预览接口的tradeModeNameList获取。交易方式类型说明:fxassure(交易4.0通用担保交易),alipay(大市场通用的支付宝担保交易(目前在做切流,后续会下掉)),period(普通账期交易), assure(大买家企业采购询报价下单时需要使用的担保交易流程), creditBuy(诚E赊),bank(银行转账),631staged(631分阶段付款),37staged(37分阶段);此字段不传则系统默认会选取一个可用的交易方式下单,如果开通了诚E赊默认是creditBuy(诚E赊),未开通诚E赊默认使用的方式是支付宝担宝交易
addressParam
object (FastAdress) 
收货地址信息
必需
fullName
string 
可选
mobile
string 
可选
phone
string 
可选
postCode
string 
可选
cityText
string 
可选
provinceText
string 
可选
areaText
string 
可选
townText
string 
可选
address
string 
可选
districtCode
string 
可选
cargoParamList
array[object (FastCargo) {6}] 
商品信息不能为空
必需
sellerOpenId
string 
可选
offerMapId
string 
可选
specId
string 
可选
quantity
number 
可选
productNo
string 
可选
container
string 
可选
userId
string 
可选
staffName
string 
雇员名称
可选
platformOrder
integer 
下单途径
可选
transferAccountImgs
string 
可选
银行转账截图
转账凭证
transferAccountRemark
string 
可选
uwebuy银行转账备注
银行转账备注
示例
{
    "flow":"general",
    "addressParam": {
        "fullName": "zhang",
        "mobile": "18600888861",
        "phone": "18600888861",
        "postCode": "100000",
        "cityText": "杭州市",
        "provinceText": "浙江省",
        "areaText": "西湖区",
        "townText": "转塘",
        "address": "xxxxxxx"
    },
    "cargoParamList": [
        {
            "offerMapId": "L0PTnwSnx_dWNZWCtgK7Gg",
            "specId": "e61a85a671bb3d0301d0412b51641c6b",
            "quantity": 1,
            "sellerOpenId": "BBBgGWh2O6JFI6v1aQuZVgRIA"
        }
    ]
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/v2/alibaba/order/batch/create' \
--header 'access-key;' \
--header 'timestamp;' \
--header 'user-id;' \
--header 'signature;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "flow":"general",
    "addressParam": {
        "fullName": "zhang",
        "mobile": "18600888861",
        "phone": "18600888861",
        "postCode": "100000",
        "cityText": "杭州市",
        "provinceText": "浙江省",
        "areaText": "西湖区",
        "townText": "转塘",
        "address": "xxxxxxx"
    },
    "cargoParamList": [
        {
            "offerMapId": "L0PTnwSnx_dWNZWCtgK7Gg",
            "specId": "e61a85a671bb3d0301d0412b51641c6b",
            "quantity": 1,
            "sellerOpenId": "BBBgGWh2O6JFI6v1aQuZVgRIA"
        }
    ]
}'

返回响应

🟢200成功
application/json
Body
requestId
string 
请求ID
可选
code
integer 
返回码
可选
developId
integer 
开发者ID
可选
msg
string 
返回码对应信息
可选
data
array[object (TradeModelTradeInfoV2VO) {22}] 
返回内容
可选
guaranteesTerms
object (AlibabaOpenplatformTradeModelGuaranteeTermsInfo) 
可选
从AlibabaOpenplatformTradeModelTradeInfo 复制过来的, 替换ProductItem加密产品id
internationalLogistics
object (AlibabaOpenplatformTradeModelInternationalLogisticsInfo) 
可选
nativeLogistics
object (AlibabaOpenplatformTradeModelNativeLogisticsInfo) 
可选
productItems
array[object (ProductItem) {46}] 
可选
tradeTerms
array[object (AlibabaOpenplatformTradeModelTradeTermsInfo[]) {10}] 
可选
extAttributes
array[object (AlibabaOpenplatformTradeKeyValuePair[]) {3}] 
可选
orderRateInfo
object (AlibabaTradeOrderRateInfo) 
可选
orderInvoiceInfo
object (AlibabaInvoiceOrderInvoiceModel) 
可选
customs
object (AlibabaTradeCustoms) 
可选
overseasExtraAddress
object (AlibabaTradeOverseasExtraAddress) 
可选
baseInfo
object (AlibabaOpenplatformTradeModelOrderBaseInfo) 
可选
orderBizInfo
object (AlibabaOrderBizInfo) 
可选
quoteList
array[object (AlibabaOrderDetailCaigouQuoteInfo[]) {3}] 
可选
fromEncryptOrder
boolean 
可选
encryptOutOrderInfo
object (AlibabaTradeGetSellerViewTradeinfoEncryptOutOrderInfo) 
可选
outChannel
string 
可选
sendGoodsOverdueRisk
string 
可选
officialLogisticOrder
boolean 
可选
sellerOpenId
string 
可选
success
boolean 
可选
errorCode
string 
可选
errorMsg
string 
可选
示例
{
    "requestId": "1a4cc8ca912144eb92e77ccfcf74fbe8",
    "code": 200,
    "developId": "1110890638347337996",
    "msg": "成功",
    "data": [
        {
            "guaranteesTerms": null,
            "internationalLogistics": null,
            "nativeLogistics": {
                "address": "转塘 xxxxxxx",
                "area": "西湖区",
                "areaCode": "330106",
                "city": "杭州市",
                "contactPerson": "zhang",
                "fax": null,
                "mobile": "18600888861",
                "province": "浙江省",
                "telephone": "18600888861",
                "zip": "100000",
                "logisticsItems": null,
                "townCode": null,
                "town": null,
                "caid": null,
                "realLogisticsCompanyNo": null
            },
            "productItems": [
                {
                    "cargoNumber": null,
                    "description": null,
                    "itemAmount": 19,
                    "name": "2024春季新款女包斜跨大容量包包女时尚手提托特包尼龙布单肩包潮",
                    "price": 19,
                    "productID": 743470146022,
                    "productImgUrl": [
                        "http://cbu01.alicdn.com/img/ibank/O1CN01XM0H0F1Bs32yWFMfl_!!0-0-cib.80x80.jpg",
                        "http://cbu01.alicdn.com/img/ibank/O1CN01XM0H0F1Bs32yWFMfl_!!0-0-cib.jpg"
                    ],
                    "productSnapshotUrl": "https://trade.1688.com/order/offer_snapshot.htm?order_entry_id=2540608320348880794",
                    "quantity": 1,
                    "refund": 0,
                    "skuID": 5129230517256,
                    "sort": null,
                    "status": "waitbuyerpay",
                    "subItemID": 2540608320348881000,
                    "type": "common",
                    "unit": "件",
                    "weight": null,
                    "weightUnit": null,
                    "guaranteesTerms": [
                        {
                            "assuranceInfo": "卖家承诺买家签收货物后7天内,在“商品完好”的情形下,向买家提供退货服务。",
                            "assuranceType": "qtwlybt",
                            "qualityAssuranceType": "7天无理由退货"
                        },
                        {
                            "assuranceInfo": "“满足相应条件时,用户在退货寄出后,享受极速退款到账。",
                            "assuranceType": "lsjst_s",
                            "qualityAssuranceType": "极速退款"
                        },
                        {
                            "assuranceInfo": "卖家在承诺买家保障服务的基础上,向买家提供“48小时发货延必赔”的服务。在买家通过支付宝担保交易完成付款或通过货到付款下单成功后,卖家承诺在买家支付成功起48小时内发货。如卖家未履行前述承诺,买家可在指定期限内发起维权,并申请赔付。",
                            "assuranceType": "ssbxsfh",
                            "qualityAssuranceType": "48小时发货"
                        }
                    ],
                    "productCargoNumber": "8089",
                    "skuInfos": [
                        {
                            "name": "颜色",
                            "value": "奶油紫"
                        }
                    ],
                    "entryDiscount": 0,
                    "specId": "e61a85a671bb3d0301d0412b51641c6b",
                    "quantityFactor": 1,
                    "statusStr": "等待买家付款",
                    "refundStatus": null,
                    "closeReason": null,
                    "logisticsStatus": 1,
                    "gmtCreate": "2025-04-23T14:13:44.000+08:00",
                    "gmtModified": "2025-04-23T14:13:45.000+08:00",
                    "gmtCompleted": null,
                    "gmtPayExpireTime": null,
                    "refundId": null,
                    "subItemIDString": "2540608320348880794",
                    "refundIdForAs": null,
                    "erpMaterialCode": null,
                    "itemDiscountFee": null,
                    "cantSendReason": null,
                    "canSendGoods": null,
                    "barCode": null,
                    "permitLogisticsCpCode": null,
                    "deliverGoodsOverdueRisk": null,
                    "relatedCode": null,
                    "freeEntryServiceInfo": null,
                    "payEntryServiceInfo": null,
                    "extAttributes": null
                }
            ],
            "tradeTerms": [],
            "extAttributes": [
                {
                    "key": "preSelectPayChannel",
                    "value": "alipay",
                    "description": null
                }
            ],
            "orderRateInfo": {
                "buyerRateStatus": 5,
                "sellerRateStatus": 5,
                "buyerRateList": null,
                "sellerRateList": null
            },
            "orderInvoiceInfo": null,
            "customs": null,
            "overseasExtraAddress": null,
            "baseInfo": {
                "allDeliveredTime": null,
                "businessType": "cb",
                "buyerID": "b2b-2217011889407ed2e0",
                "buyerMemo": null,
                "completeTime": null,
                "createTime": "2025-04-23T14:13:44.000+08:00",
                "currency": null,
                "id": 2540608320348881000,
                "modifyTime": "2025-04-23T14:13:45.000+08:00",
                "payTime": null,
                "receivingTime": null,
                "refund": 0,
                "remark": null,
                "sellerID": "b2b-2207770725121452b2",
                "sellerMemo": null,
                "shippingFee": 4,
                "status": "waitbuyerpay",
                "totalAmount": 23,
                "buyerRemarkIcon": null,
                "sellerRemarkIcon": null,
                "discount": 0,
                "buyerContact": {
                    "phone": "86-0571-17799847985",
                    "fax": null,
                    "email": "wanqing@pandapon.com",
                    "imInPlatform": "pandaponpp2023",
                    "name": "陈翠珍",
                    "mobile": "17799847985",
                    "companyName": "杭州花熊科技有限公司"
                },
                "tradeType": "50060",
                "refundStatus": null,
                "refundStatusForAs": null,
                "refundPayment": 0,
                "idOfStr": "2540608320348880794",
                "alipayTradeId": "UNCREATED",
                "receiverInfo": {
                    "toFullName": "zhang",
                    "toDivisionCode": "330106",
                    "toMobile": "18600888861",
                    "toPhone": "18600888861",
                    "toPost": "100000",
                    "toTownCode": null,
                    "toArea": "浙江省 杭州市 西湖区 转塘 xxxxxxx"
                },
                "buyerLoginId": "pandaponpp2023",
                "sellerLoginId": "广州市大榕树皮具",
                "buyerUserId": null,
                "sellerUserId": null,
                "buyerAlipayId": null,
                "sellerAlipayId": null,
                "confirmedTime": null,
                "closeReason": null,
                "sumProductPayment": 19,
                "stepOrderList": null,
                "stepAgreementPath": null,
                "stepPayAll": false,
                "buyerFeedback": null,
                "overSeaOrder": false,
                "subBuyerLoginId": "pandaponpp2023:uwebuy",
                "sellerOrder": false,
                "preOrderId": null,
                "refundId": null,
                "flowTemplateCode": "assureTrade",
                "buyerLevel": null,
                "sellerCreditLevel": null,
                "sellerContact": {
                    "phone": "86-",
                    "fax": null,
                    "email": null,
                    "imInPlatform": "广州市大榕树皮具",
                    "name": "廖腾飞",
                    "mobile": "13632968337",
                    "companyName": "广州市大榕树皮具有限公司",
                    "wgSenderName": null,
                    "wgSenderPhone": null
                },
                "newStepOrderList": [
                    {
                        "gmtStart": "2025-04-23T14:13:45.000+08:00",
                        "gmtPay": null,
                        "gmtEnd": null,
                        "stepNo": 1,
                        "lastStep": true,
                        "stepName": "全款交易",
                        "activeStatus": 1,
                        "payStatus": 1,
                        "logisticsStatus": 1,
                        "payFee": 23,
                        "paidFee": 0,
                        "goodsFee": null,
                        "adjustFee": 0,
                        "discountFee": 0,
                        "postFee": 4,
                        "paidPostFee": 0
                    }
                ],
                "closeRemark": null,
                "closeOperateType": "",
                "couponFee": 0,
                "tradeTypeDesc": "担保交易",
                "payChannelList": [],
                "tradeTypeCode": "assureTrade",
                "payTimeout": 432000,
                "payTimeoutType": 0,
                "payChannelCodeList": [],
                "ccid": null,
                "relatedCode": null,
                "buyerOpenUid": null,
                "buyerSubOpenUid": null,
                "inventoryMode": null,
                "outOrderId": null
            },
            "orderBizInfo": {
                "odsCyd": false,
                "accountPeriodTime": null,
                "creditOrder": false,
                "creditOrderDetail": null,
                "preOrderInfo": null,
                "lstOrderInfo": null,
                "erpBuyerUserId": null,
                "erpOrderId": null,
                "erpBuyerOrgId": null,
                "isCz": null,
                "isDz": null,
                "dz": null,
                "dropshipping": false,
                "shippingInsurance": "givenByAnXinGou",
                "hyperLinkCangFaOrder": null,
                "hyperLinkOrder": null,
                "hyperLinkSecondStepOrder": null,
                "hyperLinkShipType": null,
                "lightningWarehouse": null
            },
            "quoteList": null,
            "fromEncryptOrder": false,
            "encryptOutOrderInfo": null,
            "outChannel": null,
            "sendGoodsOverdueRisk": null,
            "officialLogisticOrder": null,
            "sellerOpenId": "BBBgGWh2O6JFI6v1aQuZVgRIA",
            "success": true,
            "errorCode": null,
            "errorMsg": null
        }
    ]
}
修改于 2025-04-24 09:21:39
上一页
创建订单前预览数据接口(不同商家)
下一页
获取物流跟踪信息
Built with