Use this method to send a confirmation e-mail for a successful booking.
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.
/reservation/confirmation_email
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.
NAME | TYPE | RANGE / SET | REQUIRED | DEFAULT | EXAMPLE | NOTES |
---|---|---|---|---|---|---|
res_id | integer | 10000000+ | YES | – | &res_id=10000000 | see ownership note |
string | email, varchar(128) | YES | – | &email=jsmith%40aol.com |
In order to send a confirmation e-mail for a booking you must be the owner. Ownership is defined as follows:
{ "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. } }