GET api/FareMedia?cardNumber={cardNumber}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
cardNumber

integer

Required

Body Parameters

None.

Response Information

Resource Description

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": "2024-05-21T16:26:58.983111-04:00"
  },
  "Expires": "2024-05-21T16:26:58.983111-04:00",
  "TransferValid": "2024-05-21T16:26:58.983111-04:00",
  "TransferRouteFrom": {
    "Agency": {
      "ID": 1,
      "AgencyName": "sample string 2",
      "AgencyAddress": "sample string 3",
      "AgencyCity": "sample string 4",
      "AgencyState": "sample string 5",
      "AgencyZip": "sample string 6",
      "Active": true,
      "Interoperable": true
    },
    "ID": 1,
    "RouteId": 2,
    "RouteLoginId": 3,
    "RouteName": "sample string 4",
    "FareTypes": [
      {
        "FareTypeId": 1,
        "FareDescription": "sample string 2",
        "Chargeable": true,
        "Amount": 4.1,
        "RouteId": 5,
        "IsContactless": true,
        "Validate": true,
        "ShowButton": true,
        "ButtonLocation": 9,
        "StopsValid": [
          {
            "StopId": 1,
            "StopName": "sample string 2",
            "Lat": 3.1,
            "Long": 4.1,
            "Active": true,
            "VersionNumber": 6
          },
          {
            "StopId": 1,
            "StopName": "sample string 2",
            "Lat": 3.1,
            "Long": 4.1,
            "Active": true,
            "VersionNumber": 6
          }
        ],
        "Active": true,
        "VersionNumber": 11
      },
      {
        "FareTypeId": 1,
        "FareDescription": "sample string 2",
        "Chargeable": true,
        "Amount": 4.1,
        "RouteId": 5,
        "IsContactless": true,
        "Validate": true,
        "ShowButton": true,
        "ButtonLocation": 9,
        "StopsValid": [
          {
            "StopId": 1,
            "StopName": "sample string 2",
            "Lat": 3.1,
            "Long": 4.1,
            "Active": true,
            "VersionNumber": 6
          },
          {
            "StopId": 1,
            "StopName": "sample string 2",
            "Lat": 3.1,
            "Long": 4.1,
            "Active": true,
            "VersionNumber": 6
          }
        ],
        "Active": true,
        "VersionNumber": 11
      }
    ],
    "Active": true,
    "VersionNumber": 6
  }
}

application/xml, text/xml

Sample:
<FareMedia xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FareBackEndData.FareMediaObj">
  <Account xmlns:d2p1="http://schemas.datacontract.org/2004/07/FareBackEndData">
    <d2p1:AccountBalance>2</d2p1:AccountBalance>
    <d2p1:AccountId>1</d2p1:AccountId>
    <d2p1:LastUpdate>2024-05-21T16:26:58.983111-04:00</d2p1:LastUpdate>
  </Account>
  <CardNumber>2</CardNumber>
  <Expires>2024-05-21T16:26:58.983111-04:00</Expires>
  <ID>1</ID>
  <TransferRouteFrom xmlns:d2p1="http://schemas.datacontract.org/2004/07/FareBackEndData.FrontEndObj">
    <Active xmlns="http://schemas.datacontract.org/2004/07/FareFrontEndData">true</Active>
    <VersionNumber xmlns="http://schemas.datacontract.org/2004/07/FareFrontEndData">6</VersionNumber>
    <FareTypes xmlns="http://schemas.datacontract.org/2004/07/FareFrontEndData">
      <FareType>
        <Active>true</Active>
        <VersionNumber>11</VersionNumber>
        <Amount>4.1</Amount>
        <ButtonLocation>9</ButtonLocation>
        <Chargeable>true</Chargeable>
        <FareDescription>sample string 2</FareDescription>
        <FareTypeId>1</FareTypeId>
        <IsContactless>true</IsContactless>
        <RouteId>5</RouteId>
        <ShowButton>true</ShowButton>
        <StopsValid>
          <Stop>
            <Active>true</Active>
            <VersionNumber>6</VersionNumber>
            <Lat>3.1</Lat>
            <Long>4.1</Long>
            <StopId>1</StopId>
            <StopName>sample string 2</StopName>
          </Stop>
          <Stop>
            <Active>true</Active>
            <VersionNumber>6</VersionNumber>
            <Lat>3.1</Lat>
            <Long>4.1</Long>
            <StopId>1</StopId>
            <StopName>sample string 2</StopName>
          </Stop>
        </StopsValid>
        <Validate>true</Validate>
      </FareType>
      <FareType>
        <Active>true</Active>
        <VersionNumber>11</VersionNumber>
        <Amount>4.1</Amount>
        <ButtonLocation>9</ButtonLocation>
        <Chargeable>true</Chargeable>
        <FareDescription>sample string 2</FareDescription>
        <FareTypeId>1</FareTypeId>
        <IsContactless>true</IsContactless>
        <RouteId>5</RouteId>
        <ShowButton>true</ShowButton>
        <StopsValid>
          <Stop>
            <Active>true</Active>
            <VersionNumber>6</VersionNumber>
            <Lat>3.1</Lat>
            <Long>4.1</Long>
            <StopId>1</StopId>
            <StopName>sample string 2</StopName>
          </Stop>
          <Stop>
            <Active>true</Active>
            <VersionNumber>6</VersionNumber>
            <Lat>3.1</Lat>
            <Long>4.1</Long>
            <StopId>1</StopId>
            <StopName>sample string 2</StopName>
          </Stop>
        </StopsValid>
        <Validate>true</Validate>
      </FareType>
    </FareTypes>
    <ID xmlns="http://schemas.datacontract.org/2004/07/FareFrontEndData">1</ID>
    <RouteId xmlns="http://schemas.datacontract.org/2004/07/FareFrontEndData">2</RouteId>
    <RouteLoginId xmlns="http://schemas.datacontract.org/2004/07/FareFrontEndData">3</RouteLoginId>
    <RouteName xmlns="http://schemas.datacontract.org/2004/07/FareFrontEndData">sample string 4</RouteName>
    <d2p1:Agency xmlns:d3p1="http://schemas.datacontract.org/2004/07/FareBackEndData">
      <d3p1:Active>true</d3p1:Active>
      <d3p1:AgencyAddress>sample string 3</d3p1:AgencyAddress>
      <d3p1:AgencyCity>sample string 4</d3p1:AgencyCity>
      <d3p1:AgencyName>sample string 2</d3p1:AgencyName>
      <d3p1:AgencyState>sample string 5</d3p1:AgencyState>
      <d3p1:AgencyZip>sample string 6</d3p1:AgencyZip>
      <d3p1:ID>1</d3p1:ID>
      <d3p1:Interoperable>true</d3p1:Interoperable>
    </d2p1:Agency>
  </TransferRouteFrom>
  <TransferValid>2024-05-21T16:26:58.983111-04:00</TransferValid>
  <checksum>sample string 3</checksum>
</FareMedia>