GET api/FareMedia?accountId={accountId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
accountId

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of FareMedia
NameDescriptionTypeAdditional information
ID

integer

None.

CardNumber

integer

None.

checksum

string

None.

Account

Account

None.

Expires

date

None.

TransferValid

date

None.

TransferRouteFrom

Route_Backend

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ID": 1,
    "CardNumber": 2,
    "checksum": "sample string 3",
    "Account": {
      "AccountId": 1,
      "AccountBalance": 2.0,
      "LastUpdate": "2021-10-16T03:58:58.3076722-04:00"
    },
    "Expires": "2021-10-16T03:58:58.3076722-04:00",
    "TransferValid": "2021-10-16T03:58:58.3076722-04:00",
    "TransferRouteFrom": {
      "ID": 1,
      "RouteName": "sample string 2"
    }
  },
  {
    "ID": 1,
    "CardNumber": 2,
    "checksum": "sample string 3",
    "Account": {
      "AccountId": 1,
      "AccountBalance": 2.0,
      "LastUpdate": "2021-10-16T03:58:58.3076722-04:00"
    },
    "Expires": "2021-10-16T03:58:58.3076722-04:00",
    "TransferValid": "2021-10-16T03:58:58.3076722-04:00",
    "TransferRouteFrom": {
      "ID": 1,
      "RouteName": "sample string 2"
    }
  }
]

application/xml, text/xml

Sample:
<ArrayOfFareMedia xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FareBackEndData.FareMediaObj">
  <FareMedia>
    <Account xmlns:d3p1="http://schemas.datacontract.org/2004/07/FareBackEndData">
      <d3p1:AccountBalance>2</d3p1:AccountBalance>
      <d3p1:AccountId>1</d3p1:AccountId>
      <d3p1:LastUpdate>2021-10-16T03:58:58.3076722-04:00</d3p1:LastUpdate>
    </Account>
    <CardNumber>2</CardNumber>
    <Expires>2021-10-16T03:58:58.3076722-04:00</Expires>
    <ID>1</ID>
    <TransferRouteFrom xmlns:d3p1="http://schemas.datacontract.org/2004/07/FareBackEndData">
      <d3p1:ID>1</d3p1:ID>
      <d3p1:RouteName>sample string 2</d3p1:RouteName>
    </TransferRouteFrom>
    <TransferValid>2021-10-16T03:58:58.3076722-04:00</TransferValid>
    <checksum>sample string 3</checksum>
  </FareMedia>
  <FareMedia>
    <Account xmlns:d3p1="http://schemas.datacontract.org/2004/07/FareBackEndData">
      <d3p1:AccountBalance>2</d3p1:AccountBalance>
      <d3p1:AccountId>1</d3p1:AccountId>
      <d3p1:LastUpdate>2021-10-16T03:58:58.3076722-04:00</d3p1:LastUpdate>
    </Account>
    <CardNumber>2</CardNumber>
    <Expires>2021-10-16T03:58:58.3076722-04:00</Expires>
    <ID>1</ID>
    <TransferRouteFrom xmlns:d3p1="http://schemas.datacontract.org/2004/07/FareBackEndData">
      <d3p1:ID>1</d3p1:ID>
      <d3p1:RouteName>sample string 2</d3p1:RouteName>
    </TransferRouteFrom>
    <TransferValid>2021-10-16T03:58:58.3076722-04:00</TransferValid>
    <checksum>sample string 3</checksum>
  </FareMedia>
</ArrayOfFareMedia>