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

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

与当前比较 查看页面历史

« 前一个 版本 7 下一个 »

Description

Create ASN (batch inbound order) and send ASN to 3rd party warehouse.

Path

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: 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


10

M

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

warehouseCode


50

M

目的仓代码

poNoList


50

M

订单标识内容

eta


20

M

预计到达时间

remark


100

O

备注信息

lastMailType


10

M

尾程类型

expressNo


50

O/M

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

truckType


10

O/M

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

containerType


10

O/M

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

quantity


10

O/M

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

volume


10

O/M

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

weight


10

O/M

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

palletCount


10

O/M

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

shippingPlanNo


-

返回值

Asn参考号

code


-

-

返回编码

errors


-

-

报错

message


-

-

返回信息

messageId


-

-

返回信息编码

success


-

-

成功响应

warnList


-

-

废弃字段


Remark

备注:
字段shipmethod请固定传1
字段LastMileType可选值为"1"(express)、"2"(Truck)
当选用1时,字段TrackingNo为必填项
当选用2时,字段TruckType为必填项
字段TruckType可选值为"1"(FCL)、"2"(LCL)
当选用1时,字段ContainerType、ContainerCount为必填项
当选用2时,字段Volume、Weight、TrayAmount为必填项
字段containerType可选值为"1"(20GP)、"2"(40GP)、"3"(40HQ)、"4"(45HQ)


Request Sample

{
    "shipMethod": 1,
    "warehouseCode": "Canada warehouse",
    "eta": "2022-10-25 09:37:48",
    "poNoList": [
        "CA-0001"
    ],
    "remark": "",
    "lastMailType": "1",
    "truckType": "",
    "palletCount": 0,
    "weight": 0.00,
    "volume": 0.00,
    "expressNoList": [
        "1"
    ],
    "containerInfoList": [
        {
            "containerType": 0,
            "quantity": 0
        }
    ]
}

Response

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



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




  • 无标签