POST api/service/PosPagingInfo
Получение информации о точках продаж, в которых можно заказать услугу, с входными фильтрами и свободными датами для записи
Request Information
URI Parameters
None.
Body Parameters
ServiceRequestName | Description | Type | Additional information |
---|---|---|---|
IsCRM |
Признак, что запрос идёт из CRM (можно вернуть и неативные точки продаж) |
boolean |
None. |
ServicePosId |
Идентификатор точки продаж |
integer |
None. |
BegDate |
Дата начала периода свободной даты для записи |
date |
None. |
EndDate |
Дата окончания периода свободной даты для записи |
date |
None. |
BegTime |
Начальное время свободного для записи |
time interval |
None. |
EndTime |
Конечное время свободного для записи |
time interval |
None. |
Start |
Фильтр: с какой позиции вернуть записи |
integer |
None. |
Length |
Фильтр: какое количество записей вернуть |
integer |
None. |
SourceType |
Тип источника запроса (1 = сайт-виджет, 2 = CRM, 3 = 1C) |
byte |
None. |
AddServices |
Входной фильтр: список доп. услуг |
Collection of AddServiceRow |
None. |
AddConditions |
Входной фильтр: список доп. опций/условий |
Collection of AddConditionRow |
None. |
Operator |
Идентификатор оператора программы лояльности |
integer |
None. |
Token |
Токен пользователя, который инициирует данный запрос |
integer |
None. |
SiteCode |
Уникальный код виджета по продаже подарочных сертификатов, который инициирует запрос |
string |
None. |
Request Formats
application/json, text/json
{ "IsCRM": true, "ServicePosId": 1, "BegDate": "2025-03-28T11:50:33.152651+03:00", "EndDate": "2025-03-28T11:50:33.152651+03:00", "BegTime": "00:00:00.1234567", "EndTime": "00:00:00.1234567", "Start": 1, "Length": 1, "SourceType": 64, "AddServices": [ { "Id": 1, "AdditionalId": 1 }, { "Id": 1, "AdditionalId": 1 } ], "AddConditions": [ { "Id": 1, "AdditionalId": 1 }, { "Id": 1, "AdditionalId": 1 } ], "Operator": 1, "Token": 1, "SiteCode": "sample string 1" }
application/xml, text/xml
<PosPagingInfoRequest 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 1</SiteCode> <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token> <AddConditions> <AddConditionRow> <AdditionalId>1</AdditionalId> <Id>1</Id> </AddConditionRow> <AddConditionRow> <AdditionalId>1</AdditionalId> <Id>1</Id> </AddConditionRow> </AddConditions> <AddServices> <AddServiceRow> <AdditionalId>1</AdditionalId> <Id>1</Id> </AddServiceRow> <AddServiceRow> <AdditionalId>1</AdditionalId> <Id>1</Id> </AddServiceRow> </AddServices> <BegDate>2025-03-28T11:50:33.152651+03:00</BegDate> <BegTime>PT0.1234567S</BegTime> <EndDate>2025-03-28T11:50:33.152651+03:00</EndDate> <EndTime>PT0.1234567S</EndTime> <IsCRM>true</IsCRM> <Length>1</Length> <ServicePosId>1</ServicePosId> <SourceType>64</SourceType> <Start>1</Start> </PosPagingInfoRequest>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
PosPagingInfoResponseName | Description | Type | Additional information |
---|---|---|---|
TotalRows |
Общее количество записей, которые можно вернуть после применения всех фильтров |
integer |
None. |
TotalRowsSelect |
Общее количество записей, которые вернулись в конкретном запросе с пагинацией |
integer |
None. |
Poses |
Точки продаж, в которых оказываются услуги |
Collection of PosPagingInfoPosRow |
None. |
ErrorCode |
Код ошибки |
integer |
None. |
Message |
Сообщение об ошибке |
string |
None. |
Response Formats
application/json, text/json
{ "TotalRows": 1, "TotalRowsSelect": 1, "Poses": [ { "Id": 1, "ServicePosId": 1, "CityName": "sample string 1", "Address": "sample string 2", "MapPosition": "sample string 3", "WorkDescription": "sample string 4", "DatesFree": [ { "Id": 64, "ServiceDate": "2025-03-28T11:50:33.2143307+03:00" }, { "Id": 64, "ServiceDate": "2025-03-28T11:50:33.2143307+03:00" } ] }, { "Id": 1, "ServicePosId": 1, "CityName": "sample string 1", "Address": "sample string 2", "MapPosition": "sample string 3", "WorkDescription": "sample string 4", "DatesFree": [ { "Id": 64, "ServiceDate": "2025-03-28T11:50:33.2143307+03:00" }, { "Id": 64, "ServiceDate": "2025-03-28T11:50:33.2143307+03:00" } ] } ], "ErrorCode": 1, "Message": "sample string 2" }
application/xml, text/xml
<PosPagingInfoResponse 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> <Poses> <PosPagingInfoResponse.PosPagingInfoPosRow> <Address>sample string 2</Address> <CityName>sample string 1</CityName> <DatesFree> <PosDateTimeFreeDateFreeRow> <Id>64</Id> <ServiceDate>2025-03-28T11:50:33.2143307+03:00</ServiceDate> </PosDateTimeFreeDateFreeRow> <PosDateTimeFreeDateFreeRow> <Id>64</Id> <ServiceDate>2025-03-28T11:50:33.2143307+03:00</ServiceDate> </PosDateTimeFreeDateFreeRow> </DatesFree> <Id>1</Id> <MapPosition>sample string 3</MapPosition> <ServicePosId>1</ServicePosId> <WorkDescription>sample string 4</WorkDescription> </PosPagingInfoResponse.PosPagingInfoPosRow> <PosPagingInfoResponse.PosPagingInfoPosRow> <Address>sample string 2</Address> <CityName>sample string 1</CityName> <DatesFree> <PosDateTimeFreeDateFreeRow> <Id>64</Id> <ServiceDate>2025-03-28T11:50:33.2143307+03:00</ServiceDate> </PosDateTimeFreeDateFreeRow> <PosDateTimeFreeDateFreeRow> <Id>64</Id> <ServiceDate>2025-03-28T11:50:33.2143307+03:00</ServiceDate> </PosDateTimeFreeDateFreeRow> </DatesFree> <Id>1</Id> <MapPosition>sample string 3</MapPosition> <ServicePosId>1</ServicePosId> <WorkDescription>sample string 4</WorkDescription> </PosPagingInfoResponse.PosPagingInfoPosRow> </Poses> <TotalRows>1</TotalRows> <TotalRowsSelect>1</TotalRowsSelect> </PosPagingInfoResponse>