版本比较

标识

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

Description

Create a draft fulfillment order in eTowerOne.

We will update this api before the end of  durning Feb. 2023

Path

HTTP Verb

URL

POST

/api/supplier-service/v1/b2c/orders


Header Sample

代码块
POST /api/supplier-service/v1/b2c/orders 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:36:24 GMT
Authorization: WallTech testLvs2jdug2qIoRsJyuxs:VaWNgikNP0NGcoxVCeWYid50MYQ=



FiledsFields

Field

Data Type

Length

Mandatory

Description

referenceNo

String

50

M

客户参考号

Unique identification of fulfillment

warehouseServiceName

String

50

M

尾程服务名称

Lastmile service name

consigneeAddressCode

String

50

O/M

收件地址代码

Consignee address code

useConsigneeAddressCode

Boolean

2

O

MO使用收件地址代码

Use consignee address code or not

recipientName

String

50

O/M

收件人名称

Recipient name

recipientCompany

String

50

O

收件公司名称

Recipient company name

email

String

100

O

收件人邮箱

Recipient email

phone

String

50

O/M

收件人电话

Recipient phone number

addressLine1

String

200

O/M

收件地址行1

Recipient address line 1

addressLine2

String

200

O

收件地址行3

Recipient address line 2

addressLine3

String

200

O

收件地址行3

Recipient address line 3

city

String

100

O/M

收件城市

Recipient city

state

String

100

O

收件省份

Recipient state

district

String

20

O

收件区

Recipient district

postcode

String

15

O/M

收件地址邮编

Recipient postcode

country

String

2

O/M

收件国家

Recipient company

description

String

100

O

描述(英文)

Description of order

nativeDescription

String

100

O

描述

Native description of order

weight

BigDecimal

(

10

8,3)

O

包裹重量(废弃字段,可以传但是不存)

Declare Parcel weight(no use)

weightUnit

String

5

O

包裹重量单位(废弃字段,可以传但是不存)

Parcel weight unit(no use

volume

BigDecimal

(

10

8,3)

O

包裹体积(废弃字段,可以传但是不存)

Declare Parcel volume(no use

dimensionUnit

String

5

O

包裹体积单位(废弃字段,可以传但是不存)

Parcel volume unit(no use

length

BigDecimal

(

5

8,1)

O

包裹长度(废弃字段,可以传但是不存)

Declare Parcel length(no use

width

BigDecimal

(

5

8,1)

O

包裹宽度(废弃字段,可以传但是不存)

Declare Parcel widthno use

height

BigDecimal

(

5

8,1)

O

包裹高度(废弃字段,可以传但是不存)

Declare Parcel heightno use

platform

String

50

O

电商平台SKU

Platform where order created

shipperAddressCode

String

50

M

发件仓库代码

Warehouse code of departure

sku

String

30

M

商品

SKU code

productQty

Int

10

M

商品数量

Total product qty in order

remark

String

100

O

出库单备注

Remark of order

orderNo

String

-

返回值

Response

系统订单号

Order No

code

String

-

-

返回编码

Response code

errors

Object[]

-

-

报错

Response error

message

String

-

-

返回信息

Response message

messageId

String

-

-

返回信息编码

Response message ID

success

Boolean

-

-

成功响应

Success

warnList

-

-

废弃字段

-

No use


Request Sample


代码块
[
    {
            {        "referenceNo":  "order00001AUTEST1",
                "warehouseServiceName":  "B2C服务TEST06",
                "consigneeAddressCode":  "11112",
                "useConsigneeAddressCode": true,
         "FALSE",        "shipperAddressCode":  "Canada WarehouseAustralian Warehouse",
                "recipientCompany":  "testcompany",
                "nativeDescription":  "",
                "description":  "",
                "country":  "AU",
                "state":  "NSW",
                "city":  "Villawood",
                "district":  "peaceful area",
                "addressLine1":  "C/O 2B/246 Miller Road",
                "addressLine2":  "",
                "addressLine3":  "",
                "postcode":  "2163",
                "recipientName":  "Amar Nair",
                "phone":  "32143344",
                "email":  "",
                "remark":  "",
        "weight": 1,
        "weightUnit": "KG",
        "volume": 1,
        "dimensionUnit": "CM",
        "length": 100,
        "width": 100,
        "height": 100,
        "platform": "",
        "productItems": [
            
            {
                "sku": "deli1498603",
                "productQty": 2
            }
        ]
    }
]

Response

代码块
[
    {
        "code": "0",
        "data": {
            "orderNo": "C12283221114000002O",
            "referenceNo": "order00002"
        },
        "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": ""
    }
]        "weight": "",        "weightUnit": "",        "volume": "",        "dimensionUnit": "",        "length": "",        "width": "",        "height": "",        "platform": "",        "productItems": [                        {                "sku": "SKG",                "productQty": "1"            },            {                "sku": "electric fan",                "productQty": "2"            }        ]    },    {        "referenceNo": "AUTEST2",        "warehouseServiceName": "TEST06",        "consigneeAddressCode": "",        "useConsigneeAddressCode": "FALSE",        "shipperAddressCode": "Australian Warehouse",        "recipientCompany": "testcompany",        "nativeDescription": "",        "description": "",        "country": "AU",        "state": "NSW",        "city": "Villawood",        "district": "peaceful area",        "addressLine1": "C/O 2B/246 Miller Road",        "addressLine2": "",        "addressLine3": "",        "postcode": "2163",        "recipientName": "Amar Nair",        "phone": "32143344",        "email": "",        "remark": "",        "weight": "",        "weightUnit": "",        "volume": "",        "dimensionUnit": "",        "length": "",        "width": "",        "height": "",        "platform": "",        "productItems": [                        {                "sku": "SKG",                "productQty": "1"            },            {                "sku": "electric fan",                "productQty": "2"            }        ]    }]



Response


代码块
[    {        "code": "0",        "data": {            "orderNo": "C12283230203000001O",            "referenceNo": "AUTEST1"        },        "errors": "",        "message": "",        "messageId": "",        "success": true,        "warnList": ""    },    {        "code": "0",        "data": {            "orderNo": "C12283230203000002O",            "referenceNo": "AUTEST2"        },        "errors": "",        "message": "",        "messageId": "",        "success": true,        "warnList": ""    }]



代码块
[    {        "code": "0005",        "data": {            "orderIndex": 1,            "referenceNo": "AUTEST1"        },        "errors": [            {                "code": "600904",                "message": "referenceNo:AUTEST1,Already exists in the system"            }        ],        "message": "paramter error",        "messageId": "",        "success": false,        "warnList": ""    },    {        "code": "0005",        "data": {            "orderIndex": 2,            "referenceNo": "AUTEST2"        },        "errors": [            {                "code": "600904",                "message": "referenceNo:AUTEST2,Already exists in the system"            }        ],        "message": "paramter error",        "messageId": "",        "success": false,        "warnList": ""    }]