创建订单
POST
/taobao/purchase/order/create
order_line_list字段参数说明:
1.
2.
3.
请求参数
Body 参数application/json
appKey
string
必需
appSecret
string
必需
thirdOrderId
string
商户订单号
purchase_amount
integer
必需
seller_order_number
string
下游订单号(可空)
order_source
string
可选
order_line_list
string
必需
receiver
object
必需
country
string
一级地址 (国家)
state
string
必需
city
string
三级地址 (市)
district
string
必需
address
string
详细地址
zip
string
邮编
name
string
姓名
phone
string
电话
mobile_phone
string
手机号
tax_id
null
税号,可空
warehouse_address_info
object
中国仓库地址
country
string
一级地址 (国家)
state
string
必需
city
string
三级地址 (市)
district
string
必需
address
string
详细地址
zip
string
邮编
name
string
姓名
mobile_phone
string
手机号
phone
string
电话
channel_order_type
string
PANAMA
support_partial_success
boolean
可选
order_remark
string
可选
need_supply_chain_service
boolean
false
need_sys_retry
boolean
false
示例
{
"appKey": "",
"appSecret": "",
"thirdOrderId": "123123",
"purchase_amount": 1,
"seller_order_number": "DJ123",
"order_source": "lazada",
"order_line_list": "[{\"itemId\":2048153758314474,\"orderLineNo\":\"1\",\"quantity\":\"3\",\"price\":100,\"currency\":\"CNY\",\"title\":\"测试商品1 \",\"skuId\":3357413213162}]",
"receiver": {
"country": "中国",
"state": "上海市",
"city": "上海市",
"district": "张江区",
"address": "中华大街888号",
"zip": "000000",
"name": "张三",
"phone": "18888888888",
"mobile_phone": "18888888888",
"tax_id": null
},
"warehouse_address_info": {
"country": "中国",
"state": "上海市",
"city": "上海市",
"district": "张江区",
"address": "中华大街888号",
"zip": "000000",
"name": "张三",
"phone": "18888888888",
"mobile_phone": "18888888888"
},
"channel_order_type": "PANAMA",
"support_partial_success": false,
"order_remark": "测试请忽略",
"need_supply_chain_service": false,
"need_sys_retry": false
}
示例代码
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://openapi.dajisaas.com/taobao/purchase/order/create' \
--header 'Content-Type: application/json' \
--data-raw '{
"appKey": "",
"appSecret": "",
"thirdOrderId":"123123",
"purchase_amount": 1,
"seller_order_number": "DJ123",
"order_source": "lazada",
"order_line_list": "[{\"itemId\":2048153758314474,\"orderLineNo\":\"1\",\"quantity\":\"3\",\"price\":100,\"currency\":\"CNY\",\"title\":\"\u6D4B\u8BD5\u5546\u54C11 \",\"skuId\":3357413213162}]",
"receiver": {
"country": "中国",
"state": "上海市",
"city": "上海市",
"district": "张江区",
"address": "中华大街888号",
"zip": "000000",
"name": "张三",
"phone": "18888888888",
"mobile_phone": "18888888888",
"tax_id": null
},
"warehouse_address_info":{
"country": "中国",
"state": "上海市",
"city": "上海市",
"district": "张江区",
"address": "中华大街888号",
"zip": "000000",
"name": "张三",
"phone": "18888888888",
"mobile_phone": "18888888888"
},
"channel_order_type": "PANAMA",
"support_partial_success": false,
"order_remark": "测试请忽略",
"need_supply_chain_service": false,
"need_sys_retry": false
}'
返回响应
🟢200成功
application/json
Body
code
integer
返回码
message
string
返回消息
data
object
业务数据
success
boolean
成功标识
errorMessage
null
失败原因
errorCode
null
失败返回码
orderList
array [object {6}]
采购主订单明细
paymentUrl
string
支付链接
outerPurchaseId
string
商户订单号
timestamp
integer
时间戳
traceId
string
traceId
示例
{
"code": 200,
"message": "操作成功",
"data": {
"success": true,
"errorMessage": null,
"errorCode": null,
"orderList": [
{
"orderLineList": [
{
"itemId": "2048153758314474",
"orderLineNo": "1",
"quantity": 3,
"supplierNick": null,
"estimateAmount": 6540,
"subPurchaseOrderId": 200049919064,
"estimateCurrency": "CNY",
"skuId": 3357413213162
}
],
"purchaseId": "200049919063",
"supplierNick": null,
"estimateAmount": 6540,
"sourceMarket": "淘宝精选",
"estimateCurrency": "CNY"
}
],
"paymentUrl": "https://distributor.taobao.global/apps/order/list",
"outerPurchaseId": "1231234"
},
"timestamp": 1723128864292,
"traceId": "f75dc9b5b035"
}
