Facebook Tracking Pixel
Guestbook

Smart Lock PINs Based on Guest Phone Numbers Shortcodes

Automatically include smart lock PINs in your guidebook using guest phone numbers. Use {{guest_phone_last_4}} or {{guest_phone_last_5}} to personalize and automate door entry codes for each reservation.

Updated 3 min read

Some smart locks give each guest a PIN made from the last few digits of their phone number. If yours works this way, your guidebook can show every guest their own PIN automatically with two shortcodes: {{guest_phone_last_4}} and {{guest_phone_last_5}}.

What the shortcodes show

Both shortcodes read the guest’s phone number from the booking your PMS sends us. We strip out spaces, dashes, brackets and the +, then take the last digits:

  • {{guest_phone_last_4}} shows the last 4 digits.
  • {{guest_phone_last_5}} shows the last 5 digits.

For example, if the guest’s phone number is +61 412 34 567, {{guest_phone_last_4}} shows 4567 and {{guest_phone_last_5}} shows 34567. If the booking has more than one phone number, we use the first one.

Add the PIN to your guide

  1. Open your guide while logged in and click Edit Content on the item where you want the PIN to appear (or use the + button to add a new item, such as “Front Door Code”). The classic Guide Builder has the same editor.
  2. Click where the PIN should go, open the {{shortcode}} menu in the editor toolbar and choose Guest Phone (Last 4 digits) or Guest Phone (Last 5 digits) (1). You can also type the shortcode yourself.
  3. Set Visible to Reservation Link Only (see below), then click Save Changes.

The {{shortcode}} menu in the content editor: (1) Guest Phone (Last 4 digits) and Guest Phone (Last 5 digits), (2) Door Code

The same menu also has Door Code (2), which inserts {{door_code}}. Use that one instead when your PMS or lock integration stores a separate door code on each booking rather than using the phone number. Not every PMS sends one; see Show each guest their door code with the {{door_code}} shortcode for which PMSs are supported.

Edit Content window for a Front Door Code item: (1) Door PIN: {{guest_phone_last_4}} in the content, (2) Visible set to Reservation Link Only

Set door codes to Reservation Link Only

Put the PIN in its own item and set Visible to Reservation Link Only (2). It then only shows on the guest’s own reservation link (including the link sent by Mobile TXT Guidebook), never on your public property link, and the Ask AI chat can’t read it out.

Use Reservation Link Only for codes, so they’re tied to the guest’s booking. More detail in Restrict Sensitive Content Like PIN Codes or Lockbox Info.

Check the values for a property

To see what the shortcodes will show, open the property and click Property Shortcodes. The list fills {{guest_phone_last_4}} and {{guest_phone_last_5}} from your latest reservation for that property, so you can check the digits match what your lock expects. Each guest sees the digits from their own booking.

Property Shortcodes page showing {{guest_phone_last_4}} as 4567 and {{guest_phone_last_5}} as 34567, taken from the latest reservation

Good to know

  • The PIN only fills in on a reservation link. On your public property link there is no booking, so the shortcode shows nothing.
  • No phone number, no PIN. If your PMS or booking channel doesn’t pass a phone number for the booking, the shortcode is blank. Check a few bookings on the Property Shortcodes page before relying on it.
  • Codes stop showing after the stay. 24 hours after check-out, the reservation link goes back to showing only Visible Everywhere content, so a Reservation Link Only PIN disappears for past guests.
  • Make sure your lock uses the same phone number and the same number of digits. If the guest changes their number in the PMS after the lock code was set, the two can drift apart.

Images

Add Smartlock PIN from Mobile Phone Num
Add Smartlock PIN from Mobile Phone Num

Related articles

More in Guestbook

All Guestbook articles →

Still need a hand?

Book a free 1-on-1 video call and we will go through it with you on screen, or send us a message.

Contact support