POST api/service/PosDateTime

Получение времени записей в конкретной дате и точке продаж с идентификаторами записей и статусом "свободности" времени для записи

Request Information

URI Parameters

None.

Body Parameters

PosDateTimeRequest
NameDescriptionTypeAdditional information
ServicePosId

Идентификатор точки продаж, по которой нужно вернуть свободные даты

integer

None.

ServiceDate

Дата, в которой нужно детализировать время на "свободное/занятое"

date

None.

Operator

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

integer

None.

Token

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

integer

None.

SiteCode

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

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ServicePosId": 1,
  "ServiceDate": "2024-06-20T04:44:40.6842541+03:00",
  "Operator": 1,
  "Token": 1,
  "SiteCode": "sample string 1"
}

application/xml, text/xml

Sample:
<PosDateTimeRequest 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>
  <ServiceDate>2024-06-20T04:44:40.6842541+03:00</ServiceDate>
  <ServicePosId>1</ServicePosId>
</PosDateTimeRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

PosDateTimeResponse
NameDescriptionTypeAdditional information
Data

Свободное время в точке продаж в указанную дату

Collection of PosDateTimeDataRow

None.

ErrorCode

Код ошибки

integer

None.

Message

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

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": [
    {
      "Id": 1,
      "ServiceTime": "00:00:00.1234567",
      "RegistrationId": 1,
      "Free": true,
      "BuyerId": 1,
      "Client": 1,
      "CalculateId": 1,
      "Price": 1.0,
      "BuyerName": "sample string 1",
      "BuyerPhone": 1,
      "BuyerCar": "sample string 2",
      "BuyerCarNumber": "sample string 3",
      "BuyerStorageContract": "sample string 4",
      "ContragentId": "sample string 5"
    },
    {
      "Id": 1,
      "ServiceTime": "00:00:00.1234567",
      "RegistrationId": 1,
      "Free": true,
      "BuyerId": 1,
      "Client": 1,
      "CalculateId": 1,
      "Price": 1.0,
      "BuyerName": "sample string 1",
      "BuyerPhone": 1,
      "BuyerCar": "sample string 2",
      "BuyerCarNumber": "sample string 3",
      "BuyerStorageContract": "sample string 4",
      "ContragentId": "sample string 5"
    }
  ],
  "ErrorCode": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<PosDateTimeResponse 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>
  <Data>
    <PosDateTimeResponse.PosDateTimeDataRow>
      <BuyerCar>sample string 2</BuyerCar>
      <BuyerCarNumber>sample string 3</BuyerCarNumber>
      <BuyerId>1</BuyerId>
      <BuyerName>sample string 1</BuyerName>
      <BuyerPhone>1</BuyerPhone>
      <BuyerStorageContract>sample string 4</BuyerStorageContract>
      <CalculateId>1</CalculateId>
      <Client>1</Client>
      <ContragentId>sample string 5</ContragentId>
      <Free>true</Free>
      <Id>1</Id>
      <Price>1</Price>
      <RegistrationId>1</RegistrationId>
      <ServiceTime>PT0.1234567S</ServiceTime>
    </PosDateTimeResponse.PosDateTimeDataRow>
    <PosDateTimeResponse.PosDateTimeDataRow>
      <BuyerCar>sample string 2</BuyerCar>
      <BuyerCarNumber>sample string 3</BuyerCarNumber>
      <BuyerId>1</BuyerId>
      <BuyerName>sample string 1</BuyerName>
      <BuyerPhone>1</BuyerPhone>
      <BuyerStorageContract>sample string 4</BuyerStorageContract>
      <CalculateId>1</CalculateId>
      <Client>1</Client>
      <ContragentId>sample string 5</ContragentId>
      <Free>true</Free>
      <Id>1</Id>
      <Price>1</Price>
      <RegistrationId>1</RegistrationId>
      <ServiceTime>PT0.1234567S</ServiceTime>
    </PosDateTimeResponse.PosDateTimeDataRow>
  </Data>
</PosDateTimeResponse>