Description
Add a new item.
Send up to 30 items at a time
Path
| HTTP Verb | URL |
|---|---|
| POST | /api/supplier-service/v1/product/create |
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=
Fileds
| Field | Data Type | Length | Mandatory | Description |
|---|---|---|---|---|
sku | 30 | M | 商品编码 | |
skuNameCn | 255 | M | 商品中文名 | |
skuNameEn | 255 | M | 商品英文名 | |
model | 127 | O | 商品型号 | |
productMaterial | 50 | M | 商品材质 | |
productUsage | 50 | M | 商品用途 | |
brand | 50 | O | 品牌 | |
grossWeight | (8,3) | M | 重量 | |
invoiceValue | (10,2) | M | 价格 | |
currency | 3 | M | 币种 | |
hsCode | 20 | M | 原始国HSCODE | |
url | 4000 | O | 商品链接 | |
skuRemark | 255 | O | 商品信息备注 | |
productLength | (5,1) | M | 长度 | |
productWidth | (5,1) | M | 宽度 | |
productHeight | (5,1) | M | 高度 | |
batterySize | -- | M | 电池配置 0:无电池,1:外置电池,2:内置电池,3:纯电池 | |
otherAttributes | -- | M | 其他属性 0:液体,1:粉末,2:胶状物,3:液体 & 粉末,4:液体 & 胶状物,5:粉末 & 胶状物,6:液体 & 粉末 & 胶状物,7:以上都不包含 | |
shippingBagPacked | -- | M | 是否自带物流包装 0 否 1是 | |
packagingAttributes | 300 | O | 物流包装属性 | |
originCountry | 2 | O | 原产国 请填写国家二字码 | |
countryInformationItems | -- | M | 国家属性 | |
countryCode | 2 | M | 国家二字码 | |
hsCode | 20 | M | 目的国HSCODE;(在countryInformationItems中,区别于原始国hscode) | |
destinationCountryBrand | -- | M | 目的国品牌:0:自有品牌 1:品牌授权 2:无品牌 | |
remark | 255 | M | 备注 | |
tallyRule | -- | O | 理货规则 :1:单件 2:单箱 | |
barcode | - | 返回值 | 系统商品编号 | |
code | - | - | 返回编码 | |
errors | - | - | 报错 | |
message | - | - | 返回信息 | |
messageId | - | - | 返回信息编码 | |
success | - | - | 成功响应 | |
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"
}
]
Response
[
{
"code": "0",
"data": {
"barcode": "UBI1228322111400008S",
"sku": "gas stove12"
},
"errors": "",
"message": "",
"messageId": "",
"success": true,
"warnList": ""
}
]
[
{
"code": "0005",
"data": "gas stove03",
"errors": [
{
"code": "100025",
"message": "SKU:gas stove03,Repeated"
}
],
"message": "paramter error",
"messageId": "",
"success": false,
"warnList": ""
}
]