...
POST /api/supplier-service/v1/b2b/asn HTTP/1.1 Content-Type: application/json Accept: application/json User-Agent: Mozilla 5.0 Host: http://cfs-qa.etowertech.com/ X-WallTech-Date: Thu, 06 Aug 2020 06:21:24 GMT Authorization: WallTech testLvs2jdug2qIoRsJyuxs:2THPh5_j4OTYUGdinstTC4nYqDE= |
...
字段名 | 数据类型 | 最大长度 | 必填性 | 描述 |
|---|---|---|---|---|
shipMethod | 10 | M | 头程运输入仓类型 目前只有:“自有服务”:1 | |
删掉 | 50 | M | 目的仓代码 为什么还要传?:感觉可以不传 | |
| shipDate | 发出时间(新增) | |||
billOfLading | 提单号(新增) | |||
| eta | 20 | M | 预计到达时间 | |
| remark | 200 | O | ASN备注 | |
| 运输类型 | ||||
transportationType | 10 | M | 入库运输类型 快递:1 卡车:2 | |
| 运输类型 = 快递类型 | ||||
| expressNoList | 50 | C | 快递单号 当入库运输类型为快递时,必填 可以有多个快递单号 | |
| 运输类型 = 卡车类型 | ||||
| truckType | 10 | C | 卡车类型 当入库运输类型为卡车时,必填 海运整柜:1 海运散柜:2 铁运整柜:3 铁运散柜:4 | |
| 当卡车运输的柜子类型 = 整柜类型(可多组) | ||||
| containerType | 10 | M | 装箱规格: 20GP:1 40GP:2 40HQ:3 45HQ:4 40RH:5 | |
| quantity | 10 | M | 集装箱数量 | |
| containerNo | M | 柜号(新增) | ||
| 当卡车运输的柜子类型 = 散柜(仅一组) | ||||
| volume | 10 | M | 总体积CBM | |
| volumeUnit | M | 目前只能是CBM(新增) | ||
| weight | 10 | M | 总重量KG | |
| weightUnit | M | 目前只能是KG(新增) | ||
palletQty | 10 | M | 托盘数量 | |
| expressNoList | M | 快递单号(新增)只传一个 | ||
| 入库单信息 | ||||
poNoList | 50 | M | 入库单 | |
备注
| 代码块 |
|---|
备注: 字段shipmethod请固定传11、字段shipmethod请固定传1 字段LastMileType可选值为2、字段LastMileType可选值为"1"(express)、"2"(Truck) 当选用1时,字段TrackingNo为必填项 当选用2时,字段TruckType为必填项 2.1、当选用1时,字段expressnolist为必填项,可多组 2.2、当选用2时,字段TruckType为必填项 字段TruckType可选值为"1"(FCL海运整柜)、"2"(海运散柜)、"(LCL) 当选用1时,字段ContainerType、ContainerCount为必填项 当选用2时,字段Volume、Weight、TrayAmount为必填项 3"(铁运散柜)、"4"(铁运散柜) 当选用1/3时,字段ContainerInfoList为必填项 当选用2/4时,字段Volume、Weight、palletcount、expressnolist(只能是一个)为必填项 字段containerType可选值为"1"(20GP)、"2"(40GP)、"3"(40HQ)、"4"(45HQ)、"5"(40RH) |
请求样例
| 代码块 |
|---|
1、入库类型为快递单: { "shipMethod": 1, "eta": "2023-03-14 09:37:48", "poNoList": [ "test030741" ], "remark": "1234567890", "lastMailType": 1, "truckType": null, "palletCount": null, "weight": null, "weightUnit":"KG", "volume": null, "volumeUnit":"CBM", "expressNoList": [ 1 ], "containerInfoList": [ { "containerType": null, "quantity": null, "containerNo": null }, { "containerType": null, "warehouseCode": "Canada warehouse" "quantity": null, "containerNo": null } ], "shipDate": "2023-03-07 15:15:48", "billOfLading": "提单号" } 2、入库类型为卡车单: { "shipMethod": 1, "eta": "2023-1003-2514 09:37:48", "poNoList": [ "CA-0001test030742" ], "remark": "1234567890", "lastMailType": "1"2, "truckType": ""1, "palletCount": 01, "weight": 0.00 2, "weightUnit":"KG", "volume": 0.001, "volumeUnit":"CBM", "expressNoList": [ "111231" ], "containerInfoList": [ { "containerType": 05, "quantity": 2, "containerNo": 05 } ], "shipDate": "2023-0203-2507 0915:3715:48", "billOfLading": "提单号" } |
返回样例
shippingPlanNo | 返回值 | Asn参考号 |
code | - | 返回编码 |
errors | - | 报错 |
message | - | 返回信息 |
messageId | - | 返回信息编码 |
success | - | 成功响应 |
warnList | - | 废弃字段 |
...
| 代码块 |
|---|
{
"code": "0",
"data": {
"error": "",
"shippingPlanNo": "A7317230301000001SA12283230308000003S"
},
"errors": "",
"message": "",
"messageId": "",
"success": true,
"warnList": ""
} |
| 代码块 |
|---|
{ "code": "0005", "data": "", "errors": [ { "code": "800010", "message": "Po CA-0001test030742, status can not create ASN" } ], "message": "paramter error", "messageId": "", "success": false, "warnList": "" } |
...