POST api/service/RegistrationAction

Добавление, изменение, получение данных о записи на услуги

Request Information

URI Parameters

None.

Body Parameters

RegistrationActionRequest
NameDescriptionTypeAdditional information
ActionType

Тип действия (Create, Update, Info, Delete)

string

None.

SourceType

Тип источника запроса (1 = сайт-виджет, 2 = CRM, 3 = 1C)

byte

None.

RegistrationId

Идентификатор записи для её изменения

integer

None.

BuyerId

Идентификатор покупателя для записи

integer

None.

CalculateId

Идентификатор созданного ранее расчёта и стоимости состава услуг для записи

integer

None.

ServicePosId

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

integer

None.

ServiceDate

Дата записи

date

None.

ServiceTime

Время записи

time interval

None.

ServiceStatus

Статус записи

string

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

Sample:
{
  "ActionType": "sample string 1",
  "SourceType": 64,
  "RegistrationId": 1,
  "BuyerId": 1,
  "CalculateId": 1,
  "ServicePosId": 1,
  "ServiceDate": "2024-06-16T11:02:19.4722067+03:00",
  "ServiceTime": "00:00:00.1234567",
  "ServiceStatus": "sample string 2",
  "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 3"
}

application/xml, text/xml

Sample:
<RegistrationActionRequest 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 3</SiteCode>
  <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token>
  <ActionType>sample string 1</ActionType>
  <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>
  <BuyerId>1</BuyerId>
  <CalculateId>1</CalculateId>
  <RegistrationId>1</RegistrationId>
  <ServiceDate>2024-06-16T11:02:19.4722067+03:00</ServiceDate>
  <ServicePosId>1</ServicePosId>
  <ServiceStatus>sample string 2</ServiceStatus>
  <ServiceTime>PT0.1234567S</ServiceTime>
  <SourceType>64</SourceType>
</RegistrationActionRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

RegistrationActionResponse
NameDescriptionTypeAdditional information
Registration

Идентификатор созданной записи

integer

None.

Data

Массив данных

Collection of RegistrationActionDataRow

None.

ErrorCode

Код ошибки

integer

None.

Message

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

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Registration": 1,
  "Data": [
    {
      "RegistrationId": 1,
      "ProcTime": "2024-06-16T11:02:19.62845+03:00",
      "ServicePos": 1,
      "ServicePosName": "sample string 1",
      "ServiceDate": "2024-06-16T11:02:19.62845+03:00",
      "ServiceTime": "00:00:00.1234567",
      "CalculateId": 1,
      "BuyerId": 1,
      "ServiceStatus": "sample string 2",
      "SourceTypeName": "sample string 3"
    },
    {
      "RegistrationId": 1,
      "ProcTime": "2024-06-16T11:02:19.62845+03:00",
      "ServicePos": 1,
      "ServicePosName": "sample string 1",
      "ServiceDate": "2024-06-16T11:02:19.62845+03:00",
      "ServiceTime": "00:00:00.1234567",
      "CalculateId": 1,
      "BuyerId": 1,
      "ServiceStatus": "sample string 2",
      "SourceTypeName": "sample string 3"
    }
  ],
  "ErrorCode": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<RegistrationActionResponse 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>
    <RegistrationActionResponse.RegistrationActionDataRow>
      <BuyerId>1</BuyerId>
      <CalculateId>1</CalculateId>
      <ProcTime>2024-06-16T11:02:19.62845+03:00</ProcTime>
      <RegistrationId>1</RegistrationId>
      <ServiceDate>2024-06-16T11:02:19.62845+03:00</ServiceDate>
      <ServicePos>1</ServicePos>
      <ServicePosName>sample string 1</ServicePosName>
      <ServiceStatus>sample string 2</ServiceStatus>
      <ServiceTime>PT0.1234567S</ServiceTime>
      <SourceTypeName>sample string 3</SourceTypeName>
    </RegistrationActionResponse.RegistrationActionDataRow>
    <RegistrationActionResponse.RegistrationActionDataRow>
      <BuyerId>1</BuyerId>
      <CalculateId>1</CalculateId>
      <ProcTime>2024-06-16T11:02:19.62845+03:00</ProcTime>
      <RegistrationId>1</RegistrationId>
      <ServiceDate>2024-06-16T11:02:19.62845+03:00</ServiceDate>
      <ServicePos>1</ServicePos>
      <ServicePosName>sample string 1</ServicePosName>
      <ServiceStatus>sample string 2</ServiceStatus>
      <ServiceTime>PT0.1234567S</ServiceTime>
      <SourceTypeName>sample string 3</SourceTypeName>
    </RegistrationActionResponse.RegistrationActionDataRow>
  </Data>
  <Registration>1</Registration>
</RegistrationActionResponse>