接口说明
创建小包订单
路径
...
HTTP Verb
...
URL
...
qa: https://cfs-qa.etowertech.com/api/supplier-service/
prd: http://b2b.etowertech.com/
/v1/openApi/packetOrder/b2c/createOrders
请求头样例
POST
POST /v1/openApi/packetOrder/b2c/createOrders HTTP/1.1
Content-Type: application/json
Accept: application/json
User-Agent: Mozilla 5.0
lang:zh_CN
Host: http://b2b.etowertech.com/api/supplier-service
X-WallTech-Date: Thu, 06 Aug 2020 06:21:24 GMT
Authorization: WallTech testLvs2jdug2qIoRsJyuxs:2THPh5_j4OTYUGdinstTC4nYqDE=
请求字段(request)
...
请求样例
...
{
"order":[
{
"channelCode":"UBI.CN2US.AC.GENERAL.LIGHT",
"channelOption":"1",
"collectionInfo":{
"addressCode":"us",
"addressLine1":"puxinganglu900hao",
"addressLine2":"109shi",
"addressLine3":"09-23fang",
"city":"Edwardsville",
"company":"testcompany",
"countryCode":"us",
"district":"shanghaishi",
"email":"testzhang@qq.com",
"extendData":null,
"name":"小明",
"phone":"8293401",
"returnOption":null,
"state":null,
"taxId":"1",
"taxId1":"1",
"zipCode":"111"
},
"collectionType":"Pick up",
"consignee":{
"addressCode":"us",
"addressLine1":"puxinganglu900hao",
"addressLine2":"109shi",
"addressLine3":"09-23fang",
"city":"Edwardsville",
"company":"testcompany",
"countryCode":"us",
"district":"shanghaishi",
"email":"testzhang@qq.com",
"extendData":null,
"name":"小明",
"phone":"8293401",
"returnOption":null,
"state":null,
"taxId":"1",
"taxId1":"1",
"zipCode":"111"
},
"extendData":{
"sku3":"sku3"
},
"facility":"B2C",
"incoterm":"DDU",
"injectPortCode":"11",
"insuranceOrNot":true,
"orderType":"B2C",
"originPortCode":"101",
"parcels":[
{
"batteryType":false,
"consignmentId":"11111",
"dangerousGoods":false,
"description":"苹果",
"descriptionEn":"apple",
"dimensionUnit":"个",
"extendData":null,
"height":32.3,
"invoiceCurrencyCode":"CNY",
"invoiceValue":100,
"insurance":[
{
"insuranceAmount":11,
"insuranceCurrencyCode":11,
"insuranceType":11,
"modifiedAccount":11,
"type":11,
"typeDesc":11
}
],
"items":[
{
"extendData":null,
"hsCode":"102",
"itemDesc":"红富士",
"itemDescEn":"apple",
"itemNumber":"001",
"matertial":"木质",
"originCountryCode":"CN",
"picture":"",
"quantity":1,
"quantityUnit":"个",
"salesURL":"baidu",
"sku":"111",
"unitPrice":100,
"usage":"吃",
"weight":100
}
],
"length":100,
"referenceNo":"API-test-001",
"referenceNo1":"3333333",
"referenceNo2":33366633,
"shippingInstruction":null,
"sortCode":100,
"trackingNo":null,
"weight":100,
"weightUnit":"cm",
"width":100
}
],
"platform":"1",
"remark":"api下单",
"returnAddress":{
"addressCode":"us",
"addressLine1":"puxinganglu900hao",
"addressLine2":"109shi",
"addressLine3":"09-23fang",
"city":"Edwardsville",
"company":"testcompany",
"countryCode":"us",
"district":"shanghaishi",
"email":"testzhang@qq.com",
"extendData":null,
"name":"小明",
"phone":"8293401",
"returnOption":null,
"state":null,
"taxId":"1",
"taxId1":"1",
"zipCode":"111"
},
"shipper":{
"addressCode":"us",
"addressLine1":"puxinganglu900hao",
"addressLine2":"109shi",
"addressLine3":"09-23fang",
"city":"Edwardsville",
"company":"testcompany",
"countryCode":"us",
"district":"shanghaishi",
"email":"testzhang@qq.com",
"extendData":null,
"name":"小明",
"phone":"8293401",
"returnOption":null,
"state":null,
"taxId":"1",
"taxId1":"1",
"zipCode":"111"
},
"signatureOrNot":true
}
]
}
返回样例
成功样例
...
{
"code":"0",
"data":"",
"errors":"",
"message":"",
"messageId":"",
"success":true,
"warnList":""
}
失败样例
{
...
创建仓库尾程小包订单
接口详情见:10.创建直邮小包订单3.0