POST api/client/GetCheques

Получение чеков по заданному номеру карты.

Request Information

URI Parameters

None.

Body Parameters

GetChequesRequest
NameDescriptionTypeAdditional information
Operator

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

integer

None.

PartnerId

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

integer

None.

Pos

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

integer

None.

Client

ID клиента ПЛ

integer

None.

Card

Номер карты клиента ПЛ

integer

None.

DateBuy

Дата покупки

string

None.

PosStr

Точка продаж

string

None.

Phone

Клиент

string

None.

Operation

Операция (покупка, продажа)

string

None.

Number

№ чека

string

None.

Sum

Сумма покупки

string

None.

Added

Начисленно

string

None.

Redeemed

Списано

string

None.

Page

Позиция с которой отображать выборку

integer

None.

PageSize

Сколько объектов отображать

integer

None.

DateStart

Показывать продажи с

string

None.

DateEnd

Показывать продажи по

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Operator": 1,
  "PartnerId": 2,
  "Pos": 3,
  "Client": 4,
  "Card": 5,
  "DateBuy": "sample string 6",
  "PosStr": "sample string 7",
  "Phone": "sample string 8",
  "Operation": "sample string 9",
  "Number": "sample string 10",
  "Sum": "sample string 11",
  "Added": "sample string 12",
  "Redeemed": "sample string 13",
  "Page": 14,
  "PageSize": 15,
  "DateStart": "sample string 16",
  "DateEnd": "sample string 17"
}

application/xml, text/xml

Sample:
<GetChequesRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models">
  <Added>sample string 12</Added>
  <Card>5</Card>
  <Client>4</Client>
  <DateBuy>sample string 6</DateBuy>
  <DateEnd>sample string 17</DateEnd>
  <DateStart>sample string 16</DateStart>
  <Number>sample string 10</Number>
  <Operation>sample string 9</Operation>
  <Operator>1</Operator>
  <Page>14</Page>
  <PageSize>15</PageSize>
  <PartnerId>2</PartnerId>
  <Phone>sample string 8</Phone>
  <Pos>3</Pos>
  <PosStr>sample string 7</PosStr>
  <Redeemed>sample string 13</Redeemed>
  <Sum>sample string 11</Sum>
</GetChequesRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

GetChequesResponse
NameDescriptionTypeAdditional information
ErrorCode

код ошибки

integer

None.

Message

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

string

None.

PageCount

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

integer

None.

RecordTotal

детализация по чекам

integer

None.

RecordFilterd

integer

None.

ChequeData

Collection of Cheque

None.

Response Formats

application/json, text/json

Sample:
{
  "ErrorCode": 1,
  "Message": "sample string 2",
  "PageCount": 3,
  "RecordTotal": 4,
  "RecordFilterd": 5,
  "ChequeData": [
    {
      "Id": 1,
      "Number": "sample string 2",
      "Date": "2024-04-27T04:02:00.8924756+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",
      "Phone": 14,
      "Items": [
        {
          "Name": "sample string 1",
          "Code": "sample string 2",
          "Price": 3.0,
          "Qty": 4.0,
          "Amount": 5.0,
          "AddedBonus": 6.0,
          "RedeemedBonus": 7.0,
          "Discount": 8.0,
          "Coupon": "sample string 9"
        },
        {
          "Name": "sample string 1",
          "Code": "sample string 2",
          "Price": 3.0,
          "Qty": 4.0,
          "Amount": 5.0,
          "AddedBonus": 6.0,
          "RedeemedBonus": 7.0,
          "Discount": 8.0,
          "Coupon": "sample string 9"
        }
      ]
    },
    {
      "Id": 1,
      "Number": "sample string 2",
      "Date": "2024-04-27T04:02:00.8924756+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",
      "Phone": 14,
      "Items": [
        {
          "Name": "sample string 1",
          "Code": "sample string 2",
          "Price": 3.0,
          "Qty": 4.0,
          "Amount": 5.0,
          "AddedBonus": 6.0,
          "RedeemedBonus": 7.0,
          "Discount": 8.0,
          "Coupon": "sample string 9"
        },
        {
          "Name": "sample string 1",
          "Code": "sample string 2",
          "Price": 3.0,
          "Qty": 4.0,
          "Amount": 5.0,
          "AddedBonus": 6.0,
          "RedeemedBonus": 7.0,
          "Discount": 8.0,
          "Coupon": "sample string 9"
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<GetChequesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models">
  <ChequeData>
    <Cheque>
      <Bonus>7</Bonus>
      <CardNumber>12</CardNumber>
      <Date>2024-04-27T04:02:00.8924756+03:00</Date>
      <Discount>9</Discount>
      <Id>1</Id>
      <Items>
        <ChequeItem>
          <AddedBonus>6</AddedBonus>
          <Amount>5</Amount>
          <Code>sample string 2</Code>
          <Coupon>sample string 9</Coupon>
          <Discount>8</Discount>
          <Name>sample string 1</Name>
          <Price>3</Price>
          <Qty>4</Qty>
          <RedeemedBonus>7</RedeemedBonus>
        </ChequeItem>
        <ChequeItem>
          <AddedBonus>6</AddedBonus>
          <Amount>5</Amount>
          <Code>sample string 2</Code>
          <Coupon>sample string 9</Coupon>
          <Discount>8</Discount>
          <Name>sample string 1</Name>
          <Price>3</Price>
          <Qty>4</Qty>
          <RedeemedBonus>7</RedeemedBonus>
        </ChequeItem>
      </Items>
      <Number>sample string 2</Number>
      <OperationType>sample string 4</OperationType>
      <PaidByBonus>8</PaidByBonus>
      <Partner>sample string 10</Partner>
      <Phone>14</Phone>
      <PosName>sample string 13</PosName>
      <Shop>sample string 11</Shop>
      <Summ>5</Summ>
      <SummDiscount>6</SummDiscount>
    </Cheque>
    <Cheque>
      <Bonus>7</Bonus>
      <CardNumber>12</CardNumber>
      <Date>2024-04-27T04:02:00.8924756+03:00</Date>
      <Discount>9</Discount>
      <Id>1</Id>
      <Items>
        <ChequeItem>
          <AddedBonus>6</AddedBonus>
          <Amount>5</Amount>
          <Code>sample string 2</Code>
          <Coupon>sample string 9</Coupon>
          <Discount>8</Discount>
          <Name>sample string 1</Name>
          <Price>3</Price>
          <Qty>4</Qty>
          <RedeemedBonus>7</RedeemedBonus>
        </ChequeItem>
        <ChequeItem>
          <AddedBonus>6</AddedBonus>
          <Amount>5</Amount>
          <Code>sample string 2</Code>
          <Coupon>sample string 9</Coupon>
          <Discount>8</Discount>
          <Name>sample string 1</Name>
          <Price>3</Price>
          <Qty>4</Qty>
          <RedeemedBonus>7</RedeemedBonus>
        </ChequeItem>
      </Items>
      <Number>sample string 2</Number>
      <OperationType>sample string 4</OperationType>
      <PaidByBonus>8</PaidByBonus>
      <Partner>sample string 10</Partner>
      <Phone>14</Phone>
      <PosName>sample string 13</PosName>
      <Shop>sample string 11</Shop>
      <Summ>5</Summ>
      <SummDiscount>6</SummDiscount>
    </Cheque>
  </ChequeData>
  <ErrorCode>1</ErrorCode>
  <Message>sample string 2</Message>
  <PageCount>3</PageCount>
  <RecordFilterd>5</RecordFilterd>
  <RecordTotal>4</RecordTotal>
</GetChequesResponse>