POST api/values/OperatorStatistics

Получение полной информации по Оператору за период

Request Information

URI Parameters

None.

Body Parameters

OperatorStatisticsRequest
NameDescriptionTypeAdditional information
Operator

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

integer

None.

Start_date

дата начала периода

date

None.

End_date

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

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Operator": 1,
  "Start_date": "2022-08-16T23:12:53.2091268+03:00",
  "End_date": "2022-08-16T23:12:53.2091268+03:00"
}

application/xml, text/xml

Sample:
<OperatorStatisticsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models">
  <End_date>2022-08-16T23:12:53.2091268+03:00</End_date>
  <Operator>1</Operator>
  <Start_date>2022-08-16T23:12:53.2091268+03:00</Start_date>
</OperatorStatisticsRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

OperatorStatisticsResponse
NameDescriptionTypeAdditional information
Clients

новые клиенты?

integer

None.

Clients_all

всего клиентов?

integer

None.

Purchases

всего покупок

integer

None.

PurchaseSum

сумма покупок

decimal number

None.

Refunds

всего возвратов

integer

None.

RefundSum

сумма возвратов

decimal number

None.

SpentSum

всего потрачено

decimal number

None.

Charged

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

decimal number

None.

Redeemed

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

decimal number

None.

ChargeRefund

начислено с возвратов?

decimal number

None.

RedeemRefund

списано с возвратов?

decimal number

None.

Balance

баланс бонусных баллов

decimal number

None.

Paysum

сумма к оплате?

decimal number

None.

ErrorCode

код ошибки

integer

None.

Message

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

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Clients": 1,
  "Clients_all": 2,
  "Purchases": 3,
  "PurchaseSum": 4.0,
  "Refunds": 5,
  "RefundSum": 6.0,
  "SpentSum": 7.0,
  "Charged": 8.0,
  "Redeemed": 9.0,
  "ChargeRefund": 10.0,
  "RedeemRefund": 11.0,
  "Balance": 12.0,
  "Paysum": 13.0,
  "ErrorCode": 14,
  "Message": "sample string 15"
}

application/xml, text/xml

Sample:
<OperatorStatisticsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models">
  <Balance>12</Balance>
  <ChargeRefund>10</ChargeRefund>
  <Charged>8</Charged>
  <Clients>1</Clients>
  <Clients_all>2</Clients_all>
  <ErrorCode>14</ErrorCode>
  <Message>sample string 15</Message>
  <Paysum>13</Paysum>
  <PurchaseSum>4</PurchaseSum>
  <Purchases>3</Purchases>
  <RedeemRefund>11</RedeemRefund>
  <Redeemed>9</Redeemed>
  <RefundSum>6</RefundSum>
  <Refunds>5</Refunds>
  <SpentSum>7</SpentSum>
</OperatorStatisticsResponse>