POST api/card/GetCard

Получает базовую инфу по карте ПЛ (статус, тип, оператор, баланс, кол-во покупок, сумма покупок, кол-во начисленных бонусов, кол-во списанных бонусов

Request Information

URI Parameters

None.

Body Parameters

CardStatisticsRequest
NameDescriptionTypeAdditional information
Card

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Card": 1
}

application/xml, text/xml

Sample:
<CardStatisticsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManager.Infrastructure.Request">
  <Card>1</Card>
</CardStatisticsRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CardInfoResponse
NameDescriptionTypeAdditional information
Status

string

None.

Type

boolean

None.

OperatorName

string

None.

Balance

decimal number

None.

FullBalance

decimal number

None.

Purchases

integer

None.

PurchaseSum

decimal number

None.

Charged

decimal number

None.

Redeemed

decimal number

None.

ErrorCode

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": "sample string 1",
  "Type": true,
  "OperatorName": "sample string 3",
  "Balance": 4.0,
  "FullBalance": 5.0,
  "Purchases": 6,
  "PurchaseSum": 7.0,
  "Charged": 8.0,
  "Redeemed": 9.0,
  "ErrorCode": 10,
  "Message": "sample string 11"
}

application/xml, text/xml

Sample:
<CardInfoResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManager.Infrastructure.Response">
  <ErrorCode>10</ErrorCode>
  <Message>sample string 11</Message>
  <Balance>4</Balance>
  <Charged>8</Charged>
  <FullBalance>5</FullBalance>
  <OperatorName>sample string 3</OperatorName>
  <PurchaseSum>7</PurchaseSum>
  <Purchases>6</Purchases>
  <Redeemed>9</Redeemed>
  <Status>sample string 1</Status>
  <Type>true</Type>
</CardInfoResponse>