POST api/client/CardAggregation

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

Request Information

URI Parameters

None.

Body Parameters

CardAggregationRequest
NameDescriptionTypeAdditional information
Card

номер карты

integer

None.

Partner

ID партнера

integer

None.

Pos

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

string

None.

From

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

date

None.

To

Конец периода

date

None.

Layout

тип агрегации

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Card": 1,
  "Partner": 1,
  "Pos": "sample string 2",
  "From": "2022-08-16T23:10:31.0176408+03:00",
  "To": "2022-08-16T23:10:31.0176408+03:00",
  "Layout": 3
}

application/xml, text/xml

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

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CardAggregationResponse
NameDescriptionTypeAdditional information
CardInfo

Collection of CardAggregation

None.

ErrorCode

Код ошибки

integer

None.

Message

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

string

None.

Response Formats

application/json, text/json

Sample:
{
  "CardInfo": [
    {
      "Amount": 1.0,
      "BonusAdded": 2.0,
      "BonusRedeemed": 3.0,
      "ChequeQty": 4,
      "ChequeQtyWithoutRefund": 5,
      "MonthWeekNum": 1,
      "ChequeDate": "2022-08-16T23:10:31.1582625+03:00"
    },
    {
      "Amount": 1.0,
      "BonusAdded": 2.0,
      "BonusRedeemed": 3.0,
      "ChequeQty": 4,
      "ChequeQtyWithoutRefund": 5,
      "MonthWeekNum": 1,
      "ChequeDate": "2022-08-16T23:10:31.1582625+03:00"
    }
  ],
  "ErrorCode": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<CardAggregationResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models">
  <CardInfo>
    <CardAggregation>
      <Amount>1</Amount>
      <BonusAdded>2</BonusAdded>
      <BonusRedeemed>3</BonusRedeemed>
      <ChequeDate>2022-08-16T23:10:31.1582625+03:00</ChequeDate>
      <ChequeQty>4</ChequeQty>
      <ChequeQtyWithoutRefund>5</ChequeQtyWithoutRefund>
      <MonthWeekNum>1</MonthWeekNum>
    </CardAggregation>
    <CardAggregation>
      <Amount>1</Amount>
      <BonusAdded>2</BonusAdded>
      <BonusRedeemed>3</BonusRedeemed>
      <ChequeDate>2022-08-16T23:10:31.1582625+03:00</ChequeDate>
      <ChequeQty>4</ChequeQty>
      <ChequeQtyWithoutRefund>5</ChequeQtyWithoutRefund>
      <MonthWeekNum>1</MonthWeekNum>
    </CardAggregation>
  </CardInfo>
  <ErrorCode>1</ErrorCode>
  <Message>sample string 2</Message>
</CardAggregationResponse>