User this service to approve a reservation and a voucher and confirmation number will be returned.
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 approveReservation | String | |
<params> |
|||
<pickup> |
|||
Attribute: stationcode | Defines the location the customer will pick up his car from. Stationcode can be found in getStations request. | Int | |
Attribute: datetime | Defines date and time the customer will pick up his car. | DateTime | |
</pickup> |
|||
<dropoff> |
|||
Attribute: stationcode | Defines the location the customer will drop off his car at. Stationcode can be found in getStations request. | Int | |
Attribute: datetime | Defines date and time the customer will drop off his car. | DateTime | |
</dropoff> |
|||
<resultset> |
Attribute: value | Total number of rates requested. | Int |
<driver> |
Attribute: age* | Age of the driver. | Int |
Attribute: firstname* | First Name of the driver. | String | |
Attribute: lastname* | Last Name of the driver. | String | |
Attribute: phone* | Phone number of the driver with country code. (format: 0973-12345678) | String | |
Attribute: email* | Email address of the driver. | String | |
Attribute: flightNumber | Flight number is optional field. | String | |
Attribute: stateCode | State Code is mandatory field if you are resident of CANADA/US. (format: 2 Character ISO) | String | |
Attribute: stateName | State Name is mandatory field if you are residence of CANADA/US. | 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 getAvailRates | String | |
<params> |
|||
<pickup> |
|||
Attribute: stationcode | Defines the location the customer will pick up his car from. Stationcode can be found in getStations request. | Int | |
Attribute: datetime | Defines date and time the customer will pick up his car. | DateTime | |
</pickup> |
|||
<dropoff> |
|||
Attribute: stationcode | Defines the location the customer will drop off his car at. Stationcode can be found in getStations request. | Int | |
Attribute: datetime | Defines date and time the customer will drop off his car. | DateTime | |
</dropoff> |
|||
<resultset> |
Attribute: value | Total number of rates requested. | Int |
<driver> |
Attribute: age* | Age of the driver. | Int |
</params> |
|||
</service> |
|||
</request> |
|||
<response> |
|||
<service> |
|||
Attribute: totalrecords | Total number of records returned | Int | |
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 | |
<vehicles> |
List of all the rates available based on the pick up and drop off details defined in the request parameters | ||
<vehicleset> |
One vehicle set containing all the information for that particular vehicle with unique rate id for reservation | ||
rateid | Unique id of each vehicle set. Will be used to reserve the booking of the selected vehicle. | Int | |
<vehicle> |
|||
doors | Total doors of the vehicle. | Int | |
passengers | Passengers allowed in the vehicle. | Int | |
vehimage | Vehicle image. | Int | |
transmission | True/False. Defines whether transmission is automatic or manual. True means automatic and false means manual | String | |
ac | True/False. Defines whether vehicle is air conditioned or not. True means air conditioned and false means no air condition | String | |
largebaggage | Total number of large baggage capacity. | Int | |
smallbaggage | Total number of small baggage capacity. | Int | |
vehgroup | Supplier specific group of vehicle. | String | |
vehname | Name of the vehicle. | String | |
vehclass | Supplier specific class of vehicle. | String | |
vehcategory | Supplier specific category of vehicle. | String | |
</vehicle> |
|||
<supplier> |
Returns the supplier information for the particular vehicle in the vehicle set | ||
suppliername | Name of the supplier. | String | |
supplierlogo | Logo image of the supplier. | String | |
terms | Terms and Conditions for the supplier.. | String | |
</supplier> |
|||
<pricing> |
Returns the pricing information for the particular vehicle in the vehicle set | ||
totaldays | Total rental period. | String | |
ispartial | 1/0. 1 means the vehicle is offered as partial payment and 0 means its full payment. | String | |
totalamount | Total rental cost. | String | |
currency | Currency of the requested price. | String | |
duenow | The amount which is due before the reservation is confirmed. | String | |
dueatdesk | The amount to be paid at the desk by the client directly to the supplier. | String | |
onewayfee | Additional fee for different drop off location if applicable. | String | |
youngdriversurchage | Additional young driver fee if applicable. | String | |
</pricing> |
|||
</vehicleset> |
|||
</vehicles> |
|||
</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="approveReservation"> <params> <driver firstname="John" lastname="Smith" phone="1234567" email="test@test.com" flightNumber="EK000" stateCode="CA" stateName="CANADA"/> <address streetaddress="218 rue de la Tombe-Issoire" city="Paris" postcode="1234" country="FR"/> <identifier rateid="1234567"/> </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="getAvailRates"> <params> <pickup stationcode="865" datetime="2018-04-12T09:00:00"></pickup> <dropoff stationcode="865" datetime="2018-04-17T09:00:00"></dropoff> <resultset value="60"/> <driver age="25"/> </params> </service> </request> <response> <service totalrecords="60" status="Success" code="100" description="string"> <vehicles> <vehicleset> <rateid>2258108</rateid> <vehicle> <doors>2</doors> <passengers>4</passengers> <vehimage>https://static.carhire-solutions.com/images/car/interrentEU/small/FR-A.jpg</vehimage> <transmission>false</transmission> <ac>true</ac> <largebaggage>2</largebaggage> <smallbaggage>2</smallbaggage> <vehgroup>Mini</vehgroup> <vehname>Fiat 500 /toyota Aygo/renault Twingo</vehname> <vehclass>1</vehclass> <vehcategory>1</vehcategory> <vehicle> <supplier> <suppliername>interrent eu</suppliername> <supplierlogo>https://static.carhire-solutions.com/images/supplier/logo/logo247.png</supplierlogo> <terms>terms</terms> <supplier> <pricing> <totaldays>4</totaldays> <ispartial>0</ispartial> <totalamount>107.180</totalamount> <currency>USD</currency> <duenow>107.180</duenow> <dueatdesk>0</dueatdesk> <onewayfee>0</onewayfee> <youngdriversurchage>0</youngdriversurchage> <pricing> <vehicleset> <vehicleset> <rateid>2358108</rateid> <vehicle> <doors>3</doors> <passengers>4</passengers> <vehimage>http://static.europcar.com/carvisuals/partners/835x557/MBMR_FR.png</vehimage> <transmission>false</transmission> <ac>true</ac> <largebaggage>1</largebaggage> <smallbaggage>1</smallbaggage> <vehgroup>Mini</vehgroup> <vehname>Renault Twingo</vehname> <vehclass>MBMR</vehclass> <vehcategory>Eco-responsable</vehcategory> <vehicle> <supplier> <suppliername>europcar</suppliername> <supplierlogo>https://cdncarsirent.com/themes/front/images/forms/9.png</supplierlogo> <terms>terms</terms> <supplier> <pricing> <totaldays>4</totaldays> <ispartial>1</ispartial> <totalamount>193.550</totalamount> <currency>USD</currency> <duenow>20.290</duenow> <dueatdesk>148.760</dueatdesk> <onewayfee>0</onewayfee> <youngdriversurchage>0</youngdriversurchage> <pricing> <vehicleset> .................................. .................................. <vehicleset> <rateid>2398108</rateid> <vehicle> <doors>5</doors> <passengers>5</passengers> <vehimage>https://static.carhire-solutions.com/images/car/europcar/small/ECMR_FR.jpg</vehimage> <transmission>true</transmission> <ac>true</ac> <largebaggage>3</largebaggage> <smallbaggage>3</smallbaggage> <vehgroup>Economy</vehgroup> <vehname>Citroen C3</vehname> <vehclass>3</vehclass> <vehcategory>1</vehcategory> <vehicle> <supplier> <suppliername>keddy by europcar</suppliername> <supplierlogo>https://static.carhire-solutions.com/images/supplier/logo/logo290.png</supplierlogo> <terms>terms</terms> <supplier> <pricing> <totaldays>4</totaldays> <ispartial>0</ispartial> <totalamount>216.220</totalamount> <currency>USD</currency> <duenow>216.220</duenow> <dueatdesk>0</dueatdesk> <onewayfee>0</onewayfee> <youngdriversurchage>182.00</youngdriversurchage> <pricing> <vehicleset> </vehicles> </service> </response>