GET api/Pos/Setting/ProductClass/Query/FirstLevel/ByShopId/{shopid}
检索系统中的一级商品类别的清单(仅检索一级清单,且下辖至少一种商品)。 一次只能检索一个门店的ID。展示的商品类别一定是在当前门店有报价的。
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| shopid |
门店ID。 |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
检索系统中的一级商品类别的清单(仅检索一级清单,且下辖至少一种商品)。 一次只能检索一个门店的ID。展示的商品类别一定是在当前门店有报价的。
CommonOperationResultWithTagOfIEnumerableOfPosProductClassItemResult| Name | Description | Type | Additional information |
|---|---|---|---|
| errcode | integer |
None. |
|
| errmsg | string |
None. |
|
| tag | Collection of PosProductClassItemResult |
None. |
Response Formats
application/json, text/json
Sample:
{
"errcode": 1,
"errmsg": "sample string 2",
"tag": [
{
"productclasscode": "sample string 1",
"productclassname": "sample string 2"
},
{
"productclasscode": "sample string 1",
"productclassname": "sample string 2"
}
]
}
application/xml, text/xml
Sample:
<CommonOperationResultWithTagOfArrayOfPosProductClassItemResultldpHZqFJ 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:PosProductClassItemResult>
<d2p1:productclasscode>sample string 1</d2p1:productclasscode>
<d2p1:productclassname>sample string 2</d2p1:productclassname>
</d2p1:PosProductClassItemResult>
<d2p1:PosProductClassItemResult>
<d2p1:productclasscode>sample string 1</d2p1:productclasscode>
<d2p1:productclassname>sample string 2</d2p1:productclassname>
</d2p1:PosProductClassItemResult>
</tag>
</CommonOperationResultWithTagOfArrayOfPosProductClassItemResultldpHZqFJ>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.