版本比较

标识

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

接口说明

创建海外仓一件代发小包订单创建直邮小包订单


路径

HTTP Verb 

URL

POST
Post

qa:

 

https://cfs-qa.etowertech.com/api/supplier-service/

/

api

v1/

supplier-service

openApi/

v2

packetOrder/b2c/

orders

createOrders

 

请求头样例


POST 

POST /

api

v1/

supplier-service

openApi/

v2

packetOrder/b2c/

orders 

createOrders 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

请求字段(request)

...


Table Filter

...

fixedCols

...

totalrow

...

ddSeparator

...

sparkName

...

Sparkline

...

hidePane

...

Filtration Panel

...

limitHeight

...

default

...

cell-width

...

贸易术语(新增)

DDU

DDP

...

揽收类型(新增)

pick up 上门揽收

drop off 自送到仓(不填默认)

...

是否投保(新增)

否(默认)

...

是否签名(新增)

否(默认)

...

收件人地址代码

比如ONT8表示某个亚马逊仓库

...

收件人电话

...

拓展字段key-value形式

...

totalRowName

...

渠道名称

仅限英文字符

...

B2C=小包直邮

Fulfillment =一件代发(此处固定为该值)

固定值Fulfillment=?(新增)

totalColName
id1678688780671
formatVersion2
order
inverse
numbering
isNewfalse
sort
totalcol
rowsPerPage
separatorPoint (.)
labels
thousandSeparator
ignoreFirstNrows
heightValue
isORAND


字段三级字段四级字段类型长度限制中文含义描述是否必填补充描述
facility

String50发件人网点B2C:shipper facility
FF:warehouse
M

orderUniqueNumber

referenceNo



String50订单唯一编码区分不同订单用M
orderType

String10订单类型枚举:
B2C=小包直邮(此处为该值)
Fulfillment=仓库一件代发
M
originPortCode

String
始发港(空港/海港)英文代码O
injectPortCode

String50目的港英文代码O
channelCode

String64渠道代码英文、英文标点M
channelOption

String64渠道选项英文、英文标点O
platform

Short20平台

枚举

1: Amazon

2: eBay

请按照页面底部附件“平台名称”要求填写

O
incoterm

String50贸易术语枚举
DDU
DDP
O
collectionType 


20揽收类型枚举
Pick up上门揽收
Drop off自送到仓
不填默认drop off
O

insuranceOrNot

isInsurance



Boolean3是否投保boolean 不填默认falseO

signatureOrNot

isSignature



Boolean3是否签名boolean 不填默认falseO
remark


200备注
O
extendData



拓展字段比如IOSS
key-value形式


consigneeaddressCode
String50收件人地址代码比如ONT8表示某个亚马逊仓库

name
String50收件人姓名
M

orderType=Fulfillment :不必填;

orderType=B2C :必填;
company
String512收件人公司


phone
String50

...

收件人电话


email
String50

...

收件人邮箱


countryCode
String2

...

目的国二字代码

...

英文代码

...

M

orderType=Fulfillment :不必填;

orderType=B2C :必填;
state
String80

...

收件人省/州


city
String80

...

收件人城市
M

orderType=Fulfillment :不必填;

orderType=B2C :必填;
district
String128

...

收件人区


addressLine1
String200

...

收件人地址第一行
M

orderType=Fulfillment :不必填;

orderType=B2C :必填;
addressLine2
String200

...

收件人地址第二行


addressLine3
String80

...

收件人地址第三行


zipCode
String16

...

收件人邮编


taxId

...


String

...

255

...

收件人税号

...




taxId1

...


String

...

255

...

收件人税号1

...




extendData

...




拓展字段

...




shippername

...


String

...

50

...

发件人姓名

...

dangerousGoods

...

危险品

DG=危险品

空=非危险品(默认)

...

...

包裹类型(新增)

No Battery 不带电:(值)

Inside Equipment 带电:(值)

...

重量单位:

KG(默认)
G
LB

...

尺寸单位

