POST api/service/BuyerPagingInfo
Получение данных покупателей, с пагинацией и входными фильтрами
Request Information
URI Parameters
None.
Body Parameters
BuyerPagingInfoRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| PosCode |
Код торговой точки |
string |
None. |
| Report |
Признак, что запрос идёт для скачивания отчёта |
boolean |
None. |
| RegBegDate |
Дата начала периода регистрации |
date |
None. |
| RegEndDate |
Дата окончания периода регистрации |
date |
None. |
| BuyerName |
Входной фильтр по фио |
string |
None. |
| ClientId |
Входной фильтр: идентификатор клиента |
integer |
None. |
| BuyerId |
Входной фильтр: идентификатор покупателя |
integer |
None. |
| Phone |
Входной фильтр: номер телефона |
integer |
None. |
| CarName |
Входной фильтр: наименование автомобиля покупателя |
string |
None. |
| CarNumber |
Входной фильтр: гос. номера |
string |
None. |
| Start |
Пагинация: последовательный номер записи от которой нужно возвращать данные (1, 10, 20, 30 и т.д.) |
integer |
None. |
| Length |
Пагинация: количество записей, которые нужно вернуть |
integer |
None. |
| Operator |
Идентификатор оператора программы лояльности |
integer |
None. |
| Token |
Токен пользователя, который инициирует данный запрос |
integer |
None. |
| SiteCode |
Уникальный код виджета по продаже подарочных сертификатов, который инициирует запрос |
string |
None. |
Request Formats
application/json, text/json
{
"PosCode": "sample string 1",
"Report": true,
"RegBegDate": "2025-12-22T09:26:55.1298987+03:00",
"RegEndDate": "2025-12-22T09:26:55.1298987+03:00",
"BuyerName": "sample string 2",
"ClientId": 1,
"BuyerId": 1,
"Phone": 1,
"CarName": "sample string 3",
"CarNumber": "sample string 4",
"Start": 1,
"Length": 1,
"Operator": 1,
"Token": 1,
"SiteCode": "sample string 5"
}
application/xml, text/xml
<BuyerPagingInfoRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request.ServiceRequest"> <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 5</SiteCode> <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token> <BuyerId>1</BuyerId> <BuyerName>sample string 2</BuyerName> <CarName>sample string 3</CarName> <CarNumber>sample string 4</CarNumber> <ClientId>1</ClientId> <Length>1</Length> <Phone>1</Phone> <PosCode>sample string 1</PosCode> <RegBegDate>2025-12-22T09:26:55.1298987+03:00</RegBegDate> <RegEndDate>2025-12-22T09:26:55.1298987+03:00</RegEndDate> <Report>true</Report> <Start>1</Start> </BuyerPagingInfoRequest>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
BuyerPagingInfoResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| TotalRows |
Количество записей, которые попали в выборку |
integer |
None. |
| TotalRowsSelect |
Количество записей, которые вернулись в массиве ответа на запрос |
integer |
None. |
| AllBuyers |
Всего покупателей в базе оператора |
integer |
None. |
| Data |
Массив данных |
Collection of BuyerPagingInfoDataRow |
None. |
| ErrorCode |
Код ошибки |
integer |
None. |
| Message |
Сообщение об ошибке |
string |
None. |
Response Formats
application/json, text/json
{
"TotalRows": 1,
"TotalRowsSelect": 1,
"AllBuyers": 1,
"Data": [
{
"Id": 1,
"BuyerId": 1,
"BuyerName": "sample string 1",
"RegDate": "2025-12-22T09:26:55.1455205+03:00",
"Phone": 1,
"ClientId": 1,
"AllowWhatsApp": true,
"AgreePersonalData": true,
"AllCars": 64
},
{
"Id": 1,
"BuyerId": 1,
"BuyerName": "sample string 1",
"RegDate": "2025-12-22T09:26:55.1455205+03:00",
"Phone": 1,
"ClientId": 1,
"AllowWhatsApp": true,
"AgreePersonalData": true,
"AllCars": 64
}
],
"ErrorCode": 1,
"Message": "sample string 2"
}
application/xml, text/xml
<BuyerPagingInfoResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response.ServiceResponse">
<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>
<AllBuyers>1</AllBuyers>
<Data>
<BuyerPagingInfoResponse.BuyerPagingInfoDataRow>
<AgreePersonalData>true</AgreePersonalData>
<AllCars>64</AllCars>
<AllowWhatsApp>true</AllowWhatsApp>
<BuyerId>1</BuyerId>
<BuyerName>sample string 1</BuyerName>
<ClientId>1</ClientId>
<Id>1</Id>
<Phone>1</Phone>
<RegDate>2025-12-22T09:26:55.1455205+03:00</RegDate>
</BuyerPagingInfoResponse.BuyerPagingInfoDataRow>
<BuyerPagingInfoResponse.BuyerPagingInfoDataRow>
<AgreePersonalData>true</AgreePersonalData>
<AllCars>64</AllCars>
<AllowWhatsApp>true</AllowWhatsApp>
<BuyerId>1</BuyerId>
<BuyerName>sample string 1</BuyerName>
<ClientId>1</ClientId>
<Id>1</Id>
<Phone>1</Phone>
<RegDate>2025-12-22T09:26:55.1455205+03:00</RegDate>
</BuyerPagingInfoResponse.BuyerPagingInfoDataRow>
</Data>
<TotalRows>1</TotalRows>
<TotalRowsSelect>1</TotalRowsSelect>
</BuyerPagingInfoResponse>