版本比较

标识

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

Description

Add a new item.

Send up to 30 items at a time

Path

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

FieldData TypeLengthMandatoryDescription

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

(10
BigDecimal

(8,2)

M

价格

Declare value of product

currency

String

3

M

币种

Product currency

hsCode

String

20

M

原始国HSCODE

HSCode in origin country

url

String

4000

O

商品链接

Product URL

skuRemark

String

255

O

商品信息备注

Product

productLength

BigDecimal
(5

(8,1)

M

长度

Declare lenght of product

productWidth

(5
BigDecimal

(8,1)

M

宽度

Declare width of product

productHeight

BigDecimal
(5

(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

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

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;(在countryInformationItems中,区别于原始国hscode)

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

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

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


[
代码块
themeMidnight
[
    {
        "code": "0",
        "data": {
            "barcode": "UBI1228323020300003S",
            "sku": "gas stove00001"
        },
        "errors": "",
        "message": "",
        "messageId": "",
        "success": true,
        "warnList": ""
    },
    {
        "code": "0",
        "data": {
            "barcode": "UBI1228322111400008SUBI1228323020300004S",
            "sku": "gas stove12stove00002"
        },
        "errors": "",
        "message": "",
        "messageId": "",
        "success": true,
        "warnList": ""
    }
]


代码块
themeMidnight
[
    [
    {
        "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": ""
    }
]

...