GET api/WebInterface/Pos/Setting/Product/PriceAndInventory/Query/SimpleRet?dwid={dwid}&dwsx={dwsx}&productid={productid}

获取某个商品在某个店铺的价格及库存。

Request Information

URI Parameters

NameDescriptionTypeAdditional information
dwid

客户ID

string

Required

dwsx

客户属性,1-地接社,2组团社,3-协议单位,4-地接部门,5-组团部门,7导游员。

string

Required

productid

商品的ID,为空时将返回这个店铺所有在售商品的价格与库存。

integer

Default value is 0

Body Parameters

None.

Response Information

Resource Description

获取某个商品在某个店铺的价格及库存。

CommonOperationResultWithTagOfIEnumerableOfPosShopPriceAndInventoryItem
NameDescriptionTypeAdditional 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>

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.