Developer Documentation
Create Product

1.Description

 This interface is used for seller or third-party create product. 

2.Scenario

 This interface is used for seller or third-party create product. 

3.Request Information

URL

http://openapi.winit.com.cn/openapi/service

UAT
Action 
action:mms.goods.create

Authentication

Token,md5

Format

json

Protocol

http,post

Rate Limitation

Default 300 requests per minute, can request increase on needs



4.Request Parameter

Name

Type

Length

Required

Description

Example





Accept create multipy product at the same time when pass a product array.

-| code

String

20

N

Product Code


-| eNameString100YProduct Chinese name
-| nNameString100NProduct English name
-| eanString40NEAN Number
-| winitCategoryString40NWinit Category Code

String100NSpecification
-| unitString50YUnit
-| innerQuantityint10YInner Quantity
-| innerUnitString50YInner Unit
-| originCountryCode
String50Y
Origin Country Code

China:CN

United States:US
-| imageUrlString280NImage Url
-| isBrandChar1N(Whether Have Brand(Y/N)
-| brandNameString100NBrand Name
-| weightint10YWeight
-| isBatteryChar1YWhether have Battery(Y/N)
-| lengthint10YLength
-| widthint10YWidth
-| heightint10YHeight
-| volumeint10YVolume







5.Response Parameter

Name

Type

Length

Description

Example

successCountInteger
Success Count
failedCountInteger
Failed Count
errorMessage

Error Message List
-| code

Code
-| message

Error Message

6.Request Example

Request Parameter Setting:

{

"action": "/mms/goods/create", 
"app_key": "XXXXXXXXXXX", 
"data": [{
"code": "TEST00001", 
"eName": "TESTeName", 
"nName": "TEST00001", 
"ean": "EAN0000000001", 
"winitCategory": "1111", 
"specification": "This is just a test of goods , honey Hold me", 
"unit": "dd", 
"innerQuantity": "22", 
"imageUrl": "www.baidu.com", 
"isBrand": "Y", 
"brandName": "I am a grass-mud horse", 
"weight": "32", 
"isBattery": "Y", 
"length": "4", 
"width": "22", 
"height": "5", 
"volume": "22"}],
"format": "json", 
"language": "zh_CN", 
"platform": "API", 
"sign": "00000000000000000000000000000000", 
"sign_method": "md5", 
"timestamp": "2014-06-19 18:03:48", 
"version": "1.0"
}

WINIT Service Response Data Format:

Success

{
"code": "0",
"msg": "OPERATION SUCCESS",
"data": {
"errorMessage": [],
"successCount": 1,
"failedCount": 0
}
}

Failed

{
"code": "0",
"msg": "OPERATION SUCCESS",
"data": {
"errorMessage": [ {
"code": "02010250024",
"message": "winit Category code nonexistence"
}],
"successCount": 0,
"failedCount": 1
}
}