接口说明
创建海外仓一件代发小包订单创建直邮小包订单
路径
HTTP Verb | URL |
|---|
| Post | qa: |
https://cfs-qa.etowertech.com/api/supplier-service/ / |
v1/ |
openApi/ |
packetOrder/b2c/ |
createOrders |
请求头样例
POST / |
v1/ |
openApi/ |
packetOrder/b2c/ |
createOrders HTTP/1.1 Host: http://cfs-qa.etowertech.com/ Content-Type: application/json |
请求字段(request)
...
| Table Filter |
|---|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
贸易术语(新增)
DDU
DDP
...
揽收类型(新增)
pick up 上门揽收
drop off 自送到仓(不填默认)
...
是否投保(新增)
是
否(默认)
...
是否签名(新增)
是
否(默认)
...
收件人地址代码
比如ONT8表示某个亚马逊仓库
...
收件人电话
...
拓展字段key-value形式
...
|
...
渠道名称
仅限英文字符
...
B2C=小包直邮
Fulfillment =一件代发(此处固定为该值)
固定值Fulfillment=?(新增)
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
dangerousGoods
...
危险品
DG=危险品
空=非危险品(默认)
...
...
包裹类型(新增)
No Battery 不带电:(值)
Inside Equipment 带电:(值)
...
重量单位:
KG(默认)
G
LB
...
尺寸单位
CM(默认)
M
...
发票币种三字代码(新增)
(传了用传的,没传的话系统根据SKU算)
...
发票金额(新增)
(传了用传的,没传的话系统根据SKU算)
...
拓展字段key-value(新增)
'keepShipService': xxx boolean?是=否
'xxId':xxx
...
受益人
或
公司
...
受益人的身份证
或
收益公司的组织机构代码证
...
投保币种三字代码
比如CNY;USD
...
date
...
请求样例
...
[
{
"facility": "Canada Warehouse Toronto 3-FBA2431425677i656434536",
"channelCode": "hwc",
"platform": "12345678901234567890",
"remark": "testremark",
"consignee": {
"addressCode": "test",
"name": "testname",
"company": "testcompany",
"countryCode": "cn",
"state": "teststate",
"city": "testcity",
"district": "testdistirct",
"addressLine1": "testaddressline1",
"addressLine2": "testaddressline2",
"addressLine3": "testaddressline3",
"zipCode": "testzipcode",
"phone": "testphone",
"email": "testemail@123.com"
},
"shipper": {
"addressCode": "",
"name": "",
"company": "",
"countryCode": "",
"state": "",
"city": "",
"district": "",
"addressLine1": "",
"addressLine2": "",
"addressLine3": "",
"zipCode": "",
"phone": "",
"email": ""
},
"parcels": {
"referenceNo": "testnewapi017",
"description": "GOODSSKG",
"weight": "12",
"weightUnit": "",
"length": "",
"width": "",
"height": "",
"dimensionUnit": "CM",
"items": [
{
"sku": "testgoods",
"quantity": "1"
}
]
}
},
{
"facility": "Canada Warehouse Toronto 3-FBA2431425677i656434536",
"channelCode": "hwc",
"platform": "12345678901234567890",
"remark": "testremark",
"consignee": {
"addressCode": "11112",
"name": "testname",
"company": "testcompany",
"countryCode": "cn",
"state": "teststate",
"city": "testcity",
"district": "testdistirct",
"addressLine1": "testaddressline1",
"addressLine2": "testaddressline2",
"addressLine3": "testaddressline3",
"zipCode": "testzipcode",
"phone": "testphone",
"email": "testemail@123.com"
},
"shipper": {
"addressCode": "",
"name": "",
"company": "",
"countryCode": "",
"state": "",
"city": "",
"district": "",
"addressLine1": "",
"addressLine2": "",
"addressLine3": "",
"zipCode": "",
"phone": "",
"email": ""
},
"parcels": {
"referenceNo": "testnewapi018",
"description": "GOODSSKG",
"weight": "12",
"weightUnit": "",
"length": "",
"width": "",
"height": "",
"dimensionUnit": "CM",
"items": [
{
"sku": "testgoods",
"quantity": "1"
}
]
}
}
]
返回样例
成功样例
[
{
"code": "0",
"data": {
"orderNo": "C12283230214000029O",
"referenceNo": "testnewapi017"
},
"errors": "",
"message": "",
"messageId": "",
"success": true,
"warnList": ""
},
{
"code": "0",
"data": {
"orderNo": "C12283230214000030O",
"referenceNo": "testnewapi018"
},
"errors": "",
"message": "",
"messageId": "",
"success": true,
"warnList": ""
}
]
失败样例
...
|
请求样例
"ordertype":"Fulfillment"
| 代码块 |
|---|
[
{
"facility": "Australian Warehouse",
"channelCode": "AU test",
"channelOption": "",
"referenceNo": "030919",
"orderType": "Fulfillment",
"originPortCode": "",
"injectPortCode": "",
"platform": "eBay",
"incoterm": "",
"collectionType": null,
"isInsurance": "",
"isSignature": "",
"remark": "testremark",
"extendData": {
"extend": null
},
"consignee": {
"addressCode": "11113",
"addressLine1": "street9230",
"addressLine2": "8349hao",
"addressLine3": "345shi",
"city": "testcity",
"company": "testcompany",
"countryCode": "us",
"district": "testdistrict",
"email": "testemail@123.com",
"extendData": null,
"name": "Mack",
"phone": "36247938384",
"state": "teststate",
"taxId": "testtaxid",
"taxId1": "testtaxid1",
"zipCode": "8238juej"
},
"shipper": {
"addressLine1": "",
"addressLine2": "",
"addressLine3": "",
"city": "",
"company": "",
"countryCode": "",
"district": "",
"email": "",
"extendData": null,
"name": "1",
"phone": "",
"state": "",
"taxId": "",
"taxId1": "",
"zipCode": ""
},
"returnAddress": {
"addressLine1": "",
"addressLine2": "",
"addressLine3": "",
"city": "",
"company": "",
"countryCode": "",
"district": "",
"email": "",
"extendData": null,
"name": "",
"phone": "",
"returnOption": "",
"state": "",
"zipCode": ""
},
"parcels": [
{
"referenceNo": "12",
"referenceNo1": "",
"referenceNo2": "",
"consignmentId": "",
"trackingNo": "",
"descriptionEn": "",
"description": "",
"dangerousGoods": false,
"batteryType": "false",
"weight": 1.245,
"weightUnit": "",
"length": "",
"width": "",
"height": "",
"dimensionUnit": "CM",
"invoiceCurrencyCode": "",
"invoiceValue": "12.22",
"transactionCurrency": "USD",
"transactionAmount": "5.12",
"shippingInstruction": "",
"sortCode": "",
"extendData": {
"keepShipService": false
},
"items": [
{
"extendData": null,
"hsCode": "",
"itemDesc": "",
"itemDescEn": "",
"itemNumber": "",
"matertial": "",
"originCountryCode": "",
"picture": "",
"quantity": "1",
"quantityUnit": "",
"salesURL": "",
"sku": "SKG",
"unitPrice": "",
"usage": "",
"weight": null
},
{
"extendData": null,
"hsCode": "",
"itemDesc": "",
"itemDescEn": "",
"itemNumber": "",
"matertial": "",
"originCountryCode": "",
"picture": "",
"quantity": "1",
"quantityUnit": "",
"salesURL": "",
"sku": "TESTcommodity",
"unitPrice": "",
"usage": "",
"weight": null
}
],
"insurance": [
{
"insuranceAmount": "",
"insuranceCurrencyCode": "",
"insuranceType": "",
"beneficiaryType": "",
"beneficiary": "",
"beneficiaryId": "",
"extendData": null
}
]
}
],
"collection": {
"date": "",
"addressLine1": "",
"addressLine2": "",
"addressLine3": "",
"city": "",
"company": "",
"countryCode": "",
"district": "",
"email": "",
"extendData": null,
"name": "",
"phone": "",
"state": "",
"zipCode": ""
}
},
{
"facility": "Australian Warehouse",
"channelCode": "AU test",
"channelOption": "",
"referenceNo": "030920",
"orderType": "Fulfillment",
"originPortCode": "",
"injectPortCode": "",
"platform": "eBay",
"incoterm": "",
"collectionType": null,
"isInsurance": "",
"isSignature": "",
"remark": "testremark",
"extendData": {
"extend": null
},
"consignee": {
"addressCode": "11113",
"addressLine1": "street9230",
"addressLine2": "8349hao",
"addressLine3": "345shi",
"city": "testcity",
"company": "testcompany",
"countryCode": "us",
"district": "testdistrict",
"email": "testemail@123.com",
"extendData": null,
"name": "Mack",
"phone": "36247938384",
"state": "teststate",
"taxId": "testtaxid",
"taxId1": "testtaxid1",
"zipCode": "8238juej"
},
"shipper": {
"addressLine1": "",
"addressLine2": "",
"addressLine3": "",
"city": "",
"company": "",
"countryCode": "",
"district": "",
"email": "",
"extendData": null,
"name": "1",
"phone": "",
"state": "",
"taxId": "",
"taxId1": "",
"zipCode": ""
},
"returnAddress": {
"addressLine1": "",
"addressLine2": "",
"addressLine3": "",
"city": "",
"company": "",
"countryCode": "",
"district": "",
"email": "",
"extendData": null,
"name": "",
"phone": "",
"returnOption": "",
"state": "",
"zipCode": ""
},
"parcels": [
{
"referenceNo": "12",
"referenceNo1": "",
"referenceNo2": "",
"consignmentId": "",
"trackingNo": "",
"descriptionEn": "",
"description": "",
"dangerousGoods": false,
"batteryType": "false",
"weight": 1.245,
"weightUnit": "",
"length": "",
"width": "",
"height": "",
"dimensionUnit": "CM",
"invoiceCurrencyCode": "",
"invoiceValue": "12.22",
"shippingInstruction": "",
"sortCode": "",
"extendData": null,
"items": [
{
"extendData": null,
"hsCode": "",
"itemDesc": "",
"itemDescEn": "",
"itemNumber": "",
"matertial": "",
"originCountryCode": "",
"picture": "",
"quantity": "1",
"quantityUnit": "",
"salesURL": "",
"sku": "SKG",
"unitPrice": "",
"usage": "",
"weight": null
},
{
"extendData": null,
"hsCode": "",
"itemDesc": "",
"itemDescEn": "",
"itemNumber": "",
"matertial": "",
"originCountryCode": "",
"picture": "",
"quantity": "1",
"quantityUnit": "",
"salesURL": "",
"sku": "TESTcommodity",
"unitPrice": "",
"usage": "",
"weight": null
}
],
"insurance": [
{
"insuranceAmount": "",
"insuranceCurrencyCode": "",
"insuranceType": "",
"beneficiaryType": "",
"beneficiary": "",
"beneficiaryId": "",
"extendData": null
}
]
}
],
"collection": {
"date": "",
"addressLine1": "",
"addressLine2": "",
"addressLine3": "",
"city": "",
"company": "",
"countryCode": "",
"district": "",
"email": "",
"extendData": null,
"name": "",
"phone": "",
"state": "",
"zipCode": ""
}
}
] |
返回样例
成功样例
"ordertype":"Fulfillment"
| 代码块 |
|---|
{
"code": "0",
"data": {},
"errors": "",
"message": "",
"messageId": "",
"success": true,
"warnList": ""
} |
失败样例
"ordertype":"Fulfillment"
| 代码块 |
|---|
{
"code": "0",
"data": {
"030920": [
{
"code": "600904",
"message": "referenceNo:030920,Already exists in the system"
}
],
"030919": [
{
"code": "600904",
"message": "referenceNo:030919,Already exists in the system"
}
]
},
"errors": "",
"message": "",
"messageId": "",
"success": true,
"warnList": ""
} |
ps: test001是 订单唯一编码 ,区分不同订单的不同错误描述。批量操作 成功的不会返回,会直接保存。
| 附件 |
|---|