POST api/values/ChequesBonuses

Статистика по начислению бонусов

Request Information

URI Parameters

None.

Body Parameters

GetChequesBonusesRequest
NameDescriptionTypeAdditional information
Card

номер карты

integer

None.

Client

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

integer

None.

Operator

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

integer

None.

Partner

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

integer

None.

Pos

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

integer

None.

Page

страницы

integer

None.

PageSize

количество строк на странице

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Card": 1,
  "Client": 2,
  "Operator": 3,
  "Partner": 4,
  "Pos": 5,
  "Page": 6,
  "PageSize": 7
}

application/xml, text/xml

Sample:
<GetChequesBonusesRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models">
  <Card>1</Card>
  <Client>2</Client>
  <Operator>3</Operator>
  <Page>6</Page>
  <PageSize>7</PageSize>
  <Partner>4</Partner>
  <Pos>5</Pos>
</GetChequesBonusesRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

GetChequesBonusesResponse
NameDescriptionTypeAdditional information
ErrorCode

код ошибки

integer

None.

Message

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

string

None.

PageCount

всего страницы

integer

None.

ChequeBonusData

Collection of ChequeBonus

None.

Response Formats

application/json, text/json

Sample:
{
  "ErrorCode": 1,
  "Message": "sample string 2",
  "PageCount": 3,
  "ChequeBonusData": [
    {
      "Id": 1,
      "Number": "sample string 2",
      "Date": "2022-08-16T21:55:41.3693975+03:00",
      "OperationType": "sample string 4",
      "Summ": 5.0,
      "SummDiscount": 6.0,
      "Bonus": 7.0,
      "PaidByBonus": 8.0,
      "Discount": 9.0,
      "Partner": "sample string 10",
      "Shop": "sample string 11",
      "CardNumber": 12,
      "PosName": "sample string 13",
      "BonusSource": "sample string 14"
    },
    {
      "Id": 1,
      "Number": "sample string 2",
      "Date": "2022-08-16T21:55:41.3693975+03:00",
      "OperationType": "sample string 4",
      "Summ": 5.0,
      "SummDiscount": 6.0,
      "Bonus": 7.0,
      "PaidByBonus": 8.0,
      "Discount": 9.0,
      "Partner": "sample string 10",
      "Shop": "sample string 11",
      "CardNumber": 12,
      "PosName": "sample string 13",
      "BonusSource": "sample string 14"
    }
  ]
}

application/xml, text/xml

Sample:
<GetChequesBonusesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models">
  <ChequeBonusData>
    <ChequeBonus>
      <Bonus>7</Bonus>
      <BonusSource>sample string 14</BonusSource>
      <CardNumber>12</CardNumber>
      <Date>2022-08-16T21:55:41.3693975+03:00</Date>
      <Discount>9</Discount>
      <Id>1</Id>
      <Number>sample string 2</Number>
      <OperationType>sample string 4</OperationType>
      <PaidByBonus>8</PaidByBonus>
      <Partner>sample string 10</Partner>
      <PosName>sample string 13</PosName>
      <Shop>sample string 11</Shop>
      <Summ>5</Summ>
      <SummDiscount>6</SummDiscount>
    </ChequeBonus>
    <ChequeBonus>
      <Bonus>7</Bonus>
      <BonusSource>sample string 14</BonusSource>
      <CardNumber>12</CardNumber>
      <Date>2022-08-16T21:55:41.3693975+03:00</Date>
      <Discount>9</Discount>
      <Id>1</Id>
      <Number>sample string 2</Number>
      <OperationType>sample string 4</OperationType>
      <PaidByBonus>8</PaidByBonus>
      <Partner>sample string 10</Partner>
      <PosName>sample string 13</PosName>
      <Shop>sample string 11</Shop>
      <Summ>5</Summ>
      <SummDiscount>6</SummDiscount>
    </ChequeBonus>
  </ChequeBonusData>
  <ErrorCode>1</ErrorCode>
  <Message>sample string 2</Message>
  <PageCount>3</PageCount>
</GetChequesBonusesResponse>