描述

在系统中创建一条出库单数据

路径

HTTP Verb

URL

POST

/api/supplier-service/v1/transport/order/create


请求头样例


POST /api/supplier-service/v1/b2c/orders HTTP/1.1
Host: http://cfs-qa.etowertech.com/
Content-Type: application/json
Accept: application/json
Authorization:WallTech etotest8xkIIphLnbkjRACNj4P:pc9H97D-_b2_TSCVvNj81A
X-WallTech-Date:Tue, 02 Aug 2022 06:43:37 GMT



字段

字段名

数据类型

最大长度

必填性

描述

订单基本信息

referenceNo


50

M

客户参考号

warehouseCode
50M仓库代码

serviceName


50

M

尾程服务名称

outboundType

M1:FBA, 2:一般
referenceNoFba
100
FBA参考号
orderNoFba
100
FBA ID
stockType


库存类型:0:以仓库为准,1:标准区,2:保留区
isInsuranceBoolean

是否使用保险服务
insuranceValueDecimal

投保金额 ,使用保险服务时为必填
insuranceValueCurrency


投保金额币种, 使用保险服务时为必填,默认usd
isNeedConfirmBoolean
M

是否自动确认发送,默认为true

true则无需再调用8.预报出库单接口,会自动进行预报

false则需要再调用8.预报出库单接口,否则订单只是草稿订单

面单信息
labelListList<Object>

面单信息
fileName
100
文件名,带后缀
fileContent


base64
fileType


文件类型
收件人信息

recipientWarehouseCode


50

O/M

收件地址代码

recipientName


50

O/M

收件人名称

recipientCompany


50

O

收件公司名称

recipientEmail


100

O

收件人邮箱

recipientPhone


50

O/M

收件人电话

addressLine1


200

O/M

收件地址行1

addressLine2


200

O

收件地址行3

addressLine3


200

O

收件地址行3

city


100

O/M

收件城市

state


100

O

收件省份

district


100

O

收件区

postcode


15

O/M

收件地址邮编

country


2

O/M

收件国家

商品信息
productItems;List<Object>
M商品列表

boxNo


30

M

箱号

sku


10

M

商品 Sku

productQty


100

M

商品数量

返回值

orderNo


-

返回值

系统订单号

referenceNo


客户订单号
fbaCode


fbaCode

code


-

-

返回编码

errors


-

-

报错

message


-

-

返回信息

messageId


-

-

返回信息编码

success


-

-

成功响应

warnList


-

-

废弃字段



请求样例


{
        "referenceNo": "order00001",
        "serviceName": "B2C服务",
        "warehouseCode": "11112",
		"outboundType": "",
		"warehouseCode": "",
		"referenceNoFba": "",
		"orderNoFba": "",
		"stockType": "",
		"isInsurance": true,
		"insuranceValue": 0,
		"insuranceValueCurrency": "",
		 "labelList": [
            {
                "fileName": "xxxxxx.pdf",
                "fileContent": "base64 content",
				"fileType":"pdf"
            }
        ],
        "recipientWarehouseCode": "Canada Warehouse",
        "recipientCompany": "",
        "nativeDescription": "",
        "description": "",
        "country": "",
        "state": "",
        "city": "",
        "district": "",
        "addressLine1": "",
        "addressLine2": "",
        "addressLine3": "",
        "postcode": "",
        "recipientName": "",
        "recipientPhone": "",
        "recipientEmail": "",
        "remark": "",
        "isNeedConfirm":true,
        "productItems": [
            {
				"boxNo": "1",
                "sku": "deli1498603",
                "productQty": 2
            }
        ]
  }



返回样例


[
    {
        "code": "0",
        "data": {
            "orderNo": "C12283221114000002O",
            "referenceNo": "order00002",
			"fbaCode":"1321321231421"
        },
        "errors": "",
        "message": "",
        "messageId": "",
        "success": true,
        "warnList": ""
    }
]



[
    {
        "code": "0005",
        "data": "",
        "errors": [
            {
                "code": "600904",
                "message": "referenceNo:order00001,Already exists in the system"
            }
        ],
        "message": "paramter error",
        "messageId": "",
        "success": false,
        "warnList": ""
    }
]