Back

GET api/V1/Fares/{FromStopCode}/{ToStopCode}

Displays all fares between two stations

Request Information

URI Parameters

NameDescriptionTypeAdditional Information
FromStopCode

Departure station code

string

Default value is

ToStopCode

Destination station code

string

Default value is

Body Parameters

None.

Response Information

Resource Description

Fare types and fare costs for the departure and destination stations provided.

Response Formats

application/json, text/json

Sample:
{
  "Metadata": {
    "TimeStamp": "sample string 1",
    "ErrorCode": "sample string 2",
    "ErrorMessage": "sample string 3"
  },
  "AllFares": {
    "FareCategory": [
      {
        "Type": "sample string 1",
        "Tickets": [
          {
            "Type": "sample string 1",
            "Fares": [
              {
                "Type": "sample string 1",
                "Amount": 2.0,
                "Category": "sample string 3"
              },
              {
                "Type": "sample string 1",
                "Amount": 2.0,
                "Category": "sample string 3"
              }
            ]
          },
          {
            "Type": "sample string 1",
            "Fares": [
              {
                "Type": "sample string 1",
                "Amount": 2.0,
                "Category": "sample string 3"
              },
              {
                "Type": "sample string 1",
                "Amount": 2.0,
                "Category": "sample string 3"
              }
            ]
          }
        ]
      },
      {
        "Type": "sample string 1",
        "Tickets": [
          {
            "Type": "sample string 1",
            "Fares": [
              {
                "Type": "sample string 1",
                "Amount": 2.0,
                "Category": "sample string 3"
              },
              {
                "Type": "sample string 1",
                "Amount": 2.0,
                "Category": "sample string 3"
              }
            ]
          },
          {
            "Type": "sample string 1",
            "Fares": [
              {
                "Type": "sample string 1",
                "Amount": 2.0,
                "Category": "sample string 3"
              },
              {
                "Type": "sample string 1",
                "Amount": 2.0,
                "Category": "sample string 3"
              }
            ]
          }
        ]
      }
    ]
  }
}

text/xml

Sample:
<Result>
  <Metadata TimeStamp="sample string 1" ErrorCode="sample string 2" ErrorMessage="sample string 3" />
  <AllFares>
    <FareCategory Type="sample string 1">
      <Tickets Type="sample string 1">
        <Fares Type="sample string 1" Amount="2" Category="sample string 3" />
        <Fares Type="sample string 1" Amount="2" Category="sample string 3" />
      </Tickets>
      <Tickets Type="sample string 1">
        <Fares Type="sample string 1" Amount="2" Category="sample string 3" />
        <Fares Type="sample string 1" Amount="2" Category="sample string 3" />
      </Tickets>
    </FareCategory>
    <FareCategory Type="sample string 1">
      <Tickets Type="sample string 1">
        <Fares Type="sample string 1" Amount="2" Category="sample string 3" />
        <Fares Type="sample string 1" Amount="2" Category="sample string 3" />
      </Tickets>
      <Tickets Type="sample string 1">
        <Fares Type="sample string 1" Amount="2" Category="sample string 3" />
        <Fares Type="sample string 1" Amount="2" Category="sample string 3" />
      </Tickets>
    </FareCategory>
  </AllFares>
</Result>