Overview
The booking process through the RCM Web API will by default send out a confirmation email to the customer. Some Rental Car Companies may want to send out their own customised version of a confirmation email rather than the standard one provided by RCM.
This is something that can be achieved and we offer the following suggestion for how you are able to do this. It is important to note that this will only work if you are using V3.2 of the API.
Process
The process to send your own customised confirmation email is quite simple. It are as follows:
- When you call the booking method, pass in a value of 0 for the emailoption parameter.
- When you call either the confirmpayment or vaultentry method, pass in a value of 0 for the emailoption parameter. If you are creating quotes rather than bookings, then you do not need to call either of these two methods.
- Call the bookinginfo method to get the full booking details.
- Construct and send out the confirmation email.
API Methods
Each of the API methods that you will call and how to call them to send your own customised email are listed below. More detailed information about any of these API methods can be found in the Developer's Sandbox.
booking Method
When you call the booking method you will need to pass in a value of 0 as the emailoption parameter, see below for a description of this parameter.
If you do not pass a value in as the emailoption, then the default behaviour for sending emails through the API will occur. This means a confirmation email will be sent after a credit card or payment has been recorded for the booking. If you are creating a quote, the default behaviour is to automatically send the confirmation email out once the quote has been created in RCM.
confirmpayment/vaultentry methods
When you call either the confirmpayment or vaultentry method you will need to pass in a value of 0 as the emailoption parameter, see below for a description of this parameter.
If you do not pass a value in as the emailoption, then the default behaviour for sending emails through the API will occur. This means a confirmation email will be sent after this method has successfully saved either a credit card or a apyment against the booking.
bookinginfo method
Calling the bookinginfo method will return all of the information about the booking which you can then use to build the customised confirmation email you are sending out.
A full listing of the information returned by this method can be found in the Developer's Sandbox.