GET api/FareMedia

Request Information

URI Parameters

None.

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": "2024-12-21T07:52:15.3562533-05:00"
    },
    "Expires": "2024-12-21T07:52:15.3562533-05:00",
    "TransferValid": "2024-12-21T07:52:15.3562533-05: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
    }
  },
  {
    "ID": 1,
    "CardNumber": 2,
    "checksum": "sample string 3",
    "Account": {
      "AccountId": 1,
      "AccountBalance": 2.0,
      "LastUpdate": "2024-12-21T07:52:15.3562533-05:00"
    },
    "Expires": "2024-12-21T07:52:15.3562533-05:00",
    "TransferValid": "2024-12-21T07:52:15.3562533-05: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:
<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>2024-12-21T07:52:15.3562533-05:00</d3p1:LastUpdate>
    </Account>
    <CardNumber>2</CardNumber>
    <Expires>2024-12-21T07:52:15.3562533-05:00</Expires>
    <ID>1</ID>
    <TransferRouteFrom xmlns:d3p1="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>
      <d3p1:Agency xmlns:d4p1="http://schemas.datacontract.org/2004/07/FareBackEndData">
        <d4p1:Active>true</d4p1:Active>
        <d4p1:AgencyAddress>sample string 3</d4p1:AgencyAddress>
        <d4p1:AgencyCity>sample string 4</d4p1:AgencyCity>
        <d4p1:AgencyName>sample string 2</d4p1:AgencyName>
        <d4p1:AgencyState>sample string 5</d4p1:AgencyState>
        <d4p1:AgencyZip>sample string 6</d4p1:AgencyZip>
        <d4p1:ID>1</d4p1:ID>
        <d4p1:Interoperable>true</d4p1:Interoperable>
      </d3p1:Agency>
    </TransferRouteFrom>
    <TransferValid>2024-12-21T07:52:15.3562533-05: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>2024-12-21T07:52:15.3562533-05:00</d3p1:LastUpdate>
    </Account>
    <CardNumber>2</CardNumber>
    <Expires>2024-12-21T07:52:15.3562533-05:00</Expires>
    <ID>1</ID>
    <TransferRouteFrom xmlns:d3p1="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>
      <d3p1:Agency xmlns:d4p1="http://schemas.datacontract.org/2004/07/FareBackEndData">
        <d4p1:Active>true</d4p1:Active>
        <d4p1:AgencyAddress>sample string 3</d4p1:AgencyAddress>
        <d4p1:AgencyCity>sample string 4</d4p1:AgencyCity>
        <d4p1:AgencyName>sample string 2</d4p1:AgencyName>
        <d4p1:AgencyState>sample string 5</d4p1:AgencyState>
        <d4p1:AgencyZip>sample string 6</d4p1:AgencyZip>
        <d4p1:ID>1</d4p1:ID>
        <d4p1:Interoperable>true</d4p1:Interoperable>
      </d3p1:Agency>
    </TransferRouteFrom>
    <TransferValid>2024-12-21T07:52:15.3562533-05:00</TransferValid>
    <checksum>sample string 3</checksum>
  </FareMedia>
</ArrayOfFareMedia>