POST api/v1/Product/ReservationList

Gets the stock amounts

Request Information

URI Parameters

None.

Body Parameters

GetStockReservationListParameter
NameDescriptionTypeAdditional information
LocationName

The name of the storage location the data is requested. When location not exists, an error will be thrown

string

None.

Limit

The amount of rows requested per page. Default 50

integer

None.

Page

The requested page related to the limit. default 1

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "LocationName": "sample string 1",
  "Limit": 2,
  "Page": 3
}

application/xml, text/xml

Sample:
<GetStockReservationListParameter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PromotionalOffice.WebApi.Models.Products">
  <Limit>2</Limit>
  <LocationName>sample string 1</LocationName>
  <Page>3</Page>
</GetStockReservationListParameter>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'GetStockReservationListParameter'.

Response Information

Resource Description

Collection of stock amount items.

GetStockReservationListResult
NameDescriptionTypeAdditional information
StockAmounts

List of found reservations

Collection of StockReservationItem

None.

Response Formats

application/json, text/json

Sample:
{
  "StockAmounts": [
    {
      "ArticleOrderNumber": "sample string 1",
      "OwnArticleNumber": "sample string 2",
      "ProductIdentifier": "dd2dc497-b5c4-4adb-8ef5-4e3cdcc14193",
      "ReservatedAmountTotalAmount": 4.0,
      "ReservatedAmountTotalUnit": "sample string 5",
      "VariationIdentifier": "e7b36bbb-bdbf-484a-8685-a49060e97a36"
    },
    {
      "ArticleOrderNumber": "sample string 1",
      "OwnArticleNumber": "sample string 2",
      "ProductIdentifier": "dd2dc497-b5c4-4adb-8ef5-4e3cdcc14193",
      "ReservatedAmountTotalAmount": 4.0,
      "ReservatedAmountTotalUnit": "sample string 5",
      "VariationIdentifier": "e7b36bbb-bdbf-484a-8685-a49060e97a36"
    }
  ]
}

application/xml, text/xml

Sample:
<GetStockReservationListResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PromotionalOffice.WebApi.Models.Products">
  <StockAmounts>
    <GetStockReservationListResult.StockReservationItem>
      <ArticleOrderNumber>sample string 1</ArticleOrderNumber>
      <OwnArticleNumber>sample string 2</OwnArticleNumber>
      <ProductIdentifier>dd2dc497-b5c4-4adb-8ef5-4e3cdcc14193</ProductIdentifier>
      <ReservatedAmountTotalAmount>4</ReservatedAmountTotalAmount>
      <ReservatedAmountTotalUnit>sample string 5</ReservatedAmountTotalUnit>
      <VariationIdentifier>e7b36bbb-bdbf-484a-8685-a49060e97a36</VariationIdentifier>
    </GetStockReservationListResult.StockReservationItem>
    <GetStockReservationListResult.StockReservationItem>
      <ArticleOrderNumber>sample string 1</ArticleOrderNumber>
      <OwnArticleNumber>sample string 2</OwnArticleNumber>
      <ProductIdentifier>dd2dc497-b5c4-4adb-8ef5-4e3cdcc14193</ProductIdentifier>
      <ReservatedAmountTotalAmount>4</ReservatedAmountTotalAmount>
      <ReservatedAmountTotalUnit>sample string 5</ReservatedAmountTotalUnit>
      <VariationIdentifier>e7b36bbb-bdbf-484a-8685-a49060e97a36</VariationIdentifier>
    </GetStockReservationListResult.StockReservationItem>
  </StockAmounts>
</GetStockReservationListResult>