GET api/PassType

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of PassType
NameDescriptionTypeAdditional information
ID

integer

None.

PassName

string

None.

FareReduction

FareReductionType

None.

ReductionAmount

decimal number

None.

DaysValid

integer

None.

CashierCanOverrideValidity

boolean

None.

CustomerCanPurchase

boolean

None.

ValidityStartsAtPurchase

boolean

None.

RequiredPassIdToPurchase

Collection of DiscountPassTypes

None.

Cost

decimal number

None.

RedemptionOrder

integer

None.

Agency

Agency

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ID": 1,
    "PassName": "sample string 2",
    "FareReduction": 0,
    "ReductionAmount": 3.1,
    "DaysValid": 4,
    "CashierCanOverrideValidity": true,
    "CustomerCanPurchase": true,
    "ValidityStartsAtPurchase": true,
    "RequiredPassIdToPurchase": [
      {
        "ID": 1,
        "Description": "sample string 2",
        "Cost": 3.1,
        "ValidityPeriod": 4,
        "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,
        "Description": "sample string 2",
        "Cost": 3.1,
        "ValidityPeriod": 4,
        "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
        }
      }
    ],
    "Cost": 8.1,
    "RedemptionOrder": 9,
    "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,
    "PassName": "sample string 2",
    "FareReduction": 0,
    "ReductionAmount": 3.1,
    "DaysValid": 4,
    "CashierCanOverrideValidity": true,
    "CustomerCanPurchase": true,
    "ValidityStartsAtPurchase": true,
    "RequiredPassIdToPurchase": [
      {
        "ID": 1,
        "Description": "sample string 2",
        "Cost": 3.1,
        "ValidityPeriod": 4,
        "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,
        "Description": "sample string 2",
        "Cost": 3.1,
        "ValidityPeriod": 4,
        "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
        }
      }
    ],
    "Cost": 8.1,
    "RedemptionOrder": 9,
    "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
    }
  }
]

application/xml, text/xml

Sample:
<ArrayOfPassType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FareBackEndData">
  <PassType>
    <Agency>
      <Active>true</Active>
      <AgencyAddress>sample string 3</AgencyAddress>
      <AgencyCity>sample string 4</AgencyCity>
      <AgencyName>sample string 2</AgencyName>
      <AgencyState>sample string 5</AgencyState>
      <AgencyZip>sample string 6</AgencyZip>
      <ID>1</ID>
      <Interoperable>true</Interoperable>
    </Agency>
    <CashierCanOverrideValidity>true</CashierCanOverrideValidity>
    <Cost>8.1</Cost>
    <CustomerCanPurchase>true</CustomerCanPurchase>
    <DaysValid>4</DaysValid>
    <FareReduction>All</FareReduction>
    <ID>1</ID>
    <PassName>sample string 2</PassName>
    <RedemptionOrder>9</RedemptionOrder>
    <ReductionAmount>3.1</ReductionAmount>
    <RequiredPassIdToPurchase>
      <DiscountPassTypes>
        <Agency>
          <Active>true</Active>
          <AgencyAddress>sample string 3</AgencyAddress>
          <AgencyCity>sample string 4</AgencyCity>
          <AgencyName>sample string 2</AgencyName>
          <AgencyState>sample string 5</AgencyState>
          <AgencyZip>sample string 6</AgencyZip>
          <ID>1</ID>
          <Interoperable>true</Interoperable>
        </Agency>
        <Cost>3.1</Cost>
        <Description>sample string 2</Description>
        <ID>1</ID>
        <ValidityPeriod>4</ValidityPeriod>
      </DiscountPassTypes>
      <DiscountPassTypes>
        <Agency>
          <Active>true</Active>
          <AgencyAddress>sample string 3</AgencyAddress>
          <AgencyCity>sample string 4</AgencyCity>
          <AgencyName>sample string 2</AgencyName>
          <AgencyState>sample string 5</AgencyState>
          <AgencyZip>sample string 6</AgencyZip>
          <ID>1</ID>
          <Interoperable>true</Interoperable>
        </Agency>
        <Cost>3.1</Cost>
        <Description>sample string 2</Description>
        <ID>1</ID>
        <ValidityPeriod>4</ValidityPeriod>
      </DiscountPassTypes>
    </RequiredPassIdToPurchase>
    <ValidityStartsAtPurchase>true</ValidityStartsAtPurchase>
  </PassType>
  <PassType>
    <Agency>
      <Active>true</Active>
      <AgencyAddress>sample string 3</AgencyAddress>
      <AgencyCity>sample string 4</AgencyCity>
      <AgencyName>sample string 2</AgencyName>
      <AgencyState>sample string 5</AgencyState>
      <AgencyZip>sample string 6</AgencyZip>
      <ID>1</ID>
      <Interoperable>true</Interoperable>
    </Agency>
    <CashierCanOverrideValidity>true</CashierCanOverrideValidity>
    <Cost>8.1</Cost>
    <CustomerCanPurchase>true</CustomerCanPurchase>
    <DaysValid>4</DaysValid>
    <FareReduction>All</FareReduction>
    <ID>1</ID>
    <PassName>sample string 2</PassName>
    <RedemptionOrder>9</RedemptionOrder>
    <ReductionAmount>3.1</ReductionAmount>
    <RequiredPassIdToPurchase>
      <DiscountPassTypes>
        <Agency>
          <Active>true</Active>
          <AgencyAddress>sample string 3</AgencyAddress>
          <AgencyCity>sample string 4</AgencyCity>
          <AgencyName>sample string 2</AgencyName>
          <AgencyState>sample string 5</AgencyState>
          <AgencyZip>sample string 6</AgencyZip>
          <ID>1</ID>
          <Interoperable>true</Interoperable>
        </Agency>
        <Cost>3.1</Cost>
        <Description>sample string 2</Description>
        <ID>1</ID>
        <ValidityPeriod>4</ValidityPeriod>
      </DiscountPassTypes>
      <DiscountPassTypes>
        <Agency>
          <Active>true</Active>
          <AgencyAddress>sample string 3</AgencyAddress>
          <AgencyCity>sample string 4</AgencyCity>
          <AgencyName>sample string 2</AgencyName>
          <AgencyState>sample string 5</AgencyState>
          <AgencyZip>sample string 6</AgencyZip>
          <ID>1</ID>
          <Interoperable>true</Interoperable>
        </Agency>
        <Cost>3.1</Cost>
        <Description>sample string 2</Description>
        <ID>1</ID>
        <ValidityPeriod>4</ValidityPeriod>
      </DiscountPassTypes>
    </RequiredPassIdToPurchase>
    <ValidityStartsAtPurchase>true</ValidityStartsAtPurchase>
  </PassType>
</ArrayOfPassType>