If your PMS sends a smart lock or lockbox code with each booking, you can have it appear automatically in your Guidebook with the {{door_code}} shortcode. There is no need to type the code in by hand or update the guide for every guest.
How it works
Type {{door_code}} anywhere in your Guidebook content, or pick Door Code from the shortcode menu in the editor. When a guest opens the guide through their reservation link, the shortcode is replaced with the lock code your PMS supplied for that specific reservation.
- The code is taken from the reservation, not the property, so each guest sees only their own code.
- When your PMS updates the code (for example a new PIN is generated closer to check-in), the guide picks up the new value on the next sync.
- If your PMS does not send a door code for a booking, or the code has not been set yet on the PMS side, there is nothing for us to show. Check the reservation in your PMS first if a guest reports a missing code.
Example
A paragraph in your check-in section might read:
Your front door code for this stay is {{door_code}}. Press the # key after entering it.
Each guest will see their own code in place of the shortcode.
Keep the code out of your public guide
Any content that contains {{door_code}} should be restricted so it only appears in private, guest-specific views. On the content block, set Visibility to Reservation Link Only or Mobile TXT Only (or both) rather than the default Everywhere.
Public and shared links do not have a reservation attached, so the shortcode cannot resolve there anyway. Restricting visibility keeps the surrounding check-in instructions private too. See Restrict Sensitive Content Like PIN Codes or Lockbox Info for the full guide to visibility settings.
Which PMS integrations send a door code?
Support depends on whether your PMS exposes a per-booking lock code through its API. Hostex, Uplisting and Streamline are examples that do. If you are unsure, add the shortcode to a test block set to Reservation Link Only and open an upcoming reservation link to check.
Hospitable does not currently include a door code in its reservation data, so {{door_code}} will not resolve for Hospitable connections. Hospitable has advised us that this is on their roadmap.
In the meantime, if your smart lock uses the last 4 or 5 digits of the guest’s phone number as the entry code, use the {{guest_phone_last_4}} or {{guest_phone_last_5}} shortcodes instead. These work with every PMS that sends the guest’s phone number. See Smart Lock PINs Based on Guest Phone Numbers Shortcodes for setup details.