Description
Add a new item.
Send up to 30 items at a time
Path
| HTTP Verb | URL |
|---|---|
| POST | /api/supplier-service/v1/product/create |
Header Sample
| 代码块 |
|---|
POST /api/supplier-service/v1/product/ |
...
create 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 |
|---|---|---|---|---|
sku | String | 30 | M |
SKU Code | |||
skuNameCn | String | 255 | M |
Product name in Chinese | |||
skuNameEn | String | 255 | M |
Product name in English | |||
model | String | 127 | O |
Product model | |||
productMaterial | String | 50 | M |
Product material | |||
productUsage | String | 50 | M |
Product usage | |||
brand | String | 50 | O |
Product brand | |||
grossWeight | BigDecimal | (8,3) | M |
Declare weight of product |
invoiceValue |
| BigDecimal | (8,2) | M |
Declare value of product | |||
currency | String | 3 | M |
Product currency | |||
hsCode | String | 20 | M |
HSCode in origin country | |||
url | String | 4000 | O |
Product URL | |||
skuRemark | String | 255 | O |
Product | |
productLength | BigDecimal |
(8,1) | M |
Declare lenght of product |
productWidth |
| BigDecimal | (8,1) | M |
Declare width of product |
productHeight |
| BigDecimal | (8,1) | M |
Declare height of product | |||
batterySize | Int | -- | M |
Battrey size of product 0: |
no battery,1: |
packaged with Equipment,2: |
inside battery,3: |
Batteries Only | |||
otherAttributes | Int | -- | M |
Other attributes 0: |
Liquid,1: |
Powder,2: |
Jelly,3: |
Liquid & |
Powder,4: |
Liquid & |
Jelly,5: |
Powder & |
Jelly,6: |
Liquid & |
Powder & |
Jelly,7: |
Does no Contain | |||
shippingBagPacked | Int | -- | M |
Shipping Pack for Product 0:No 1:Yes | |||
packagingAttributes | String | 300 | O |
Packaging attribute of product | |||
originCountry | String | 2 | O |
Orgin country, please country code in two character | |||
countryInformationItems | Object[] | -- | M |
Country info | |||
countryCode | Varchar | 2 | M |
Country code in two character | |||
hsCode | Varchar | 20 | M |
HSCode in destination country;(in field countryInformationItems,Please insert different country code from HSCode in origin country) | |||
destinationCountryBrand | Int | -- | M |
目的国品牌:0:自有品牌
1:品牌授权 2:无品牌Brand type in destination country:0:Private Brand 1:Authorized Brand 2:No Brand | |||
remark | String | 255 | M |
Remark for product | |||
tallyRule | Int | -- | O |
Tally rule 1:Piece 2:Box | ||
barcode | String | - |
返回值
Response | Product barcode in system | ||
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
| 代码块 |
|---|
[ { "sku": "gas stove00001", "skuNameCn": "gas stove", "skuNameEn": "gas stove", "model": "sso01", "productMaterial": "High temperature resistant material", "productUsage": "The kitchen burns gas for cooking", "brand": "BOSS", "grossWeight": "15", "invoiceValue": "999", "currency": "CNY", "hsCode": "121212", "url": "", "skuRemark": "", "status": 0, "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" }, { "sku": "gas stove03stove00002", "skuNameCn": "燃气灶gas stove", "skuNameEn": "gas stove", "model": "sso01", "productMaterial": "耐高温材质High temperature resistant material", "productUsage": "厨房烧燃气做饭The kitchen burns gas for cooking", "brand": "老板BOSS", "grossWeight": "15", "invoiceValue": "999", "currency": "CNY", "hsCode": "121212", "url": "", "skuRemark": "", "status": 0, "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": "UBI1228323020300003S",
"sku": "gas stove00001": "UBI1228322111400008S
},
"errors": "",
"message": "",
"messageId": "",
"success": true,
"warnList": ""
},
{
"code": "0",
"data": {
"barcode": "UBI1228323020300004S",
"sku": "gas stove12stove00002"
},
"errors": "",
"message": "",
"messageId": "",
"success": true,
"warnList": ""
}
] |
| 代码块 |
|---|
[ { "code": "0005", "data": "gas stove00001", "errors": [ { "code": "100025", "message": "SKU:gas stove00001,Repeated" } ], "message": "paramter error", "messageId": "", "success": false, "warnList": "" }, { "code": "0005", "data": "gas stove03stove00002", "errors": [ { "code": "100025", "message": "SKU:gas stove03stove00002,Repeated" } ], "message": "paramter error", "messageId": "", "success": false, "warnList": "" } ] |
...