版本比较

标识

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

...

HTTP Verb

URL

POST

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


Header Sample

代码块
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=

Fields

Field

Data Type

Length

Mandatory

Description

shipMethod

Int

10

M

发送方式(固定传“1”)

Ship method to warehouse(Fixed send “1”)

warehouseCode

String

50

M

目的仓代码

Destination warehouse code

poNoList

String[]

50

M

订单标识内容

PO

eta

DateTime

20

M

预计到达时间

ETA info

remark

String

100

O

备注信息

Remark of ASN

lastMailType

Int

10

M

尾程类型

Last Mile type

expressNo

String

50

O/M

快递单号(lastMailType值为“1”时必填)

express No(The field is required When field lastMailType send “1”

truckType

Int

10

O/M

卡车类型(lastMailType值为“2”时必填)

Truck type(The field is required When field lastMailType send “2”

containerType

Int

10

O/M

集装箱类型(truckType值为“1”时必填)

Container type(The field is required When field truckType send “1”

quantity

Int

10

O/M

集装箱数量(truckType值为“1”时必填)

Container qty(The field is required When field truckType send “1”

volume

BigDecimal

10

O/M

总体积(truckType值为“2”时必填)

Total volume(The field is required When field truckType send “2”

weight

BigDecimal

10

O/M

总重量(truckType值为“2”时必填)

Total weight(The field is required When field truckType send “2”

palletCount

Int

10

O/M

托盘数量(truckType值为“2”时必填)

Total Pallet amout(The field is required When field truckType send “2”

shippingPlanNo

String

-

返回值

Response

Asn参考号

ASN reference No

code

String

-

-

返回编码

Response code

errors

Object[]

-

-

报错

Response error

message

String

-

-

返回信息

Response message

messageId

String

-

-

返回信息编码

Response message ID

success

Boolean

-

-

成功响应

Success

warnList

-

-

-

废弃字段

No use


Remark

代码块
备注:
字段shipmethod请固定传1
字段LastMileType可选值为Remark:
Field shipmethod fixed send "1"
Field LastMileType option is"1"(express)、"2"(Truck)
当选用1时,字段TrackingNo为必填项
当选用2时,字段TruckType为必填项
字段TruckType可选值为The field "expressNo" is required When field lastMailType send "1" 
The field "truckType" is required When field lastMailType send "2" 
Field truckType option is"1"(FCL)、"2"(LCL)
当选用1时,字段ContainerType、ContainerCount为必填项
当选用2时,字段Volume、Weight、TrayAmount为必填项
字段containerType可选值为The field "containerType" and "quantity" is required When field truckType send "1"
The field "volume" and "weight" "palletCount" is required When field truckType send "2"
Field containerType option is"1"(20GP)、"2"(40GP)、"3"(40HQ)、"4"(45HQ)

...

代码块
{
    "shipMethod": 1,
    "warehouseCode": "CanadaAustralian warehouseWarehouse",
    "eta": "20222023-1002-2503 09:37:48",
    "poNoList": [
        "CA-0001AUTEST000002"
    ],
    "remark": "",
    "lastMailType": "1",
    "truckType": "",
    "palletCount": 0,
    "weight": 0.00,
    "volume": 0.00,
    "expressNoList": [
        "1"
    ],
    "containerInfoList": [
        {
            "containerType": 0,
            "quantity": 0
        }
    ]
}

...

代码块
{
    "code": "0",
    "data": {
        "error": "",
        "shippingPlanNo": "A12283221114000003SA12283230203000002S"
    },
    "errors": "",
    "message": "",
    "messageId": "",
    "success": true,
    "warnList": ""
}



代码块
 {
    "code": "0005",
    "data": "",
    "errors": [
        {
            "code": "800010",
            "message": "Po CA-0001AUTEST000002, status can not create ASN"
        }
    ],
    "message": "paramter error",
    "messageId": "",
    "success": false,
    "warnList": ""
}

...