POST api/values/CardBonuses

Получение бонусов карты не относящиеся к чекам.

Request Information

URI Parameters

None.

Body Parameters

CardBonusesRequest
NameDescriptionTypeAdditional information
Operator

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

integer

None.

Card

номер карты

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Operator": 1,
  "Card": 2
}

application/xml, text/xml

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

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CardBonusesResponse
NameDescriptionTypeAdditional information
CardBonuses

Collection of CardBonus

None.

ErrorCode

код ошибки

integer

None.

Message

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

string

None.

Response Formats

application/json, text/json

Sample:
{
  "CardBonuses": [
    {
      "Id": 1,
      "Bonus": 2.0,
      "BonusType": "sample string 3",
      "BonusTime": "2024-11-09T07:26:51.9624159+03:00"
    },
    {
      "Id": 1,
      "Bonus": 2.0,
      "BonusType": "sample string 3",
      "BonusTime": "2024-11-09T07:26:51.9624159+03:00"
    }
  ],
  "ErrorCode": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<CardBonusesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models">
  <CardBonuses>
    <CardBonus>
      <Bonus>2</Bonus>
      <BonusTime>2024-11-09T07:26:51.9624159+03:00</BonusTime>
      <BonusType>sample string 3</BonusType>
      <Id>1</Id>
    </CardBonus>
    <CardBonus>
      <Bonus>2</Bonus>
      <BonusTime>2024-11-09T07:26:51.9624159+03:00</BonusTime>
      <BonusType>sample string 3</BonusType>
      <Id>1</Id>
    </CardBonus>
  </CardBonuses>
  <ErrorCode>1</ErrorCode>
  <Message>sample string 2</Message>
</CardBonusesResponse>