CM(默认)
M

...

发票币种三字代码(新增)

(传了用传的,没传的话系统根据SKU算)

...

发票金额(新增)

传了用传的,没传的话系统根据SKU算)

...

拓展字段key-value(新增)

'keepShipService': xxx boolean?是=否

'xxId':xxx

...

受益人

公司

...

受益人的身份证

收益公司的组织机构代码证

...

投保币种三字代码

比如CNY;USD

...

date

...

请求样例

...

[
{
"facility": "Canada Warehouse Toronto 3-FBA2431425677i656434536",
"channelCode": "hwc",
"platform": "12345678901234567890",
"remark": "testremark",
"consignee": {
"addressCode": "test",
"name": "testname",
"company": "testcompany",
"countryCode": "cn",
"state": "teststate",
"city": "testcity",
"district": "testdistirct",
"addressLine1": "testaddressline1",
"addressLine2": "testaddressline2",
"addressLine3": "testaddressline3",
"zipCode": "testzipcode",
"phone": "testphone",
"email": "testemail@123.com"
},
"shipper": {
"addressCode": "",
"name": "",
"company": "",
"countryCode": "",
"state": "",
"city": "",
"district": "",
"addressLine1": "",
"addressLine2": "",
"addressLine3": "",
"zipCode": "",
"phone": "",
"email": ""
},
"parcels": {
"referenceNo": "testnewapi017",
"description": "GOODSSKG",
"weight": "12",
"weightUnit": "",
"length": "",
"width": "",
"height": "",
"dimensionUnit": "CM",
"items": [
{
"sku": "testgoods",
"quantity": "1"
}
]
}
},
{
"facility": "Canada Warehouse Toronto 3-FBA2431425677i656434536",
"channelCode": "hwc",
"platform": "12345678901234567890",
"remark": "testremark",
"consignee": {
"addressCode": "11112",
"name": "testname",
"company": "testcompany",
"countryCode": "cn",
"state": "teststate",
"city": "testcity",
"district": "testdistirct",
"addressLine1": "testaddressline1",
"addressLine2": "testaddressline2",
"addressLine3": "testaddressline3",
"zipCode": "testzipcode",
"phone": "testphone",
"email": "testemail@123.com"
},
"shipper": {
"addressCode": "",
"name": "",
"company": "",
"countryCode": "",
"state": "",
"city": "",
"district": "",
"addressLine1": "",
"addressLine2": "",
"addressLine3": "",
"zipCode": "",
"phone": "",
"email": ""
},
"parcels": {
"referenceNo": "testnewapi018",
"description": "GOODSSKG",
"weight": "12",
"weightUnit": "",
"length": "",
"width": "",
"height": "",
"dimensionUnit": "CM",
"items": [
{
"sku": "testgoods",
"quantity": "1"
}
]
}
}
]

返回样例

成功样例

[
{
"code": "0",
"data": {
"orderNo": "C12283230214000029O",
"referenceNo": "testnewapi017"
},
"errors": "",
"message": "",
"messageId": "",
"success": true,
"warnList": ""
},
{
"code": "0",
"data": {
"orderNo": "C12283230214000030O",
"referenceNo": "testnewapi018"
},
"errors": "",
"message": "",
"messageId": "",
"success": true,
"warnList": ""
}
]

失败样例

...



orderType=B2C

才可以填写shipper 对象,且非必填

company
String512发件人公司

phone
String50发件人电话

email
String50发件人邮箱

countryCode
String2始发国二字代码英文代码
state
String80发件人省/州

city
String80发件人城市

district
String128发件人区

addressLine1
String200发件人地址第一行

addressLine2
String200发件人地址第二行

addressLine3
String80发件人地址第三行

zipCode
String16发件人邮编

taxId
String255发件人税号

taxId1
String255发件人税号1

extendData


拓展字段 key-value

returnAddress

returnOption退件选项String50枚举:
退件
销毁
枚举:
退件
销毁

orderType=B2C

