Адрес службы: GET

http://api.alemtat.kz/web/{ext}/FLFL/getOperationsByArticle?ArticleCode={ArticleCode}&CategoryCode={CategoryCode}&StationCode={StationCode}&BeginDate={BeginDate}&Skip={Skip}&Take={Take}&ApiKey={ApiKey}


Получение списка операций с товаром по артикулу. Список операций имеет обратный порядок (В начале указаны последнии операции).

Информация о запросе

URI параметры

НаименованиеОписаниеТипДополнительная информация
ArticleCode

Артикул запрашиваемого остатка товара.

string

Required

CategoryCode

Код категории товара.

string

Нет описания

StationCode

Код станции по которой запрашиваются операции. По умолчанию возвращаются операции по всем станциям.

string

Нет описания

BeginDate

Начальная дата операций. Ограничивает список получаемых операций задавая их начальную дату, по умолчанию будет возвращатся полный список операций. Формат: "yyyy-MM-dd".

string

Нет описания

Skip

Пропустить. Кол-во записей которое необходимо пропустить в результирующей выборке. По умолчанию имеет значение "0".

integer

Default value is 0

Take

Кол-во записей в результирующей выборке. По умолчанию имеет значение "100". Не может превышать заначение "500".

integer

Default value is 100

ext

Формат данных. JSON или XML.

string

Нет описания

ApiKey

Выданный API-ключ

string

Обязательный

Используется для получения доступа к данным

Информация об ответе

Описание ответа

НаименованиеОписаниеТипДополнительная информация
FullCount

Кол-во записей всего.

integer

Нет описания

Skipped

Кол-во пропущеных записей.

integer

Нет описания

Count

Кол-во записей в полученом списке.

integer

Нет описания

Items

Список товарных операций.

Коллекция из ProductOperation

Нет описания

Форматы ответа

application/json, text/json

Пример:
{
  "FullCount": 1,
  "Skipped": 2,
  "Count": 3,
  "Items": [
    {
      "DocumentId": "sample string 1",
      "DocumentCaption": "sample string 2",
      "Article": "sample string 3",
      "CellId": "sample string 4",
      "CellNumber": "sample string 5",
      "CellCategory": "sample string 6",
      "StationCode": "sample string 7",
      "Storage": "sample string 8",
      "OperationDate": "2024-04-24T15:47:23.5065293+05:00",
      "OperationKind": "sample string 10",
      "OperationCode": "sample string 11",
      "OperationName": "sample string 12",
      "Value": 13
    },
    {
      "DocumentId": "sample string 1",
      "DocumentCaption": "sample string 2",
      "Article": "sample string 3",
      "CellId": "sample string 4",
      "CellNumber": "sample string 5",
      "CellCategory": "sample string 6",
      "StationCode": "sample string 7",
      "Storage": "sample string 8",
      "OperationDate": "2024-04-24T15:47:23.5065293+05:00",
      "OperationKind": "sample string 10",
      "OperationCode": "sample string 11",
      "OperationName": "sample string 12",
      "Value": 13
    }
  ]
}

application/xml, text/xml

Пример:
<ResultListProductOperation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ALES.WebAPI.Models">
  <Count>3</Count>
  <FullCount>1</FullCount>
  <Items>
    <ProductOperation>
      <Article>sample string 3</Article>
      <CellCategory>sample string 6</CellCategory>
      <CellId>sample string 4</CellId>
      <CellNumber>sample string 5</CellNumber>
      <DocumentCaption>sample string 2</DocumentCaption>
      <DocumentId>sample string 1</DocumentId>
      <OperationCode>sample string 11</OperationCode>
      <OperationDate>2024-04-24T15:47:23.5065293+05:00</OperationDate>
      <OperationKind>sample string 10</OperationKind>
      <OperationName>sample string 12</OperationName>
      <StationCode>sample string 7</StationCode>
      <Storage>sample string 8</Storage>
      <Value>13</Value>
    </ProductOperation>
    <ProductOperation>
      <Article>sample string 3</Article>
      <CellCategory>sample string 6</CellCategory>
      <CellId>sample string 4</CellId>
      <CellNumber>sample string 5</CellNumber>
      <DocumentCaption>sample string 2</DocumentCaption>
      <DocumentId>sample string 1</DocumentId>
      <OperationCode>sample string 11</OperationCode>
      <OperationDate>2024-04-24T15:47:23.5065293+05:00</OperationDate>
      <OperationKind>sample string 10</OperationKind>
      <OperationName>sample string 12</OperationName>
      <StationCode>sample string 7</StationCode>
      <Storage>sample string 8</Storage>
      <Value>13</Value>
    </ProductOperation>
  </Items>
  <Skipped>2</Skipped>
</ResultListProductOperation>