POST api/OpenWebApi/CreateProduct

创建产品

Request Information

URI Parameters

None.

Body Parameters

ProductInfo
NameDescriptionTypeAdditional information
UserCode

客户代码(必填)

string

None.

SellerSKU

产品条码(必填)

string

None.

UserSKU

用户自己的产品条码

string

None.

ProductName

产品名称

string

None.

ProductEnName

产品英文名称

string

None.

ModelType

规格型号

string

None.

Length

长(必填)

decimal number

None.

Width

宽(必填)

decimal number

None.

Height

高(必填)

decimal number

None.

Weight

重量(必填)

decimal number

None.

DeclaredValue

产品申报价格

decimal number

None.

ImageFilePath

图片地址

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserCode": "sample string 1",
  "SellerSKU": "sample string 2",
  "UserSKU": "sample string 3",
  "ProductName": "sample string 4",
  "ProductEnName": "sample string 5",
  "ModelType": "sample string 6",
  "Length": 1.0,
  "Width": 1.0,
  "Height": 1.0,
  "Weight": 1.0,
  "DeclaredValue": 7.0,
  "ImageFilePath": "sample string 8"
}

application/xml, text/xml

Sample:
<ProductInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OpenWebApi.Models.Response">
  <DeclaredValue>7</DeclaredValue>
  <Height>1</Height>
  <ImageFilePath>sample string 8</ImageFilePath>
  <Length>1</Length>
  <ModelType>sample string 6</ModelType>
  <ProductEnName>sample string 5</ProductEnName>
  <ProductName>sample string 4</ProductName>
  <SellerSKU>sample string 2</SellerSKU>
  <UserCode>sample string 1</UserCode>
  <UserSKU>sample string 3</UserSKU>
  <Weight>1</Weight>
  <Width>1</Width>
</ProductInfo>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResultOfBoolean
NameDescriptionTypeAdditional information
Status

ResultStatusCode

None.

Msg

string

None.

Data

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 200,
  "Msg": "sample string 1",
  "Data": true
}

application/xml, text/xml

Sample:
<ResultOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OpenWebApi.Models">
  <Data>true</Data>
  <Msg>sample string 1</Msg>
  <Status>Success</Status>
</ResultOfboolean>