才可以填写returnAddress对象,且非必填

name退件人姓名String512


company退件人公司String50


phone退件人电话String50


email退件人邮箱String2


countryCode退件人国家二字代码String80英文代码英文代码
state退件人省/州String80


city退件人城市String128


district退件人区String200


addressLine1退件人地址第一行String200


addressLine2退件人地址第二行String80


addressLine3退件人地址第三行String16


zipCode退件人邮编String255


extendData拓展字段




parcelsreferenceNo
String80包裹参考号
M
referenceNo1
String80包裹参考号1


referenceNo2
String80包裹参考号2


consignmentId
String50包裹货物ID澳邮要求MLID+ConsignmentID 2年内不得重复使用数字

trackingNo
String80包裹跟踪号


descriptionEn
String255包裹英文描述
M

orderType=Fulfillment :不必填;

orderType=B2C :必填;
description
String255包裹中文描述


dangerousGoods
Boolean3包裹是否危险品true=危险品
false=非危险品


batteryType
Boolean3包裹带电类型枚举
true=带电
false=不带电


weight
BigDecimal8,3包裹重量8位,小数点后3位M
weightUnit
String10重量单位枚举:
KG(默认)
G
LB


length
BigDecimal8,2包裹长


width
BigDecimal8,2包裹宽


height
BigDecimal8,2包裹高


dimensionUnit
String8尺寸单位枚举:
CM(默认)
M


invoiceCurrencyCode
String5发票币种三字代码英文代码

invoiceValue
BigDecimal20,2发票金额
M

orderType=Fulfillment :不必填;

orderType=B2C :必填;

transactionCurrency
BigDecimal8,2交易币种电商平台成交币种

transactionAmount
BigDecimal8,2交易金额电商平台成交金额

shippingInstruction
String50装运指示会显示在部分渠道的面单上

sortCode
String50分拣码会显示在部分渠道的面单上

extendData


拓展字段

拓展字段key-value(新增)

'keepShipService': xxx boolean 是/否

'xxId':xxx



itemsitemNumberString128商品编号


itemDescEnString255商品英文描述


itemDescString255商品本地描述


skuString128SKU编码
M
hsCodeString128海关编码


quantityInteger11商品数量
M
quantityUnitString10商品数量单位


unitPricedecimal10,2单价


pictureString
图片base64

salesURLString500销售链接


originCountryCodeString10原产国二字代码英文代码

weightBigDecimal10,3重量


usageString255用途


matertial

material

String255材质


extendData

拓展字段


insurance
(说明:如果isInsurance是true要填)
insuranceTypeString30投保类型可能是用来区分不同的保险第三方平台或者产品

beneficiaryTypeString20受益人类型枚举:
公司=company
个人=individual


beneficiaryString255受益人/公司


beneficiaryIdString20身份证/组织机构代码证


insuranceCurrencyCodeString8投保二字代码币种


insuranceAmountBigDecimal20,3保险金额


extendData

拓展字段


collectionInfo

collection

date
date3揽收日期年月日
(说明:如果类型是pickup,要填)
name
String512客户姓名

company
String50客户公司

phone
String50客户电话

email
String2客户邮箱

countryCode
String80客户国家二字代码英文代码
state
String80客户省/州

city
String128客户城市

district
String200客户区

addressLine1
String200客户地址第一行

addressLine2
String80客户地址第二行

addressLine3
String16客户地址第三行

zipCode
String255客户邮编

extendData


拓展字段



请求样例

"ordertype":"Fulfillment"

