版本比较

标识

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

描述

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

路径

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 etotest8xkIIphLnbkjRACNj4PetotestqwMo2A0aWpGkRoTky3y:pc9H97D-_b2_TSCVvNj81AWnczX2AR6o0sSMehi-8v1g
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
remark
200
备注
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{{$timestamp}}",
   
    "warehouseServiceNamewarehouseCode": "B2C服务Australian Warehouse",
        "consigneeAddressCodeserviceName": "11112testtransservice",
   
    "useConsigneeAddressCodeoutboundType": true,
   "1",
    "shipperAddressCodereferenceNoFba": "Canada Warehouse234234",
        "recipientCompanyorderNoFba": "2323",
   
    "nativeDescriptionstockType": "1",
    "isInsurance": true,
    "descriptioninsuranceValue": ""0,
 
      "countryinsuranceValueCurrency": "",
    "isNeedConfirm": false,
    "statelabelList": "", [
        {
  "city": "",         "districtfileName": "xxxxxx.pdf",
            "addressLine1fileContent": "",
            "addressLine2fileType": "pdf",
        "addressLine3": "",}
    ],
    "postcoderecipientWarehouseCode": "AU POST",
 
      "recipientName": "testcontact",
    "recipientCompany": "testcompany",
    "phonerecipientEmail": "testemail@123.com",
    "recipientPhone": "12312424",
    "emailaddressLine1": "testaddress1",
   
    "remarkaddressLine2": "testaddress2",
   
    "weightaddressLine3": 1"testaddress3",
        "weightUnitcity": "KGtestcity",
 
      "volumestate": 1,
   "teststate",
    "dimensionUnitdistrict": "CMtestdistrict",
 
      "lengthpostcode": 100"23432",
        "widthcountry": 100,
   "CA",
    "heightnativeDescription": 100"",
 
      "platformdescription": "",
        "isNeedConfirm":true,
   "remark": "",
    "productItems": [
   
        {
   
            "skuboxNo": "deli14986031",
                "productQtysku": 2"SKG",
            }"productQty": 2
       ] }
   } ]
}



返回样例


代码块
[
    {
        "code": "0",
        "data": {
        "fbaCode": "",
        "orderNo": "C12283221114000002OT12283230621000006O",
   
        "referenceNo": "order000021687319042"
        },
        "errors": "",
        "message": "",
   
    "messageId": "",
 
      "success": true,
   
    "warnList": ""
   
}
]



代码块
[
    {
        "code": "0005",
   
    "data": "",
  
     "errors": [
   
        {
   
            "code": "6009041000009",
                "message": "referenceNoserviceName:order00001,Already existstesttransservice1 ,Does not exist in the warehouseCode:Australian systemWarehouse"
   
        }
   
    ],
        "message": "paramter error",
        "messageId": "",
        "success": false,
   
    "warnList": ""
 
  }
]