POST api/values/ClientAggregation

Статистика по клиентам за период

Request Information

URI Parameters

None.

Body Parameters

ClientAggregationRequest
NameDescriptionTypeAdditional information
Operator

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

integer

None.

Partner

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

integer

None.

Pos

код Торговой точки

string

None.

From

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

date

None.

To

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

date

None.

Layout

форма агрегирования

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Operator": 1,
  "Partner": 1,
  "Pos": "sample string 2",
  "From": "2022-08-16T22:57:31.2801572+03:00",
  "To": "2022-08-16T22:57:31.2801572+03:00",
  "Layout": 3
}

application/xml, text/xml

Sample:
<ClientAggregationRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models">
  <From>2022-08-16T22:57:31.2801572+03:00</From>
  <Layout>3</Layout>
  <Operator>1</Operator>
  <Partner>1</Partner>
  <Pos>sample string 2</Pos>
  <To>2022-08-16T22:57:31.2801572+03:00</To>
</ClientAggregationRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ClientAggregationResponse
NameDescriptionTypeAdditional information
ClientInfo

статистика по клиентам

Collection of ClientAggregation

None.

ErrorCode

код ошибки

integer

None.

Message

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

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ClientInfo": [
    {
      "ClientQty": 1,
      "Amount": 2.0,
      "BonusAdded": 3.0,
      "BonusRedeemed": 4.0,
      "ChequeQty": 5,
      "ChequeQtyWithoutRefund": 6,
      "MonthWeekNum": 1,
      "RegDate": "2022-08-16T22:57:31.2957808+03:00"
    },
    {
      "ClientQty": 1,
      "Amount": 2.0,
      "BonusAdded": 3.0,
      "BonusRedeemed": 4.0,
      "ChequeQty": 5,
      "ChequeQtyWithoutRefund": 6,
      "MonthWeekNum": 1,
      "RegDate": "2022-08-16T22:57:31.2957808+03:00"
    }
  ],
  "ErrorCode": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<ClientAggregationResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models">
  <ClientInfo>
    <ClientAggregation>
      <Amount>2</Amount>
      <BonusAdded>3</BonusAdded>
      <BonusRedeemed>4</BonusRedeemed>
      <ChequeQty>5</ChequeQty>
      <ChequeQtyWithoutRefund>6</ChequeQtyWithoutRefund>
      <ClientQty>1</ClientQty>
      <MonthWeekNum>1</MonthWeekNum>
      <RegDate>2022-08-16T22:57:31.2957808+03:00</RegDate>
    </ClientAggregation>
    <ClientAggregation>
      <Amount>2</Amount>
      <BonusAdded>3</BonusAdded>
      <BonusRedeemed>4</BonusRedeemed>
      <ChequeQty>5</ChequeQty>
      <ChequeQtyWithoutRefund>6</ChequeQtyWithoutRefund>
      <ClientQty>1</ClientQty>
      <MonthWeekNum>1</MonthWeekNum>
      <RegDate>2022-08-16T22:57:31.2957808+03:00</RegDate>
    </ClientAggregation>
  </ClientInfo>
  <ErrorCode>1</ErrorCode>
  <Message>sample string 2</Message>
</ClientAggregationResponse>