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

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

与当前比较 查看页面历史

« 前一个 版本 8 下一个 »

Description

Shipper call this api to modify fulfillment orders before being created in 3rd party warehouse successfully.

The following status can call this API.

order status = 0 (created)

order status = 2 (abnormal)

Path

HTTP Verb

URL

PUT

/api/supplier-service/v1/b2c/editOrder


Header Sample

POST /api/supplier-service/v1/b2c/editOrder 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=


Fields

Field

Data Type

Length

Mandatory

Description

orderNo

String

128

M

Order No

warehouseServiceName

String

50

M

Lastmile service name

consigneeAddressCode

String

50

O/M

Consignee address code

useConsigneeAddressCode

Boolean

2

O

Use consignee address code or not

recipientName

String

128

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

Recipient address line 1

addressLine2

String

200

O

Recipient address line 2

addressLine3

String

200

O

Recipient address line 3

city

String

100

O/M

Recipient city

state

String

100

O

Recipient state

district

String

100

O

Recipient district

postcode

String

15

O/M

Recipient postcode

country

String

2

O/M

Recipient company

weight

BigDecimal

(8,3)

O

Declare Parcel weight(no use)

weightUnit

String

5

O

Parcel weight unit(no use)

volume

BigDecimal

(8,3)

O

Declare Parcel volume(no use)

dimensionUnit

String

5

O

Parcel volume unit(no use)

length

BigDecimal

(8,1)

O

Declare Parcel length(no use)

width

BigDecimal

(8,1)

O

Declare Parcel width(no use)

height

BigDecimal

(8,1)

O

Declare Parcel height(no use)

platform

String

50

O

Platform where order created

shipperAddressCode

String

50

O

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

code

-

-

-

Response code

errors

-

-

-

Response error

message

-

-

-

Response message

messageId

-

-

-

Response message ID

success

-

-

-

Success

warnList

-

-

-

No use




Request

{
    "orderNo": "C12283230105000014O",
    "warehouseServiceName": "TEST08",
    "consigneeAddressCode": "",
    "useConsigneeAddressCode": "FALSE",
    "shipperAddressCode": "double11",
    "recipientCompany": "SHANGHAI公司",
    "nativeDescription": "",
    "description": "",
    "country": "US",
    "state": "加利福尼亚州",
    "city": "London",
    "district": "",
    "addressLine1": "美国华盛顿",
    "addressLine2": "1241224",
    "addressLine3": "街道1241224",
    "postcode": "12345",
    "recipientName": "迈克尔杰克逊",
    "phone": "13332543568",
    "email": "35643645@qq.com",
    "remark": "324432",
    "weight": "23432",
    "weightUnit": "123455",
    "volume": "32423",
    "dimensionUnit": "23423",
    "length": "312",
    "width": "324",
    "height": "432",
    "platform": "",
    "productItems": [
        {
            "sku": "SKG(TEST)",
            "productQty": "2"
        }
    ]
}



Response Sample

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


 {
    "code": "0005",
    "data": "",
    "errors": [
        {
            "code": "400103",
            "message": "country length must between (0) and (2)"
        }
    ],
    "message": "paramter error",
    "messageId": "",
    "success": false,
    "warnList": ""
}





  • 无标签