POST api/goods/GoodlistPagingInfo

Получение информации о списках товаров, с пагинацией и фильтрами

Request Information

URI Parameters

None.

Body Parameters

GoodlistPagingInfoRequest
NameDescriptionTypeAdditional information
PosCode

Код торговой точки пользователя

string

None.

Name

Входной фильтр: наименование списка товаров

string

None.

GoodList

Входной фильтр: идентификатор списка товаров

integer

None.

Active

Входной фильтр: активность списка товаров

boolean

None.

CountGoods

Входной фильтр: количество товаров и более в списке точек продаж

integer

None.

Start

Пагинация: номер записи, от которой показывать записи, включая указанную

integer

None.

Length

Пагинация: позиция от которой показывать записи, включая указанную

integer

None.

Operator

Идентификатор оператора программы лояльности

integer

None.

Token

Токен пользователя, который инициирует данный запрос

integer

None.

SiteCode

Уникальный код виджета по продаже подарочных сертификатов, который инициирует запрос

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PosCode": "sample string 1",
  "Name": "sample string 2",
  "GoodList": 1,
  "Active": true,
  "CountGoods": 1,
  "Start": 1,
  "Length": 1,
  "Operator": 1,
  "Token": 1,
  "SiteCode": "sample string 3"
}

application/xml, text/xml

Sample:
<GoodlistPagingInfoRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request.GoodsRequest">
  <Operator xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Operator>
  <SiteCode xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">sample string 3</SiteCode>
  <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token>
  <Active>true</Active>
  <CountGoods>1</CountGoods>
  <GoodList>1</GoodList>
  <Length>1</Length>
  <Name>sample string 2</Name>
  <PosCode>sample string 1</PosCode>
  <Start>1</Start>
</GoodlistPagingInfoRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

GoodlistPagingInfoResponse
NameDescriptionTypeAdditional information
TotalRows

Количество записей всего

integer

None.

TotalRowsSelect

Количество записей в запросе

integer

None.

GoodList

Массив позиций

Collection of GoodlistPagingInfoGoodListStr

None.

ErrorCode

Код ошибки

integer

None.

Message

Сообщение об ошибке

string

None.

Response Formats

application/json, text/json

Sample:
{
  "TotalRows": 1,
  "TotalRowsSelect": 1,
  "GoodList": [
    {
      "Id": 1,
      "GoodListId": 1,
      "Name": "sample string 1",
      "ProcTime": "2024-04-29T15:15:17.9715081+03:00",
      "Active": true,
      "CountGoods": 1
    },
    {
      "Id": 1,
      "GoodListId": 1,
      "Name": "sample string 1",
      "ProcTime": "2024-04-29T15:15:17.9715081+03:00",
      "Active": true,
      "CountGoods": 1
    }
  ],
  "ErrorCode": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<GoodlistPagingInfoResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response.GoodsResponse">
  <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</ErrorCode>
  <Message xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">sample string 2</Message>
  <GoodList>
    <GoodlistPagingInfoResponse.GoodlistPagingInfoGoodListStr>
      <Active>true</Active>
      <CountGoods>1</CountGoods>
      <GoodListId>1</GoodListId>
      <Id>1</Id>
      <Name>sample string 1</Name>
      <ProcTime>2024-04-29T15:15:17.9715081+03:00</ProcTime>
    </GoodlistPagingInfoResponse.GoodlistPagingInfoGoodListStr>
    <GoodlistPagingInfoResponse.GoodlistPagingInfoGoodListStr>
      <Active>true</Active>
      <CountGoods>1</CountGoods>
      <GoodListId>1</GoodListId>
      <Id>1</Id>
      <Name>sample string 1</Name>
      <ProcTime>2024-04-29T15:15:17.9715081+03:00</ProcTime>
    </GoodlistPagingInfoResponse.GoodlistPagingInfoGoodListStr>
  </GoodList>
  <TotalRows>1</TotalRows>
  <TotalRowsSelect>1</TotalRowsSelect>
</GoodlistPagingInfoResponse>