版本比较

标识

  • 该行被添加。
  • 该行被删除。
  • 格式已经改变。

描述

入库预报(创建ASN)并发送给对应的第三方仓库

路径

HTTP Verb

URL

POST

/api/supplier-service/v1/b2b/asn


请求头样例


POST  /api/supplier-service/v1/b2b/asn     HTTP/1.1

Host: http://cfs-qa.etowertech.com/
Content-Type: application/json
Accept: application/json

User-Agent: Mozilla 5.0

Host: qa.etowertech.com
Authorization:WallTech etotest8xkIIphLnbkjRACNj4P:pc9H97D-_b2_TSCVvNj81A
X-WallTech-Date:
Thu
Tue,
06 Aug 2020
 02 Aug 2022 06:
21
43:
24 GMTAuthorization: WallTech testLvs2jdug2qIoRsJyuxs:2THPh5_j4OTYUGdinstTC4nYqDE=
37 GMT

字段

字段名

数据类型

最大长度

必填性

描述

shipMethod


10

M

头程运输入仓类型

头程运输入仓类型:目前只有:“自有服务”:1

目前只有:“自有服务”:1
shipDate
warehouseCode


O
删掉
发出时间
50

billOfLading

M


O

目的仓代码

为什么还要传?:感觉可以不传

shipDate发出时间(新增)

billOfLading

提单号(新增)
提单号
eta
20M预计到达时间
remark
100

200OASN备注
运输类型

lastMailType

transportationType



10M
入库运输类型

入库运输类型:快递:1;卡车:2

快递:1

卡车:2

运输类型 = 快递类型
expressNo
expressNoList
50C

快递单号

当入库运输类型为快递时,必填

可以有多个快递单号

快递单号(可多组):当入库运输类型为快递时,必填

运输类型 = 卡车类型
truckType
10C

卡车类型

海运散柜:(需补充)

铁运整柜:(需补充)

铁运散柜:(需补充)

卡车类型:当入库运输类型为卡车时,必填

海运整柜:

(需补充)

1;海运散柜:2;铁运整柜:3;铁运散柜:4

当卡车运输的柜子类型 = 整柜类型(可多组)
containerType
10M

装箱规格:

20GP

40GP

40HQ

45HQ

40RH

装箱规格:20GP:1;;40GP:2;40HQ:3;45HQ:4;40RH:5

quantity
10M集装箱数量
containerNo

M柜号
(新增)
当卡车运输的柜子类型 = 散柜(仅一组)
volume
10M总体积CBM
volumeUnit

M目前只能是CBM
(新增)
weight
10M总重量KG
weightUnit

M目前只能是KG
(新增)palletCount

palletQty


10M托盘数量
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"(海运散柜)、"3"(铁运散柜)、"4"(LCL铁运散柜)
当选用1时,字段ContainerType、ContainerCount为必填项
当选用2时,字段Volume、Weight、TrayAmount为必填项
		当选用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,
            "quantity": null,
      "warehouseCode      "containerNo": null
        }
    ],
    "shipDate": "2023-03-07 15:15:48",
    "billOfLading": "Canada warehouse""提单号"
}
2、入库类型为卡车单:
{
    "shipMethod": 1,
    "eta": "20222023-1003-2514 09:37:48",
    "poNoList": [
        "test030749",
        "CA-0001test030750"
    ],
    "remark": "1234567890",
    "lastMailType": "1"2,
    "truckType": ""1,
    "palletCount": 01,
    "weight": 0.002,
    "weightUnit":"KG",
    "volume": 0.00 1,
    "volumeUnit":"CBM",
    "expressNoList": [
        "111231"
    ],
    "containerInfoList": [
        {
            "containerType": 5,
            "quantity": 2,
            "containerNo": 5
        },
        {
            "containerType": 04,
            "quantity": 0 2,
            "containerNo": 5
        }
    ],
    "shipDate": "2023-03-07 15:15:48",
    "billOfLading": "提单号"
}


返回样例





shippingPlanNo

返回值

Asn参考号

code

-

返回编码

errors

-

报错

message

-

返回信息

messageId

-

返回信息编码

success

-

成功响应

warnList

-

废弃字段



代码块
{
    "code": "0",
    "data": {
        "error": "",
        "shippingPlanNo": "A12283221114000003SA12283230308000003S"
    },
    "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": ""
}

...