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
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.