转至元数据结尾
转至元数据起始

正在查看旧版本。 查看 当前版本.

与当前比较 查看页面历史

« 前一个 版本 11 下一个 »

Description

Add a new item.

Send up to 30 items at a time

Path

HTTP VerbURL
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=

Fields

FieldData TypeLengthMandatoryDescription

sku

String

30

M

商品编码

skuNameCn

String

255

M

商品中文名

skuNameEn

String

255

M

商品英文名

model

String

127

O

商品型号

productMaterial

String

50

M

商品材质

productUsage

String

50

M

商品用途

brand

String

50

O

品牌

grossWeight

BigDecimal

(8,3)

M

重量

invoiceValue

BigDecimal

(10,2)

M

价格

currency

String

3

M

币种

hsCode

String

20

M

原始国HSCODE

url

String

4000

O

商品链接

skuRemark

String

255

O

商品信息备注

productLength

BigDecimal

(5,1)

M

长度

productWidth

BigDecimal

(5,1)

M

宽度

productHeight

BigDecimal

(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

String

300

O

物流包装属性

originCountry

String

2

O

原产国 请填写国家二字码

countryInformationItems

Object[]

--

M

国家属性

countryCode

Varchar

2

M

国家二字码

hsCode

Varchar

20

M

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

destinationCountryBrand

Int

--

M

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

1:品牌授权 2:无品牌

remark

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"
}
]


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": ""
    }
]



  • 无标签