POST api/client/ClientLevelsInfo
Получение информации об уровне клиента и его показателях относительно других уровней в программе
Request Information
URI Parameters
None.
Body Parameters
ClientLevelsInfoRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Client |
Идентификатор клиента |
integer |
None. |
| Operator |
Идентификатор оператора программы лояльности |
integer |
None. |
| Token |
Токен пользователя, который инициирует данный запрос |
integer |
None. |
| SiteCode |
Уникальный код виджета по продаже подарочных сертификатов, который инициирует запрос |
string |
None. |
Request Formats
application/json, text/json
{
"Client": 1,
"Operator": 1,
"Token": 1,
"SiteCode": "sample string 1"
}
application/xml, text/xml
<ClientLevelsInfoRequest 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> <Client>1</Client> </ClientLevelsInfoRequest>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
ClientLevelsInfoResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| LevelCondition |
Текстовое значение % текущего поощрения клиента |
string |
None. |
| LevelId |
Идентификатор уровня на котором сейчас находится клиент |
integer |
None. |
| LevelExceeds |
Сумма накоплений клиента на текущем уровне |
decimal number |
None. |
| SumConfirmLevel |
На какую сумму нужно совершить покупок, чтобы подтвердить текущий уровень |
decimal number |
None. |
| SumNextLevel |
На какую сумму нужно совершить покупок, чтобы перейти на следующий уровень |
decimal number |
None. |
| GainLastPeriod |
Сумма потраченных денег клиентом за прошлый период |
decimal number |
None. |
| LevelMaxRedeem |
Процент списания на уровне, согласно правил |
decimal number |
None. |
| Levels |
Уровни |
Collection of ClientLevelsInfoLevel |
None. |
| ErrorCode |
Код ошибки |
integer |
None. |
| Message |
Сообщение об ошибке |
string |
None. |
Response Formats
application/json, text/json
{
"LevelCondition": "sample string 1",
"LevelId": 1,
"LevelExceeds": 1.0,
"SumConfirmLevel": 1.0,
"SumNextLevel": 1.0,
"GainLastPeriod": 1.0,
"LevelMaxRedeem": 1.0,
"Levels": [
{
"Id": 1,
"Name": "sample string 1",
"LevelStep": 64,
"ThresHold": 1.0,
"Condition": "sample string 2",
"PurchasesConfirm": 1.0,
"PurchaseSumConfirm": 1.0,
"DaysConfirm": 1,
"LevelMaxRedeem": 1.0
},
{
"Id": 1,
"Name": "sample string 1",
"LevelStep": 64,
"ThresHold": 1.0,
"Condition": "sample string 2",
"PurchasesConfirm": 1.0,
"PurchaseSumConfirm": 1.0,
"DaysConfirm": 1,
"LevelMaxRedeem": 1.0
}
],
"ErrorCode": 2,
"Message": "sample string 3"
}
application/xml, text/xml
<ClientLevelsInfoResponse 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">2</ErrorCode>
<Message xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">sample string 3</Message>
<GainLastPeriod>1</GainLastPeriod>
<LevelCondition>sample string 1</LevelCondition>
<LevelExceeds>1</LevelExceeds>
<LevelId>1</LevelId>
<LevelMaxRedeem>1</LevelMaxRedeem>
<Levels>
<ClientLevelsInfoResponse.ClientLevelsInfoLevel>
<Condition>sample string 2</Condition>
<DaysConfirm>1</DaysConfirm>
<Id>1</Id>
<LevelMaxRedeem>1</LevelMaxRedeem>
<LevelStep>64</LevelStep>
<Name>sample string 1</Name>
<PurchaseSumConfirm>1</PurchaseSumConfirm>
<PurchasesConfirm>1</PurchasesConfirm>
<ThresHold>1</ThresHold>
</ClientLevelsInfoResponse.ClientLevelsInfoLevel>
<ClientLevelsInfoResponse.ClientLevelsInfoLevel>
<Condition>sample string 2</Condition>
<DaysConfirm>1</DaysConfirm>
<Id>1</Id>
<LevelMaxRedeem>1</LevelMaxRedeem>
<LevelStep>64</LevelStep>
<Name>sample string 1</Name>
<PurchaseSumConfirm>1</PurchaseSumConfirm>
<PurchasesConfirm>1</PurchasesConfirm>
<ThresHold>1</ThresHold>
</ClientLevelsInfoResponse.ClientLevelsInfoLevel>
</Levels>
<SumConfirmLevel>1</SumConfirmLevel>
<SumNextLevel>1</SumNextLevel>
</ClientLevelsInfoResponse>