POST api/Pos/Setting/Product/T/Modify
修改一个已经存在的商品的信息。
Request Information
URI Parameters
None.
Body Parameters
PosProductParmName | Description | Type | Additional information |
---|---|---|---|
productid |
商品的ID |
integer |
None. |
productname |
商品的名称 |
string |
Required Max length: 40 |
barcode |
商品的条形码 |
string |
Max length: 20 |
unit |
商品的单位 |
string |
Required Max length: 8 |
normalretailprice |
商品的一般零售价 |
decimal number |
Required |
normallowestretailprice |
商品的一般零售折扣底价 |
decimal number |
Required |
normalpurchaseprice |
商品的一般进货价 |
decimal number |
Required |
productclasscode |
商品的所属类别 |
string |
Required Max length: 9 |
producttype |
商品的类型 |
string |
Max length: 20 |
isneedweighing |
是否计重商品 |
string |
Required Max length: 1 |
state |
商品的状态 |
string |
Required Max length: 1 |
standard |
商品的规格 |
string |
Max length: 30 |
producingarea |
商品的产地 |
string |
Max length: 20 |
qualitylevel |
商品的质量标准 |
string |
Max length: 30 |
indexcode |
商品的检索码,可以不输入。 |
string |
Max length: 40 |
reserv1 |
保留一 |
string |
Max length: 50 |
reserved |
保留二 |
string |
Max length: 50 |
Details |
套装商品明细 |
Collection of PosProductSubParm |
None. |
Request Formats
application/json, text/json
Sample:
{ "productid": 1, "productname": "sample string 2", "barcode": "sample string 3", "unit": "sample string 4", "normalretailprice": 5.0, "normallowestretailprice": 6.0, "normalpurchaseprice": 7.0, "productclasscode": "sample string 8", "producttype": "sample string 9", "isneedweighing": "sample string 10", "state": "sample string 11", "standard": "sample string 12", "producingarea": "sample string 13", "qualitylevel": "sample string 14", "indexcode": "sample string 15", "reserv1": "sample string 16", "reserved": "sample string 17", "Details": [ { "ProductID": 1, "SubProductID": 2, "Amount": 3.0, "ProductUnit": "sample string 4" }, { "ProductID": 1, "SubProductID": 2, "Amount": 3.0, "ProductUnit": "sample string 4" } ] }
application/xml, text/xml
Sample:
<PosProductParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm"> <Details> <PosProductSubParm> <Amount>3</Amount> <ProductID>1</ProductID> <ProductUnit>sample string 4</ProductUnit> <SubProductID>2</SubProductID> </PosProductSubParm> <PosProductSubParm> <Amount>3</Amount> <ProductID>1</ProductID> <ProductUnit>sample string 4</ProductUnit> <SubProductID>2</SubProductID> </PosProductSubParm> </Details> <barcode>sample string 3</barcode> <indexcode>sample string 15</indexcode> <isneedweighing>sample string 10</isneedweighing> <normallowestretailprice>6</normallowestretailprice> <normalpurchaseprice>7</normalpurchaseprice> <normalretailprice>5</normalretailprice> <producingarea>sample string 13</producingarea> <productclasscode>sample string 8</productclasscode> <productid>1</productid> <productname>sample string 2</productname> <producttype>sample string 9</producttype> <qualitylevel>sample string 14</qualitylevel> <reserv1>sample string 16</reserv1> <reserved>sample string 17</reserved> <standard>sample string 12</standard> <state>sample string 11</state> <unit>sample string 4</unit> </PosProductParm>
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.