描述
添加新的商品,最多支持单条同时发送30个商品
路径
| 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=
字段
| 字段名 | 数据类型 | 必填性 | 描述 | |
|---|---|---|---|---|
sku | M | SKU编码 | ||
| barCodeNumber | 条形码编号(新增) | |||
skuNameCn | M | 品名(中文) | ||
skuNameEn | M | 品名(英文) | ||
originCountry | O | 原产国二字码,如CN;US | ||
| hsCode | M | (目的国)海关编码(默认值) | ||
importClearance (原countryInformationItems?) | list? | O | 进口清关信息 (原国家属性?) | |
| countryCode | M | 目的国家/地区(新增) | ||
| hsCode | M | 海关编码(新增) | ||
| destinationCountryBrand | O | 品牌 属性: 0:自有品牌 1:品牌授权 2:无品牌 | ||
| remark | M?->O | 备注 | ||
estimateWeight | M | 预估商品重量 | ||
| estimateWeightUnit | M | 预估商品重量单位(新增) KG;LB | ||
estimateLength | M | 预估商品长 | ||
→estimateWidth | M | 预估商品宽 | ||
→estimateHeight | M | 预估商品高 | ||
| estimateDimensionUnit | 预估商品尺寸单位(新增)CM;IN | |||
declareValue | M | 申报价值 | ||
| actualValue | O | 实际价值(新增) | ||
currency | M | 币种三字码,如CNY;EUR | ||
shippingBagPacked | M | 自带物流包装 0 否 1是 | ||
packagingAttributes | O | 物流包装属性 | ||
brand | O | 品牌 | ||
| supplier | 供应商(新增) | |||
model | O | 型号 | ||
material | M | 材质 | ||
usage | M | 用途 | ||
| combinationType | O | 组合类型(新增) item kit box | ||
tallyRule | O | 理货规则 1:单件 2:单箱 | ||
battery | M | 电池配置 0:无电池,1:外置电池,2:内置电池,3:纯电池 | ||
otherAttributes | M | 其他属性 0:液体,1:粉末,2:胶状物,3:液体 & 粉末,4:液体 & 胶状物, 5:粉末 & 胶状物,6:液体 & 粉末 & 胶状物,7:以上都不包含 | ||
| hazardous | O | 危险品(新增) | ||
| UnHazardCode | O | 危险代码 DG:是危险品(新增) | ||
| prop65 | O | Prop65 是 否(新增) | ||
| food | O | 食品 是否(新增) | ||
| refrigerated | O | 冷藏 是;否(新增) | ||
| hasSerialNumber | O | 序列号 是;否(新增) | ||
| isLotControlled | O | 批次管理 是;否(新增) | ||
salesUrl | O | 销售链接 | ||
| picture | O | 图片 格式base64(新增) | ||
| warehouseCode | O | 仓库代码 注意可以是多个海外仓(新增) | ||
remark | O | 备注 |
请求样例
[
{
"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"
}
]
barcode | 返回值 | 系统商品编号 |
code | - | 返回编码 |
errors | - | 报错 |
message | - | 返回信息 |
messageId | - | 返回信息编码 |
success | - | 成功响应 |
warnList | - | 废弃字段 |
返回样例
[
{
"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": ""
}
]