POST api/UnPos/Merchant/Product/V/Modify
修改一个商品
Request Information
URI Parameters
None.
Body Parameters
MerchantProductModifyParmName | Description | Type | Additional information |
---|---|---|---|
ProductId |
商品ID int NOT NULL. |
integer |
Required |
ProductName |
商品名 Varchar(40) NOT NULL. |
string |
Required Max length: 40 |
BarCode |
条码 Varchar(20) |
string |
Max length: 20 |
BaseUnit |
基本单位 Varchar(8) NOT NULL. |
string |
Required Max length: 8 |
ProductClassCode |
商品类别 Varchar(6) NOT NULL. |
string |
Required Max length: 6 |
NormalRetailPrice |
一般零售价 Numeric(8,2) NN |
decimal number |
Required |
NormalLowestRetailPrice |
一般零售底价 Numeric(8,2)NN |
decimal number |
Required |
NormalPurchaePrice |
一般采购价 Numeric(8,2) NN |
decimal number |
Required |
SellType |
商品销售特性 char(1) NN |
string |
Required Max length: 1 |
ProductStatus |
状态 char(1) NN |
string |
Required Max length: 1 |
Standard |
规格 Varchar(30) |
string |
Max length: 30 |
ProducingArea |
产地 Varchar(20) |
string |
Max length: 20 |
QualityLevel |
质量标准 Varchar(30) |
string |
Max length: 30 |
Reserve1 |
保留一 Varchar(50) |
string |
Max length: 50 |
Reserve2 |
保留二 Varchar(50) |
string |
Max length: 50 |
LastUpdUser |
最后更新用户 Varchar(20) |
integer |
Required |
Request Formats
application/json, text/json
Sample:
{ "ProductId": 1, "ProductName": "sample string 2", "BarCode": "sample string 3", "BaseUnit": "sample string 4", "ProductClassCode": "sample string 5", "NormalRetailPrice": 6.0, "NormalLowestRetailPrice": 7.0, "NormalPurchaePrice": 8.0, "SellType": "sample string 9", "ProductStatus": "sample string 10", "Standard": "sample string 11", "ProducingArea": "sample string 12", "QualityLevel": "sample string 13", "Reserve1": "sample string 14", "Reserve2": "sample string 15", "LastUpdUser": 16 }
application/xml, text/xml
Sample:
<MerchantProductModifyParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.UnPos.Parms"> <BarCode>sample string 3</BarCode> <BaseUnit>sample string 4</BaseUnit> <LastUpdUser>16</LastUpdUser> <NormalLowestRetailPrice>7</NormalLowestRetailPrice> <NormalPurchaePrice>8</NormalPurchaePrice> <NormalRetailPrice>6</NormalRetailPrice> <ProducingArea>sample string 12</ProducingArea> <ProductClassCode>sample string 5</ProductClassCode> <ProductId>1</ProductId> <ProductName>sample string 2</ProductName> <ProductStatus>sample string 10</ProductStatus> <QualityLevel>sample string 13</QualityLevel> <Reserve1>sample string 14</Reserve1> <Reserve2>sample string 15</Reserve2> <SellType>sample string 9</SellType> <Standard>sample string 11</Standard> </MerchantProductModifyParm>
application/x-www-form-urlencoded
Sample:
Sample not available.
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
修改一个商品
CommonOperationResultName | Description | Type | Additional information |
---|---|---|---|
errcode |
错误代码,通常0表示成功,其他值表示错误。 |
integer |
None. |
errmsg |
错误描述,当errcode不为零时,此值可以用于呈现给用户。 |
string |
None. |
tag |
操作同时,服务器端需要返回的其他值。 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "errcode": 1, "errmsg": "sample string 2", "tag": "sample string 3" }
application/xml, text/xml
Sample:
<CommonOperationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer"> <errcode>1</errcode> <errmsg>sample string 2</errmsg> <tag>sample string 3</tag> </CommonOperationResult>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.