POST api/values/GetClientBonuses

Данные для страницы Аналитика LCManager, блок БОНУСЫ

Request Information

URI Parameters

None.

Body Parameters

BonusesRequest
NameDescriptionTypeAdditional information
Operator

integer

None.

Partner

integer

None.

Pos

integer

None.

BeginDate

Начало периода для расчета аналитики

date

None.

EndDate

Окончание периода для расчета аналитики

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Operator": 1,
  "Partner": 2,
  "Pos": 3,
  "BeginDate": "2022-08-14T15:40:27.210427+03:00",
  "EndDate": "2022-08-14T15:40:27.210427+03:00"
}

application/xml, text/xml

Sample:
<BonusesRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request.BonusesRequest">
  <BeginDate>2022-08-14T15:40:27.210427+03:00</BeginDate>
  <EndDate>2022-08-14T15:40:27.210427+03:00</EndDate>
  <Operator>1</Operator>
  <Partner>2</Partner>
  <Pos>3</Pos>
</BonusesRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BonusesResponse
NameDescriptionTypeAdditional information
AddedBonus

Начислено бонусов

decimal number

None.

AddedBonusCount

Кол-во начислени

decimal number

None.

AvgCharge

Среднее начисление

decimal number

None.

RedeemedBonus

Списано бонусов

decimal number

None.

RedeemedBonusCount

Кол-во списаний

decimal number

None.

AvgRedeem

Среднее списание

decimal number

None.

AvgBalance

Средний баланс

decimal number

None.

AvgDiscount

Фактическая скидка

decimal number

None.

ClientCount

Кол-во клиентов

decimal number

None.

ErrorCode

Код ошибки

integer

None.

Message

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

string

None.

Response Formats

application/json, text/json

Sample:
{
  "AddedBonus": 1.0,
  "AddedBonusCount": 2.0,
  "AvgCharge": 3.0,
  "RedeemedBonus": 4.0,
  "RedeemedBonusCount": 5.0,
  "AvgRedeem": 6.0,
  "AvgBalance": 7.0,
  "AvgDiscount": 8.0,
  "ClientCount": 9.0,
  "ErrorCode": 10,
  "Message": "sample string 11"
}

application/xml, text/xml

Sample:
<BonusesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response.BonusesResponse">
  <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">10</ErrorCode>
  <Message xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">sample string 11</Message>
  <AddedBonus>1</AddedBonus>
  <AddedBonusCount>2</AddedBonusCount>
  <AvgBalance>7</AvgBalance>
  <AvgCharge>3</AvgCharge>
  <AvgDiscount>8</AvgDiscount>
  <AvgRedeem>6</AvgRedeem>
  <ClientCount>9</ClientCount>
  <RedeemedBonus>4</RedeemedBonus>
  <RedeemedBonusCount>5</RedeemedBonusCount>
</BonusesResponse>