POST api/level/OperatorLevelsInfo

Получение информации об уровнях оператора

Request Information

URI Parameters

None.

Body Parameters

OperatorLevelsInfoRequest
NameDescriptionTypeAdditional information
Operator

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

integer

None.

Token

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

integer

None.

SiteCode

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

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Operator": 1,
  "Token": 1,
  "SiteCode": "sample string 1"
}

application/xml, text/xml

Sample:
<OperatorLevelsInfoRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request">
  <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>
</OperatorLevelsInfoRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

OperatorLevelsInfoResponse
NameDescriptionTypeAdditional information
Levels

Массив уровней

Collection of Level

None.

ErrorCode

Код ошибки

integer

None.

Message

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

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Levels": [
    {
      "Id": 1,
      "LevelId": 1,
      "Name": "sample string 1",
      "Condition": "sample string 2",
      "LevelLevel": 64,
      "ThresHold": 1.0,
      "NoBurn": true,
      "NoOnlineRecount": true,
      "BurnParent": 1,
      "BurnLevelExceeds": true,
      "Confirm": true,
      "ThresHoldConfirm": 1.0,
      "PurchaseSumConfirm": 1.0,
      "PurchasesConfirm": 1,
      "DaysConfirm": 1,
      "DaysMessageConfirm": 1,
      "MessageTemplate": 1
    },
    {
      "Id": 1,
      "LevelId": 1,
      "Name": "sample string 1",
      "Condition": "sample string 2",
      "LevelLevel": 64,
      "ThresHold": 1.0,
      "NoBurn": true,
      "NoOnlineRecount": true,
      "BurnParent": 1,
      "BurnLevelExceeds": true,
      "Confirm": true,
      "ThresHoldConfirm": 1.0,
      "PurchaseSumConfirm": 1.0,
      "PurchasesConfirm": 1,
      "DaysConfirm": 1,
      "DaysMessageConfirm": 1,
      "MessageTemplate": 1
    }
  ],
  "ErrorCode": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<OperatorLevelsInfoResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response">
  <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>
  <Levels xmlns:d2p1="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Data">
    <d2p1:Level>
      <d2p1:BurnLevelExceeds>true</d2p1:BurnLevelExceeds>
      <d2p1:BurnParent>1</d2p1:BurnParent>
      <d2p1:Condition>sample string 2</d2p1:Condition>
      <d2p1:Confirm>true</d2p1:Confirm>
      <d2p1:DaysConfirm>1</d2p1:DaysConfirm>
      <d2p1:DaysMessageConfirm>1</d2p1:DaysMessageConfirm>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:LevelId>1</d2p1:LevelId>
      <d2p1:LevelLevel>64</d2p1:LevelLevel>
      <d2p1:MessageTemplate>1</d2p1:MessageTemplate>
      <d2p1:Name>sample string 1</d2p1:Name>
      <d2p1:NoBurn>true</d2p1:NoBurn>
      <d2p1:NoOnlineRecount>true</d2p1:NoOnlineRecount>
      <d2p1:PurchaseSumConfirm>1</d2p1:PurchaseSumConfirm>
      <d2p1:PurchasesConfirm>1</d2p1:PurchasesConfirm>
      <d2p1:ThresHold>1</d2p1:ThresHold>
      <d2p1:ThresHoldConfirm>1</d2p1:ThresHoldConfirm>
    </d2p1:Level>
    <d2p1:Level>
      <d2p1:BurnLevelExceeds>true</d2p1:BurnLevelExceeds>
      <d2p1:BurnParent>1</d2p1:BurnParent>
      <d2p1:Condition>sample string 2</d2p1:Condition>
      <d2p1:Confirm>true</d2p1:Confirm>
      <d2p1:DaysConfirm>1</d2p1:DaysConfirm>
      <d2p1:DaysMessageConfirm>1</d2p1:DaysMessageConfirm>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:LevelId>1</d2p1:LevelId>
      <d2p1:LevelLevel>64</d2p1:LevelLevel>
      <d2p1:MessageTemplate>1</d2p1:MessageTemplate>
      <d2p1:Name>sample string 1</d2p1:Name>
      <d2p1:NoBurn>true</d2p1:NoBurn>
      <d2p1:NoOnlineRecount>true</d2p1:NoOnlineRecount>
      <d2p1:PurchaseSumConfirm>1</d2p1:PurchaseSumConfirm>
      <d2p1:PurchasesConfirm>1</d2p1:PurchasesConfirm>
      <d2p1:ThresHold>1</d2p1:ThresHold>
      <d2p1:ThresHoldConfirm>1</d2p1:ThresHoldConfirm>
    </d2p1:Level>
  </Levels>
</OperatorLevelsInfoResponse>