...
| 代码块 |
|---|
POST /api/supplier-service/v1/b2c/orders HTTP/1.1 Host: http://cfs-qa.etowertech.com/ Content-Type: application/json Accept: application/json Authorization:WallTech etotest8xkIIphLnbkjRACNj4PetotestqwMo2A0aWpGkRoTky3y:pc9H97D-_b2_TSCVvNj81AWnczX2AR6o0sSMehi-8v1g X-WallTech-Date:Tue, 02 Aug 2022 06:43:37 GMT |
...
字段名 | 数据类型 | 最大长度 | 必填性 | 描述 |
|---|---|---|---|---|
| 订单基本信息 | ||||
referenceNo | 50 | M | 客户参考号 | |
| warehouseCode | 50 | M | 仓库代码 | |
serviceName | 50 | M | 尾程服务名称 | |
| outboundType | M | 1:FBA, 2:一般 | ||
| referenceNoFba | 100 | FBA参考号 | ||
| orderNoFba | 100 | FBA ID | ||
| stockType | 库存类型:0:以仓库为准,1:标准区,2:保留区 | |||
| isInsurance | Boolean | 是否使用保险服务 | ||
| insuranceValue | Decimal | 投保金额 ,使用保险服务时为必填 | ||
| insuranceValueCurrency | 投保金额币种, 使用保险服务时为必填,默认usd | |||
| remark | 200 | 备注 | ||
| isNeedConfirm | Boolean | M | 是否自动确认发送,默认为true true则无需再调用8.预报出库单接口,会自动进行预报 false则需要再调用8.预报出库单接口,否则订单只是草稿订单 | |
| 面单信息 | ||||
| labelList | List<Object> | 面单信息 | ||
| fileName | 100 | 文件名,带后缀 | ||
| fileContent | base64 | |||
| fileType | 文件类型 | |||
| 收件人信息 | ||||
recipientWarehouseCode | 50 | O/M | 收件地址代码 | |
recipientName | 50 | O/M | 收件人名称 | |
recipientCompany | 50 | O | 收件公司名称 | |
recipientEmail | 100 | O | 收件人邮箱 | |
recipientPhone | 50 | O/M | 收件人电话 | |
addressLine1 | 200 | O/M | 收件地址行1 | |
addressLine2 | 200 | O | 收件地址行3 | |
addressLine3 | 200 | O | 收件地址行3 | |
city | 100 | O/M | 收件城市 | |
state | 100 | O | 收件省份 | |
district | 100 | O | 收件区 | |
postcode | 15 | O/M | 收件地址邮编 | |
country | 2 | O/M | 收件国家 | |
| 商品信息 | ||||
| productItems; | List<Object> | M | 商品列表 | |
boxNo | 30 | M | 箱号 | |
sku | 10 | M | 商品 Sku | |
productQty | 100 | M | 商品数量 | |
| 返回值 | ||||
orderNo | - | 返回值 | 系统订单号 | |
| referenceNo | 客户订单号 | |||
| fbaCode | fbaCode | |||
code | - | - | 返回编码 | |
errors | - | - | 报错 | |
message | - | - | 返回信息 | |
messageId | - | - | 返回信息编码 | |
success | - | - | 成功响应 | |
warnList | - | - | 废弃字段 | |
请求样例
| 代码块 |
|---|
{
"referenceNo": "order00001{{$timestamp}}",
"serviceNamewarehouseCode": "B2C服务Australian Warehouse",
"warehouseCodeserviceName": "11112testtransservice",
"outboundType": "1",
"warehouseCode": "",
"referenceNoFba": "234234",
"orderNoFba": "2323",
"stockType": "1",
"isInsurance": true,
"insuranceValue": 0,
"insuranceValueCurrency": "",
"labelListisNeedConfirm": [false,
"labelList": [
{ {
"fileName": "xxxxxx.pdf",
"fileContent": "base64 content",
"fileType":"pdf"
"fileType": "pdf"
} }
], ],
"recipientWarehouseCode": "CanadaAU WarehousePOST",
"recipientCompanyrecipientName": "testcontact",
"nativeDescriptionrecipientCompany": "testcompany",
"descriptionrecipientEmail": "testemail@123.com",
"countryrecipientPhone": "12312424",
"stateaddressLine1": "testaddress1",
"cityaddressLine2": "testaddress2",
"districtaddressLine3": "testaddress3",
"addressLine1city": "testcity",
"addressLine2state": "teststate",
"addressLine3district": "testdistrict",
"postcode": "23432",
"recipientNamecountry": "CA",
"recipientPhonenativeDescription": "",
"recipientEmaildescription": "",
"remark": "",
"isNeedConfirmproductItems":true, [
"productItems": [{
{
"boxNo": "1",
"sku": "deli1498603SKG",
"productQty": 2
}
]
} |
返回样例
| 代码块 |
|---|
[ { "code": "0", "data": { "orderNofbaCode": "C12283221114000002O", "referenceNoorderNo": "order00002T12283230621000006O", "fbaCode":"1321321231421" },"referenceNo": "1687319042" }, "errors": "", "message": "", "messageId": "", "success": true, "warnList": "" } ] |
| 代码块 |
|---|
[ { "code": "0005", "data": "", "errors": [ { "code": "6009041000009", "message": "referenceNoserviceName:order00001,Already existstesttransservice1 ,Does not exist in the system" warehouseCode:Australian Warehouse" } ], "message": "paramter error", "messageId": "", "success": false, "warnList": "" } ] |