POST api/client/GetChequeDetail

Запрос детализации чека по заданному ID чека

Request Information

URI Parameters

None.

Body Parameters

ChequeDetailRequest
NameDescriptionTypeAdditional information
ChequeID

ID чека

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ChequeID": 1
}

application/xml, text/xml

Sample:
<ChequeDetailRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models">
  <ChequeID>1</ChequeID>
</ChequeDetailRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ChequeDetailResponse
NameDescriptionTypeAdditional information
ErrorCode

Код ошибки

integer

None.

Message

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

string

None.

ChequeDetailData

ChequeDetail

None.

Response Formats

application/json, text/json

Sample:
{
  "ErrorCode": 1,
  "Message": "sample string 2",
  "ChequeDetailData": {
    "Id": 1,
    "Number": "sample string 2",
    "Date": "2022-08-12T18:29:33.6569433+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,
    "items": [
      {
        "position": 1,
        "code": "sample string 2",
        "price": 3.0,
        "quantity": 4.0,
        "amount": 5.0
      },
      {
        "position": 1,
        "code": "sample string 2",
        "price": 3.0,
        "quantity": 4.0,
        "amount": 5.0
      }
    ],
    "Campaigns": [
      "sample string 1",
      "sample string 2"
    ]
  }
}

application/xml, text/xml

Sample:
<ChequeDetailResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models">
  <ChequeDetailData>
    <Bonus>7</Bonus>
    <Campaigns xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </Campaigns>
    <CardNumber>12</CardNumber>
    <Date>2022-08-12T18:29:33.6569433+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>
    <Shop>sample string 11</Shop>
    <Summ>5</Summ>
    <SummDiscount>6</SummDiscount>
    <items>
      <ChequeDetailItems>
        <amount>5</amount>
        <code>sample string 2</code>
        <position>1</position>
        <price>3</price>
        <quantity>4</quantity>
      </ChequeDetailItems>
      <ChequeDetailItems>
        <amount>5</amount>
        <code>sample string 2</code>
        <position>1</position>
        <price>3</price>
        <quantity>4</quantity>
      </ChequeDetailItems>
    </items>
  </ChequeDetailData>
  <ErrorCode>1</ErrorCode>
  <Message>sample string 2</Message>
</ChequeDetailResponse>