POST api/Cards/SaveCardTransaction

POST api/Cards/SaveCardTransaction

Send card transaction, server answers with valid true/false (transaction completed) and the new balance

Request Information

URI Parameters

None.

Body Parameters

cardId, type, deviceNo,amount,documentNo, transDate, user, info1, info2, info3, info4, info5, GUID, SubventCOe, SubventDate, SubventBetrag

cCardTransaction
NameDescriptionTypeAdditional information
cardId

CardId

string

None.

Amount

Amount

decimal number

None.

DeviceNo

DeviceNo

string

None.

DocumentNo

DocumentNo

string

None.

TransDate

Transaction Date

date

None.

User

User

string

None.

Info1

Info1

string

None.

Info2

Info2

string

None.

Info3

Info3

string

None.

Info4

Info4

string

None.

Info5

Info5

string

None.

Info6

Info6

string

None.

Info7

Info7

string

None.

Info8

Info8

string

None.

Info9

Info9

string

None.

Info10

Info10

string

None.

GUID

GUID

string

None.

SubventCode

SubventCode

string

None.

SubventDate

SubventDate

date

None.

SubventBetrag

SubventBetrag

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "cardId": "sample string 1",
  "Amount": 2.0,
  "DeviceNo": "sample string 3",
  "DocumentNo": "sample string 4",
  "TransDate": "2026-04-14T03:14:30.8328935+00:00",
  "User": "sample string 6",
  "Info1": "sample string 7",
  "Info2": "sample string 8",
  "Info3": "sample string 9",
  "Info4": "sample string 10",
  "Info5": "sample string 11",
  "Info6": "sample string 12",
  "Info7": "sample string 13",
  "Info8": "sample string 14",
  "Info9": "sample string 15",
  "Info10": "sample string 16",
  "GUID": "sample string 17",
  "SubventCode": "sample string 18",
  "SubventDate": "2026-04-14T03:14:30.8328935+00:00",
  "SubventBetrag": 20.1
}

application/xml, text/xml

Sample:
<cCardTransaction xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KOSTIFC">
  <Amount>2</Amount>
  <DeviceNo>sample string 3</DeviceNo>
  <DocumentNo>sample string 4</DocumentNo>
  <GUID>sample string 17</GUID>
  <Info1>sample string 7</Info1>
  <Info10>sample string 16</Info10>
  <Info2>sample string 8</Info2>
  <Info3>sample string 9</Info3>
  <Info4>sample string 10</Info4>
  <Info5>sample string 11</Info5>
  <Info6>sample string 12</Info6>
  <Info7>sample string 13</Info7>
  <Info8>sample string 14</Info8>
  <Info9>sample string 15</Info9>
  <SubventBetrag>20.1</SubventBetrag>
  <SubventCode>sample string 18</SubventCode>
  <SubventDate>2026-04-14T03:14:30.8328935+00:00</SubventDate>
  <TransDate>2026-04-14T03:14:30.8328935+00:00</TransDate>
  <User>sample string 6</User>
  <cardId>sample string 1</cardId>
</cCardTransaction>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CardData(Valid, Balance)

cResponseTransaction
NameDescriptionTypeAdditional information
valid

valid

boolean

None.

newBalance

the new balance after the transaction

decimal number

None.

message

optional message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "valid": true,
  "newBalance": 2.1,
  "message": "sample string 3"
}

application/xml, text/xml

Sample:
<cResponseTransaction xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KOSTIFC">
  <message>sample string 3</message>
  <newBalance>2.1</newBalance>
  <valid>true</valid>
</cResponseTransaction>