版本比较

标识

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

...

代码块
POST /api/supplier-service/v1/product/create HTTP/1.1
Content-Type: application/json
Accept: application/json
User-Agent: Mozilla 5.0
Host: http://qa.etowertech.com/
X-WallTech-Date: Thu, 06 Aug 2020 06:36:24 GMT
Authorization: WallTech testLvs2jdug2qIoRsJyuxs:VaWNgikNP0NGcoxVCeWYid50MYQ=

Fields

FieldData TypeLengthMandatoryDescription

sku

Varchar
String

30

M

商品编码

skuNameCn

Varchar
String

255

M

商品中文名

skuNameEn

Varchar
String

255

M

商品英文名

model

Varchar
String

127

O

商品型号

productMaterial

Varchar
String

50

M

商品材质

productUsage

Varchar
String

50

M

商品用途

brand

Varchar
String

50

O

品牌

grossWeight

Decimal

(8,3)

M

重量

invoiceValue

Decimal

(10,2)

M

价格

currency

Varchar
String

3

M

币种

hsCode

Varchar
String

20

M

原始国HSCODE

url

Varchar
String

4000

O

商品链接

skuRemark

Varchar
String

255

O

商品信息备注

productLength

Decimal

(5,1)

M

长度

productWidth

Decimal

(5,1)

M

宽度

productHeight

Decimal

(5,1)

M

高度

batterySize

Int

--

M

电池配置 0:无电池,1:外置电池,2:内置电池,3:纯电池

otherAttributes

Int

--

M

其他属性 0:液体,1:粉末,2:胶状物,3:液体 & 粉末,4:液体 & 胶状物,5:粉末 & 胶状物,6:液体 & 粉末 & 胶状物,7:以上都不包含

shippingBagPacked

Int

--

M

是否自带物流包装 0 否 1是

packagingAttributes

Varchar
String

300

O

物流包装属性

originCountry

Varchar
String

2

O

原产国 请填写国家二字码

countryInformationItems

Object[]

--

M

国家属性

countryCode

Varchar

2

M

国家二字码

hsCode

Varchar

20

M

目的国HSCODE;(在countryInformationItems中,区别于原始国hscode)

destinationCountryBrand

Int

--

M

目的国品牌:0:自有品牌

1:品牌授权 2:无品牌

remark

Varchar
String

255

M

备注

tallyRule

Int

--

O

理货规则 :1:单件 2:单箱

barcode

String

-

返回值

系统商品编号

code

String

-

-

返回编码

errors

Object[]

-

-

报错

message

String

-

-

返回信息

messageId

String

-

-

返回信息编码

success

Boolean

-

-

成功响应

warnList


-

-

废弃字段


Request Sample


代码块
[
{
"sku": "gas stove03",
"skuNameCn": "燃气灶",
"skuNameEn":"gas stove",
"model": "sso01",
"productMaterial": "耐高温材质",
"productUsage": "厨房烧燃气做饭",
"brand": "老板",
"grossWeight": "15",
"invoiceValue":"999",
"currency": "CNY",
"hsCode": "121212",
"url": "",
"skuRemark": "",
"productLength":"100",
"productWidth":"50",
"productHeight":"40",
"batterySize":"0", 
"otherAttributes":"7",
"shippingBagPacked":"1",
"packagingAttributes": "DFAGFDSFTRE",
"originCountry": "",
"countryInformationItems": [
{
"countryCode": "US",
"hsCode": "23512423",
"destinationCountryBrand":"2",
"remark": ""
}
],
"tallyRule":"1"
}
]

...