This service is used to retrieve the list of all the stations within a specific country.
Please follow the rules defined in the grid below.
Elements | Parameter | Description | Type |
<auth> |
|||
username* | Unique string provided by CARSiRENT. Will be used to identify particular offer. | String | |
password* | Unique password provided by CARSiRENT for authentication. | String | |
language | Returns the result set in the language. (format: alpha-2). | String | |
pos* | Defines the source of the market. (format: 2 Digit ISO). | String | |
</auth> |
|||
<service> |
|||
Attribute: type | Defines the name of the service you have requested. e.g getStations | String | |
<params> |
|||
country | 2 Digit ISO country code. (format: alpha-2). | String | |
</params> |
|||
</service> |
Elements | Parameter | Description | Type |
<request> |
|||
<auth> |
|||
username* | Unique string provided by CARSiRENT. Will be used to identify particular offer. | String | |
password* | Unique password provided by CARSiRENT for authentication. | String | |
language | Returns the result set in the language. (format: alpha-2). | String | |
pos* | Defines the source of the market. (format: 2 Digit ISO). | String | |
</auth> |
|||
<service> |
|||
Attribute: type | Defines the name of the service you have requested. e.g getStations | String | |
<params> |
|||
country | 2 Digit ISO country code. (format: alpha-2). | String | |
</params> |
|||
</service> |
|||
</request> |
|||
<response> |
|||
<service> |
|||
Attribute: status | Returns Success or Error | String | |
Attribute: code | Returns the reason code based on the response. For example for success it returns 100 | Int | |
Attribute: description | Returns the description of the response of your request | Int | |
<stationlist> |
List of all the stations in within a specific country defined in the request parameters | ||
<station> |
|||
Attribute: stationcode | Unique location code provided against each station. | Int | |
Attribute: type | Returns the type of location i.e Aiport, Downtown or Railway Station | String | |
Attribute: stationtitle | Full name of the station | String | |
</station> |
|||
</stationlist> |
|||
</service> |
|||
</response> |
<?xml version="1.0" encoding="utf-8"?> <request> <auth> <username>USERNAME</username> <password>PASSWORD</password> <language>EN</language> <pos>BH</pos> </auth> <service type="getStations"> <params> <country>FR</country> </params> </service> </request>
<?xml version="1.0" encoding="utf-8"?> <request> <auth> <username>USERNAME</username> <password>PASSWORD</password> <language>EN</language> <pos>BH</pos> </auth> <service type="getStations"> <params> <country>FR</country> </params> </service> </request> <response> <service status="Success" code="100" description="string"> <stationlist> <station stationcode="894" type="Downtown" stationtitle="Agen"></station> <station stationcode="791" type="Railway Station" stationtitle="Agen Train Station SNCF"></station> <station stationcode="792" type="Airport" stationtitle="Agen-La Garenne Airport"></station> .................................. .................................. <station stationcode="940" type="Downtown" stationtitle="Villefranche-sur-Saone"></station> <station stationcode="941" type="Downtown" stationtitle="Villeneuve-sur-Lot"></station> </stationlist> </service> </response>