POST api/birthdayrule/DataAction

Создание и редактирование действий для по правилу для механики "День рождения"

Request Information

URI Parameters

None.

Body Parameters

BirthdayRuleRequestDataAction
NameDescriptionTypeAdditional information
ActionType

Тип действия, которое нужно произвести (Create, Update, Info)

string

None.

BirthdayRule

Идентификатор правила реактивации

integer

None.

BirthdayRuleAction

Идентификатор правила, которое надо изменить или получить информацию по нему

integer

None.

NoActive

Признак, что правило отключено (1 - НЕ работает, 0 - работает)

boolean

None.

BonusActionBegTime

Желаемое время начисленяи бонусов

time interval

None.

MessageActionBegTime

Желаемое время отправки коммуникаций

time interval

None.

Bonus

Кол-во начисляемых бонусов

decimal number

None.

BonusExpDays

Срок жизни бонусов с момента начисления

integer

None.

MessageTemplate

Идентификатор шаблона коммуникации

integer

None.

CommunicationType

Тип коммуникации

byte

None.

Operator

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

integer

None.

Token

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

integer

None.

SiteCode

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

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ActionType": "sample string 1",
  "BirthdayRule": 1,
  "BirthdayRuleAction": 1,
  "NoActive": true,
  "BonusActionBegTime": "00:00:00.1234567",
  "MessageActionBegTime": "00:00:00.1234567",
  "Bonus": 1.0,
  "BonusExpDays": 1,
  "MessageTemplate": 1,
  "CommunicationType": 64,
  "Operator": 1,
  "Token": 1,
  "SiteCode": "sample string 2"
}

application/xml, text/xml

Sample:
<DataActionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request.BirthdayRuleRequest">
  <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 2</SiteCode>
  <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token>
  <ActionType>sample string 1</ActionType>
  <BirthdayRule>1</BirthdayRule>
  <BirthdayRuleAction>1</BirthdayRuleAction>
  <Bonus>1</Bonus>
  <BonusActionBegTime>PT0.1234567S</BonusActionBegTime>
  <BonusExpDays>1</BonusExpDays>
  <CommunicationType>64</CommunicationType>
  <MessageActionBegTime>PT0.1234567S</MessageActionBegTime>
  <MessageTemplate>1</MessageTemplate>
  <NoActive>true</NoActive>
</DataActionRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BirthdayRuleResponseDataAction
NameDescriptionTypeAdditional information
BirthdayRuleActionId

Идентификатор созданного действия в рамках правлиа ДР

integer

None.

Data

Список

Collection of DataActionDataRow

None.

ErrorCode

Код ошибки

integer

None.

Message

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

string

None.

Response Formats

application/json, text/json

Sample:
{
  "BirthdayRuleActionId": 1,
  "Data": [
    {
      "Id": 1,
      "BirthdayRule": 1,
      "BirthdayRuleName": "sample string 1",
      "Bonus": 1.0,
      "BonusExpDays": 1,
      "IsActive": true,
      "BonusActionBegTime": "00:00:00.1234567",
      "MessageActionBegTime": "00:00:00.1234567",
      "MessageTemplate": 1,
      "CommunicationType": 64
    },
    {
      "Id": 1,
      "BirthdayRule": 1,
      "BirthdayRuleName": "sample string 1",
      "Bonus": 1.0,
      "BonusExpDays": 1,
      "IsActive": true,
      "BonusActionBegTime": "00:00:00.1234567",
      "MessageActionBegTime": "00:00:00.1234567",
      "MessageTemplate": 1,
      "CommunicationType": 64
    }
  ],
  "ErrorCode": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<DataActionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response.BirthdayRuleResponse">
  <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>
  <BirthdayRuleActionId>1</BirthdayRuleActionId>
  <Data>
    <DataActionResponse.DataActionDataRow>
      <BirthdayRule>1</BirthdayRule>
      <BirthdayRuleName>sample string 1</BirthdayRuleName>
      <Bonus>1</Bonus>
      <BonusActionBegTime>PT0.1234567S</BonusActionBegTime>
      <BonusExpDays>1</BonusExpDays>
      <CommunicationType>64</CommunicationType>
      <Id>1</Id>
      <IsActive>true</IsActive>
      <MessageActionBegTime>PT0.1234567S</MessageActionBegTime>
      <MessageTemplate>1</MessageTemplate>
    </DataActionResponse.DataActionDataRow>
    <DataActionResponse.DataActionDataRow>
      <BirthdayRule>1</BirthdayRule>
      <BirthdayRuleName>sample string 1</BirthdayRuleName>
      <Bonus>1</Bonus>
      <BonusActionBegTime>PT0.1234567S</BonusActionBegTime>
      <BonusExpDays>1</BonusExpDays>
      <CommunicationType>64</CommunicationType>
      <Id>1</Id>
      <IsActive>true</IsActive>
      <MessageActionBegTime>PT0.1234567S</MessageActionBegTime>
      <MessageTemplate>1</MessageTemplate>
    </DataActionResponse.DataActionDataRow>
  </Data>
</DataActionResponse>