POST Api/F/YH/GoodsSizeColourPriceEdit?FactoryID={FactoryID}&GoodsID={GoodsID}

编辑商品型号颜色价格

Request Information

URI Parameters

NameDescriptionTypeAdditional information
FactoryID

供应商系统编号

globally unique identifier

Required

GoodsID

商品编号

globally unique identifier

Required

Body Parameters

商品规格颜色价格信息

GoodsSizeColourPriceModel
NameDescriptionTypeAdditional information
ID

编号

globally unique identifier

None.

Count

库存

integer

None.

Price

进货价格

decimal number

None.

RetailPrice

建议零售价

decimal number

None.

RetailNnitName

建议零售单位

string

None.

NnitName

单位名称

string

None.

UnitNum

单位数量

integer

None.

State

状态

boolean

None.

GoodsSize

商品规格

GoodsSizeModel

None.

GoodsColour

商品颜色

GoodsColourModel

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": "4df83e42-30a9-41f1-af7f-3dcb434561a2",
  "Count": 2,
  "Price": 3.0,
  "RetailPrice": 4.0,
  "RetailNnitName": "sample string 5",
  "NnitName": "sample string 6",
  "UnitNum": 7,
  "State": true,
  "GoodsSize": {
    "ID": "26557b01-b0e3-4df1-a60c-a8300880bcf0",
    "Name": "sample string 2",
    "Description": "sample string 3"
  },
  "GoodsColour": {
    "ID": "9d9e37e4-a7e6-484b-88e8-65d0f725e409",
    "Name": "sample string 2",
    "Image": "sample string 3",
    "Thumbnail": "sample string 4",
    "Description": "sample string 5"
  }
}

application/xml, text/xml

Sample:
<GoodsSizeColourPriceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LijiyTow.Liji_E.EAPI.Models.F.YH">
  <Count>2</Count>
  <GoodsColour>
    <Description>sample string 5</Description>
    <ID>9d9e37e4-a7e6-484b-88e8-65d0f725e409</ID>
    <Image>sample string 3</Image>
    <Name>sample string 2</Name>
    <Thumbnail>sample string 4</Thumbnail>
  </GoodsColour>
  <GoodsSize>
    <Description>sample string 3</Description>
    <ID>26557b01-b0e3-4df1-a60c-a8300880bcf0</ID>
    <Name>sample string 2</Name>
  </GoodsSize>
  <ID>4df83e42-30a9-41f1-af7f-3dcb434561a2</ID>
  <NnitName>sample string 6</NnitName>
  <Price>3</Price>
  <RetailNnitName>sample string 5</RetailNnitName>
  <RetailPrice>4</RetailPrice>
  <State>true</State>
  <UnitNum>7</UnitNum>
</GoodsSizeColourPriceModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'GoodsSizeColourPriceModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.