代码块
[
    {
        "facility": "Australian Warehouse",
        "channelCode": "AU test",
        "channelOption": "",
        "referenceNo": "030919",
        "orderType": "Fulfillment",
        "originPortCode": "",
        "injectPortCode": "",
        "platform": "eBay",
        "incoterm": "",
        "collectionType": null,
        "isInsurance": "",
        "isSignature": "",
        "remark": "testremark",
        "extendData": {
            "extend": null
        },
        "consignee": {
            "addressCode": "11113",
            "addressLine1": "street9230",
            "addressLine2": "8349hao",
            "addressLine3": "345shi",
            "city": "testcity",
            "company": "testcompany",
            "countryCode": "us",
            "district": "testdistrict",
            "email": "testemail@123.com",
            "extendData": null,
            "name": "Mack",
            "phone": "36247938384",
            "state": "teststate",
            "taxId": "testtaxid",
            "taxId1": "testtaxid1",
            "zipCode": "8238juej"
        },
        "shipper": {
            "addressLine1": "",
            "addressLine2": "",
            "addressLine3": "",
            "city": "",
            "company": "",
            "countryCode": "",
            "district": "",
            "email": "",
            "extendData": null,
            "name": "1",
            "phone": "",
            "state": "",
            "taxId": "",
            "taxId1": "",
            "zipCode": ""
        },
        "returnAddress": {
            "addressLine1": "",
            "addressLine2": "",
            "addressLine3": "",
            "city": "",
            "company": "",
            "countryCode": "",
            "district": "",
            "email": "",
            "extendData": null,
            "name": "",
            "phone": "",
            "returnOption": "",
            "state": "",
            "zipCode": ""
        },
        "parcels": [
            {
                "referenceNo": "12",
                "referenceNo1": "",
                "referenceNo2": "",
                "consignmentId": "",
                "trackingNo": "",
                "descriptionEn": "",
                "description": "",
                "dangerousGoods": false,
                "batteryType": "false",
                "weight": 1.245,
                "weightUnit": "",
                "length": "",
                "width": "",
                "height": "",
                "dimensionUnit": "CM",
                "invoiceCurrencyCode": "",
                "invoiceValue": "12.22",
				"transactionCurrency": "USD",
                "transactionAmount": "5.12",
                "shippingInstruction": "",
                "sortCode": "",
                "extendData": {
                    "keepShipService": false
                },
                "items": [
                    {
                        "extendData": null,
                        "hsCode": "",
                        "itemDesc": "",
                        "itemDescEn": "",
                        "itemNumber": "",
                        "matertial": "",
                        "originCountryCode": "",
                        "picture": "",
                        "quantity": "1",
                        "quantityUnit": "",
                        "salesURL": "",
                        "sku": "SKG",
                        "unitPrice": "",
                        "usage": "",
                        "weight": null
                    },
                    {
                        "extendData": null,
                        "hsCode": "",
                        "itemDesc": "",
                        "itemDescEn": "",
                        "itemNumber": "",
                        "matertial": "",
                        "originCountryCode": "",
                        "picture": "",
                        "quantity": "1",
                        "quantityUnit": "",
                        "salesURL": "",
                        "sku": "TESTcommodity",
                        "unitPrice": "",
                        "usage": "",
                        "weight": null
                    }
                ],
                "insurance": [
                    {
                        "insuranceAmount": "",
                        "insuranceCurrencyCode": "",
                        "insuranceType": "",
                        "beneficiaryType": "",
                        "beneficiary": "",
                        "beneficiaryId": "",
                        "extendData": null
                    }
                ]
            }
        ],
        "collection": {
            "date": "",
            "addressLine1": "",
            "addressLine2": "",
            "addressLine3": "",
            "city": "",
            "company": "",
            "countryCode": "",
            "district": "",
            "email": "",
            "extendData": null,
            "name": "",
            "phone": "",
            "state": "",
            "zipCode": ""
        }
    },
    {
        "facility": "Australian Warehouse",
        "channelCode": "AU test",
        "channelOption": "",
        "referenceNo": "030920",
        "orderType": "Fulfillment",
        "originPortCode": "",
        "injectPortCode": "",
        "platform": "eBay",
        "incoterm": "",
        "collectionType": null,
        "isInsurance": "",
        "isSignature": "",
        "remark": "testremark",
        "extendData": {
            "extend": null
        },
        "consignee": {
            "addressCode": "11113",
            "addressLine1": "street9230",
            "addressLine2": "8349hao",
            "addressLine3": "345shi",
            "city": "testcity",
            "company": "testcompany",
            "countryCode": "us",
            "district": "testdistrict",
            "email": "testemail@123.com",
            "extendData": null,
            "name": "Mack",
            "phone": "36247938384",
            "state": "teststate",
            "taxId": "testtaxid",
            "taxId1": "testtaxid1",
            "zipCode": "8238juej"
        },
        "shipper": {
            "addressLine1": "",
            "addressLine2": "",
            "addressLine3": "",
            "city": "",
            "company": "",
            "countryCode": "",
            "district": "",
            "email": "",
            "extendData": null,
            "name": "1",
            "phone": "",
            "state": "",
            "taxId": "",
            "taxId1": "",
            "zipCode": ""
        },
        "returnAddress": {
            "addressLine1": "",
            "addressLine2": "",
            "addressLine3": "",
            "city": "",
            "company": "",
            "countryCode": "",
            "district": "",
            "email": "",
            "extendData": null,
            "name": "",
            "phone": "",
            "returnOption": "",
            "state": "",
            "zipCode": ""
        },
        "parcels": [
            {
                "referenceNo": "12",
                "referenceNo1": "",
                "referenceNo2": "",
                "consignmentId": "",
                "trackingNo": "",
                "descriptionEn": "",
                "description": "",
                "dangerousGoods": false,
                "batteryType": "false",
                "weight": 1.245,
                "weightUnit": "",
                "length": "",
                "width": "",
                "height": "",
                "dimensionUnit": "CM",
                "invoiceCurrencyCode": "",
                "invoiceValue": "12.22",
                "shippingInstruction": "",
                "sortCode": "",
                "extendData": null,
                "items": [
                    {
                        "extendData": null,
                        "hsCode": "",
                        "itemDesc": "",
                        "itemDescEn": "",
                        "itemNumber": "",
                        "matertial": "",
                        "originCountryCode": "",
                        "picture": "",
                        "quantity": "1",
                        "quantityUnit": "",
                        "salesURL": "",
                        "sku": "SKG",
                        "unitPrice": "",
                        "usage": "",
                        "weight": null
                    },
                    {
                        "extendData": null,
                        "hsCode": "",
                        "itemDesc": "",
                        "itemDescEn": "",
                        "itemNumber": "",
                        "matertial": "",
                        "originCountryCode": "",
                        "picture": "",
                        "quantity": "1",
                        "quantityUnit": "",
                        "salesURL": "",
                        "sku": "TESTcommodity",
                        "unitPrice": "",
                        "usage": "",
                        "weight": null
                    }
                ],
                "insurance": [
                    {
                        "insuranceAmount": "",
                        "insuranceCurrencyCode": "",
                        "insuranceType": "",
                        "beneficiaryType": "",
                        "beneficiary": "",
                        "beneficiaryId": "",
                        "extendData": null
                    }
                ]
            }
        ],
        "collection": {
            "date": "",
            "addressLine1": "",
            "addressLine2": "",
            "addressLine3": "",
            "city": "",
            "company": "",
            "countryCode": "",
            "district": "",
            "email": "",
            "extendData": null,
            "name": "",
            "phone": "",
            "state": "",
            "zipCode": ""
        }
    }
]


返回样例

成功样例

"ordertype":"Fulfillment"

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


失败样例

"ordertype":"Fulfillment"

代码块
{
    "code": "0",
    "data": {
        "030920": [
            {
                "code": "600904",
                "message": "referenceNo:030920,Already exists in the system"
            }
        ],
        "030919": [
            {
                "code": "600904",
                "message": "referenceNo:030919,Already exists in the system"
            }
        ]
    },
    "errors": "",
    "message": "",
    "messageId": "",
    "success": true,
    "warnList": ""
}




ps: test001是 订单唯一编码 ,区分不同订单的不同错误描述。批量操作 成功的不会返回,会直接保存。


附件