GET api/Pos/Setting/Product/V/Query/SimpleRet?shopid={shopid}&state={state}&productclasscode={productclasscode}&keyword={keyword}
查询某一个门店商品的清单,并以简单数据类型返回。 (主要用于在小程序上获取显示的信息)。
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| shopid |
门店ID,必须指定。 |
string |
Required |
| state |
1表示仅检索可售的商品,0表示仅检索不可售的商品,空表示全部的商品 |
string |
Default value is |
| productclasscode |
商品类别码,不指定时表示不限。 |
string |
Default value is |
| keyword |
关键字,可以是商品名,商品名拼音声母首字母,可以是条码。 |
string |
Default value is |
Body Parameters
None.
Response Information
Resource Description
查询某一个门店商品的清单,并以简单数据类型返回。 (主要用于在小程序上获取显示的信息)。
CommonOperationResultWithTagOfIEnumerableOfPosProductItemByShopResult| Name | Description | Type | Additional information |
|---|---|---|---|
| errcode | integer |
None. |
|
| errmsg | string |
None. |
|
| tag | Collection of PosProductItemByShopResult |
None. |
Response Formats
application/json, text/json
Sample:
{
"errcode": 1,
"errmsg": "sample string 2",
"tag": [
{
"shopid": "sample string 1",
"productid": 2,
"retailprice": 3.0,
"retaillowestprice": 4.0,
"inventory": 5.0,
"shopname": "sample string 6",
"productname": "sample string 7",
"barcode": "sample string 8",
"unit": "sample string 9",
"productlasscode": "sample string 10",
"productclassname": "sample string 11",
"isneedweighing": "sample string 12",
"state": "sample string 13",
"totalvaluebyprice": 14.0,
"totalvaluebylowestprice": 15.0,
"imgurl": "sample string 16"
},
{
"shopid": "sample string 1",
"productid": 2,
"retailprice": 3.0,
"retaillowestprice": 4.0,
"inventory": 5.0,
"shopname": "sample string 6",
"productname": "sample string 7",
"barcode": "sample string 8",
"unit": "sample string 9",
"productlasscode": "sample string 10",
"productclassname": "sample string 11",
"isneedweighing": "sample string 12",
"state": "sample string 13",
"totalvaluebyprice": 14.0,
"totalvaluebylowestprice": 15.0,
"imgurl": "sample string 16"
}
]
}
application/xml, text/xml
Sample:
<CommonOperationResultWithTagOfArrayOfPosProductItemByShopResultldpHZqFJ 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 xmlns:d2p1="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Result">
<d2p1:PosProductItemByShopResult>
<d2p1:barcode>sample string 8</d2p1:barcode>
<d2p1:imgurl>sample string 16</d2p1:imgurl>
<d2p1:inventory>5</d2p1:inventory>
<d2p1:isneedweighing>sample string 12</d2p1:isneedweighing>
<d2p1:productclassname>sample string 11</d2p1:productclassname>
<d2p1:productid>2</d2p1:productid>
<d2p1:productlasscode>sample string 10</d2p1:productlasscode>
<d2p1:productname>sample string 7</d2p1:productname>
<d2p1:retaillowestprice>4</d2p1:retaillowestprice>
<d2p1:retailprice>3</d2p1:retailprice>
<d2p1:shopid>sample string 1</d2p1:shopid>
<d2p1:shopname>sample string 6</d2p1:shopname>
<d2p1:state>sample string 13</d2p1:state>
<d2p1:totalvaluebylowestprice>15</d2p1:totalvaluebylowestprice>
<d2p1:totalvaluebyprice>14</d2p1:totalvaluebyprice>
<d2p1:unit>sample string 9</d2p1:unit>
</d2p1:PosProductItemByShopResult>
<d2p1:PosProductItemByShopResult>
<d2p1:barcode>sample string 8</d2p1:barcode>
<d2p1:imgurl>sample string 16</d2p1:imgurl>
<d2p1:inventory>5</d2p1:inventory>
<d2p1:isneedweighing>sample string 12</d2p1:isneedweighing>
<d2p1:productclassname>sample string 11</d2p1:productclassname>
<d2p1:productid>2</d2p1:productid>
<d2p1:productlasscode>sample string 10</d2p1:productlasscode>
<d2p1:productname>sample string 7</d2p1:productname>
<d2p1:retaillowestprice>4</d2p1:retaillowestprice>
<d2p1:retailprice>3</d2p1:retailprice>
<d2p1:shopid>sample string 1</d2p1:shopid>
<d2p1:shopname>sample string 6</d2p1:shopname>
<d2p1:state>sample string 13</d2p1:state>
<d2p1:totalvaluebylowestprice>15</d2p1:totalvaluebylowestprice>
<d2p1:totalvaluebyprice>14</d2p1:totalvaluebyprice>
<d2p1:unit>sample string 9</d2p1:unit>
</d2p1:PosProductItemByShopResult>
</tag>
</CommonOperationResultWithTagOfArrayOfPosProductItemByShopResultldpHZqFJ>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.