GET api/webshop/article/stock/page/{page}/size/{pagesize}/timespan?timespanStart={timespanStart}&timespanEnd={timespanEnd}

Provides web shop stock, of stock movements in a timespan. Maximum timespan is 7 days. I.e. Start: 2017-06-01T00:00:00, End: 2017-06-02T23:59:59 for two full days.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
page

The page number.

integer

Required

pagesize

The page size.

integer

Required

timespanStart

The start of the timespan.

date

Required

timespanEnd

The end of the timespan.

date

Required

Body Parameters

None.

Response Information

Resource Description

A paged stock web shop model.

PublicAPI.Models.PagedDTOOfArticleStockInfo
NameDescriptionTypeAdditional information
PageNumber

integer

None.

PageSize

integer

None.

TotalNumberOfPages

integer

None.

TotalNumberOfRecords

integer

None.

Results

Collection of ArticleStockInfo

None.

Response Formats

application/json, text/json

Sample:
{
  "PageNumber": 1,
  "PageSize": 2,
  "TotalNumberOfPages": 3,
  "TotalNumberOfRecords": 4,
  "Results": [
    {
      "ShopId": 1,
      "StyleId": 2,
      "VariantId": 3,
      "Quantity": 4
    },
    {
      "ShopId": 1,
      "StyleId": 2,
      "VariantId": 3,
      "Quantity": 4
    }
  ]
}

application/xml, text/xml

Sample:
<PagedDTOOfArticleStockInfoDTOiTlCtTkQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models">
  <PageNumber>1</PageNumber>
  <PageSize>2</PageSize>
  <Results>
    <ArticleStockInfoDTO>
      <Quantity>4</Quantity>
      <ShopId>1</ShopId>
      <StyleId>2</StyleId>
      <VariantId>3</VariantId>
    </ArticleStockInfoDTO>
    <ArticleStockInfoDTO>
      <Quantity>4</Quantity>
      <ShopId>1</ShopId>
      <StyleId>2</StyleId>
      <VariantId>3</VariantId>
    </ArticleStockInfoDTO>
  </Results>
  <TotalNumberOfPages>3</TotalNumberOfPages>
  <TotalNumberOfRecords>4</TotalNumberOfRecords>
</PagedDTOOfArticleStockInfoDTOiTlCtTkQ>