Send door codes to myfrontdesk
Use /postCustomField (with parameter applyTo=reservation) to create a custom field in a property. Then you can post door codes into a reservation or update them in case of any changes with /putReservation.
Note that custom fields are editable by the myfrontdesk users.
Alternative method of providing reception with the door code is by using /postReservationNote method. At the moment notes can't be fetched, updated or deleted via API.
Create an email template with the door code
You can use /postEmailTemplate to create an email template with the same custom field. Myfrondesk will send out the email to the guest. You can use the /postEmailShedule to schedule the template either based on the reservation status change or a date.
Example: To schedule an email for the date of arrival set the parameter
0 and the parameter
Note: Use getEmailShedule and getEmailTemplate to create the validation that prevents your app from creating multiple templates/schedules for the same properties.
It's recommended that you create a nice HTML template and make it look appealing to the guest with the headers and formatting. Plain text email templates will look strange and unsecured to guests that in fact need to check-in.
Check-in or check-out a guest
Use putReservation with status:
checked_in to check in a guest or
checked_out to check out a guest.