转至元数据结尾
转至元数据起始

正在查看旧版本。 查看 当前版本.

与当前比较 查看页面历史

« 前一个 版本 22 下一个 »

描述

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

路径

HTTP Verb

URL

POST

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


请求头样例


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

warehouseCode

删掉


50

M

目的仓代码

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

shipDate


发出时间(新增)

billOfLading




提单号(新增)
eta
20M预计到达时间
remark
200OASN备注
运输类型

lastMailType

transportationType


10M

入库运输类型

快递:1

卡车:2

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

快递单号

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

可以有多个快递单号

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

卡车类型

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

海运整柜:1

海运散柜:2

铁运整柜:3

铁运散柜:4

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

装箱规格:

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

入库单


备注


备注:
1、字段shipmethod请固定传1
2、字段LastMileType可选值为"1"(express)、"2"(Truck)
	2.1、当选用1时,字段expressnolist为必填项,可多组
	2.2、当选用2时,字段TruckType为必填项
		字段TruckType可选值为"1"(海运整柜)、"2"(海运散柜)、"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,
            "quantity": null,
            "containerNo": null
        }
    ],
    "shipDate": "2023-03-07 15:15:48",
    "billOfLading": "提单号"
}
2、入库类型为卡车单:
{
    "shipMethod": 1,
    "eta": "2023-03-14 09:37:48",
    "poNoList": [
        "test030742"
    ],
    "remark": "1234567890",
    "lastMailType": 2,
    "truckType": 1,
    "palletCount": 1,
    "weight": 2,
    "weightUnit":"KG",
    "volume": 1,
    "volumeUnit":"CBM",
    "expressNoList": [
       "11231"
    ],
    "containerInfoList": [
        {
            "containerType": 5,
            "quantity": 2,
            "containerNo": 5
        }
    ],
    "shipDate": "2023-03-07 15:15:48",
    "billOfLading": "提单号"
}

返回样例





shippingPlanNo

返回值

Asn参考号

code

-

返回编码

errors

-

报错

message

-

返回信息

messageId

-

返回信息编码

success

-

成功响应

warnList

-

废弃字段



{
    "code": "0",
    "data": {
        "error": "",
        "shippingPlanNo": "A12283230308000003S"
    },
    "errors": "",
    "message": "",
    "messageId": "",
    "success": true,
    "warnList": ""
}



{
    "code": "0005",
    "data": "",
    "errors": [
        {
            "code": "800010",
            "message": "Po test030742, status can not create ASN"
        }
    ],
    "message": "paramter error",
    "messageId": "",
    "success": false,
    "warnList": ""
}




  • 无标签