GET api/Pos/Product/PriceAndInventory/Only/Query?productid={productid}
获取某个商品的价格及库存。
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| productid |
商品的ID,为空时将返回这个店铺所有在售商品的价格与库存。 |
integer |
Default value is 0 |
Body Parameters
None.
Response Information
Resource Description
获取某个商品的价格及库存。
CommonOperationResultWithTagOfIEnumerableOfPosShopPriceAndInventoryItem| Name | Description | Type | Additional information |
|---|---|---|---|
| errcode | integer |
None. |
|
| errmsg | string |
None. |
|
| tag | Collection of PosShopPriceAndInventoryItem |
None. |
Response Formats
application/json, text/json
Sample:
{
"errcode": 1,
"errmsg": "sample string 2",
"tag": [
{
"ShopId": "sample string 1",
"Unit": "sample string 2",
"RetailPrice": 1.0,
"RetailLowestPrice": 1.0,
"Inventory": 1.0,
"AddState": "sample string 3"
},
{
"ShopId": "sample string 1",
"Unit": "sample string 2",
"RetailPrice": 1.0,
"RetailLowestPrice": 1.0,
"Inventory": 1.0,
"AddState": "sample string 3"
}
]
}
application/xml, text/xml
Sample:
<CommonOperationResultWithTagOfArrayOfPosShopPriceAndInventoryItemldpHZqFJ 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:PosShopPriceAndInventoryItem>
<d2p1:AddState>sample string 3</d2p1:AddState>
<d2p1:Inventory>1</d2p1:Inventory>
<d2p1:RetailLowestPrice>1</d2p1:RetailLowestPrice>
<d2p1:RetailPrice>1</d2p1:RetailPrice>
<d2p1:ShopId>sample string 1</d2p1:ShopId>
<d2p1:Unit>sample string 2</d2p1:Unit>
</d2p1:PosShopPriceAndInventoryItem>
<d2p1:PosShopPriceAndInventoryItem>
<d2p1:AddState>sample string 3</d2p1:AddState>
<d2p1:Inventory>1</d2p1:Inventory>
<d2p1:RetailLowestPrice>1</d2p1:RetailLowestPrice>
<d2p1:RetailPrice>1</d2p1:RetailPrice>
<d2p1:ShopId>sample string 1</d2p1:ShopId>
<d2p1:Unit>sample string 2</d2p1:Unit>
</d2p1:PosShopPriceAndInventoryItem>
</tag>
</CommonOperationResultWithTagOfArrayOfPosShopPriceAndInventoryItemldpHZqFJ>