GET api/v{version}/FareTypes
Gets the list of the different available fare types.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| version |
The requested API version |
string |
Required Default value is 2.0 |
Body Parameters
None.
Response Information
Resource Description
Returns the list of fare types (id, code and name)
Collection of FareType| Name | Description | Type | Additional information |
|---|---|---|---|
| ID |
Gets or sets the ID of the fare type. |
integer |
None. |
| Code |
Gets or sets the code that can be used to identify the fare type. |
string |
None. |
| Name |
Gets or sets the friendly name of the fare type. |
string |
None. |
Response Formats
application/json, text/json, application/problem+json
Sample:
[
{
"id": 1,
"code": "sample string 2",
"name": "sample string 3"
},
{
"id": 1,
"code": "sample string 2",
"name": "sample string 3"
}
]
application/xml, text/xml
Sample:
<ArrayOfFareType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TS.DR.Resources">
<FareType>
<Code>sample string 2</Code>
<ID>1</ID>
<Name>sample string 3</Name>
</FareType>
<FareType>
<Code>sample string 2</Code>
<ID>1</ID>
<Name>sample string 3</Name>
</FareType>
</ArrayOfFareType>