This service is used to retrieve the list of all countries code where there is one or more station.
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 getCountries | String | |
</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 getCountries | String | |
</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 | |
<countrylist> |
List of all the countries where there is one or more station | ||
<country> |
|||
Attribute: countrycode | 2 Digit ISO country code | String | |
Attribute: countryname | Full name of the country | String | |
</country> |
|||
</countrylist> |
|||
</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="getCountries"></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="getCountries"></service> </request> <response> <service status="Success" code="100" description="string"> <countrylist> <country countrycode="AL" countryname="Albania" ></country> <country countrycode="DZ" countryname="Algeria" ></country> .................................. .................................. <country countrycode="ZM" countryname="Zambia" ></country> <country countrycode="ZW" countryname="Zimbabwe" ></country> </countrylist> </service> </response>