POST api/Cards/CardInfo

POST api/Cards/CardInfo

Send card_Id and type; Server answers with CardData

Request Information

URI Parameters

None.

Body Parameters

cardId,type

cCardInfo
NameDescriptionTypeAdditional information
cardId

cardId

string

None.

Lock

Should the card be locked or the lock removed?

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "cardId": "sample string 1",
  "Lock": true
}

application/xml, text/xml

Sample:
<cCardInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KOSTIFC">
  <Lock>true</Lock>
  <cardId>sample string 1</cardId>
</cCardInfo>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CardData(valid,Balance (in cents),PriceLevel,HG,UG,noUst,EBon,CardType,Sbventioncode,CubventionLastConsumation)

cCardData
NameDescriptionTypeAdditional information
valid

Valid

boolean

None.

balance

Balance

decimal number

None.

priceLevel

priceLevel

integer

None.

PriceLine

1 .. 20

integer

None.

HG

HG

string

None.

UG

UG

string

None.

noUst

noUst

boolean

None.

eBon

EBon

boolean

None.

cardType

cardType

string

None.

subventCode

SubventionCode

string

None.

subventLastConsumation

SubventionLastConsumation

date

None.

Response Formats

application/json, text/json

Sample:
{
  "valid": true,
  "balance": 2.1,
  "priceLevel": 3,
  "PriceLine": 4,
  "HG": "sample string 5",
  "UG": "sample string 6",
  "noUst": true,
  "eBon": true,
  "cardType": "sample string 9",
  "subventCode": "sample string 10",
  "subventLastConsumation": "2026-04-14T03:15:59.8969233+00:00"
}

application/xml, text/xml

Sample:
<cCardData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KOSTIFC">
  <HG>sample string 5</HG>
  <PriceLine>4</PriceLine>
  <UG>sample string 6</UG>
  <balance>2.1</balance>
  <cardType>sample string 9</cardType>
  <eBon>true</eBon>
  <noUst>true</noUst>
  <priceLevel>3</priceLevel>
  <subventCode>sample string 10</subventCode>
  <subventLastConsumation>2026-04-14T03:15:59.8969233+00:00</subventLastConsumation>
  <valid>true</valid>
</cCardData>