Back

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

Displays all fares between two stations for an operational day

Request Information

URI Parameters

NameDescriptionTypeAdditional Information
FromStopCode

Departure station code

string

Default value is

ToStopCode

Destination station code

string

Default value is

OperationalDay

Operational Day (yyyymmdd)

string

Default value is

Body Parameters

None.

Response Information

Resource Description

Fare types and costs for the departure and destination stations and operational day.

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>