Use this method to send a confirmation e-mail for a successful booking.

Table of Contents
  1. URL Endpoint
  2. Method Parameters
  3. JSON Response Schema
  4. JSON Response Example

After a successful booking our system has the ability to send a confirmation e-mail to the customer as well to the hotelier. This is the same e-mail message received after a successful booking on the booking engine. Use this method to send these e-mail messages in cases you don't provide such a mechanism.

If you never do any post-processing and never plan to use /purge, then you can safely pass the &confirmation_email parameter during /book instead of using this method.

URL Endpoint

/reservation/confirmation_email

Note

This method is only accessible using a POST request.

To get a response in JSON make sure you are also sending the Accept: application/json header.

Method Parameters

NAME TYPE RANGE / SET REQUIRED DEFAULT EXAMPLE NOTES
res_id integer 10000000+ YES &res_id=10000000 see ownership note
email string email, varchar(128) YES &email=jsmith%40aol.com

Ownership

In order to send a confirmation e-mail for a booking you must be the owner. Ownership is defined as follows:

  • For Hotelier API accounts all property bookings.
  • For Source API accounts only bookings made by that source.
  • For Agent API accounts only bookings made by that agent.

JSON Response Schema

{
	"method": "https://rest.reserve-online.net/reservation/confirmation_email",
	"http_method": "POST",
	"http_code": 200,
	"error_code": "OK",
	"error_msg": "",
	"params": [],
	"data": {
		"result":STRING, // Confirmation email result. Enumerated value: OK in case of success. 
	}
}
	

JSON Response Example