Skip to main content

Tokens reference for the new Guest app

What tokens are, which ones your PMS and integrations offer, and where tokens and functions work in the new Guest App.

Tokens let a page show each guest their own details, such as their booking reference or your property's name, without you typing them in. This article covers the new Guest app, built in the Guest App Builder. It explains what tokens are, which ones you can use with your PMS and integrations, and where they work.

What tokens are

A token is a placeholder in your text. When a guest opens the page, Bookboost swaps it for real information. For example, {{ reservation.booking_reference }} shows the guest's booking reference, and {{ property.name }} shows the property's name.

A token is written as a group, a dot, and a name, inside double curly brackets: {{ group.name }}.

How to add a token to a text element

  1. Select the text element in the page.

  2. In the Quick actions bar at the top of the right panel, click Insert token (the (+) icon). Typing { does not open the list.

  3. Find the token with Search, or browse the lists under Popular and Other categories.

  4. Click Add to insert it where your cursor is. Copy copies it instead.

Which tokens you have depends on your PMS and integrations

Tokens get their values from your reservation system and the integrations you use. A token that needs your PMS or an integration only shows a value when that PMS or integration is connected to your organisation.

The token list in the builder shows every token, whatever PMS you use. It does not hide the ones that are not available to you, and it does not mark them. That is why the tables below say which PMS or integration each token is for.

What happens when you use a token that is not available for your setup depends on the kind of token:

  • Tokens your PMS or an integration fills in show nothing when your PMS or integration is not listed in "Offered for". These are the tokens whose names start with a PMS or integration (such as apaleo., mews., or opera_cloud.), the four attributes groups (User, Booker, Primary guest, and Secondary guest), and the Property Info, Online CheckIn, Folios, Notes, Orders, Operator, and Legal groups. The page still loads, with that spot empty.

  • All other tokens, such as the reservation, guest name, app, and property tokens, show a value whatever PMS you use, as long as the booking has that detail. For these, "Offered for" is a guide, not a limit. Check the result in Preview as Guest before you rely on it.

  • Meta tokens (see below) are always available. Which ones exist depends on the data in your organisation.

To check what a token shows for a real guest, use Preview as Guest in the app editor and pick a reservation (see Apps, pages, screens and elements in the new Guest App).

Every token, by group

The tables follow the groups in the builder's token list. The list also has a Guest group and a few shortcuts for common tokens, such as Guest first name and Booking reference. Meta tokens and loops are explained after the tables.

How to read the "Offered for" column:

  • Every PMS: offered for all the PMS systems listed in this article (Mews, Apaleo, Clock PMS, Opera Cloud, Shiji, and Smoobu).

  • A list of PMS names: offered for those systems only.

  • No PMS only: offered when no PMS is connected. Most of these still show a value when a PMS is connected. The exceptions are the tokens in the attributes groups (address, car registration number, and gender) and legal.unsubscribe_link: with a PMS connected, they show nothing.

  • Needs Code2order, Oaky or Goki: shows a value only when you use that integration.

  • Every setup: always available. It does not depend on your PMS.

Invoices

Token

What it shows

Offered for

apaleo.debtor_invoice_pdf

Link to the debtor invoice as a PDF. Only relevant for the "invoice was created" and "invoice was cancelled" triggers.

Apaleo

apaleo.debtor_invoices

Link to the debtor invoices. Can be empty if the debtor has none.

Apaleo

shiji.debtor_invoice_pdf

Link to the debtor invoice as a PDF. Only relevant for the "invoice was created" and "invoice was cancelled" triggers.

Shiji

shiji.debtor_invoices

Link to the debtor invoices. Can be empty if the debtor has none.

Shiji

City Tax

Token

What it shows

Offered for

apaleo.city_tax_value_gross_amount

City tax, gross amount.

Apaleo

apaleo.city_tax_value_net_amount

City tax, net amount.

Apaleo

apaleo.city_tax_value_tax_amount

City tax, tax amount.

Apaleo

city_tax.name

Name of the city tax.

Apaleo

city_tax.type

Type of the city tax.

Apaleo

city_tax.value

City tax as a percentage.

Apaleo

city_tax.description

Description of the city tax.

Apaleo

Reservation

Token

What it shows

Offered for

reservation.guest_comment

Guest comment on the reservation.

Apaleo

reservation.booker_comment

Comment from the person who made the booking.

Apaleo

reservation.hotel_comment

Internal hotel comment on the booking.

Apaleo

reservation.info.self_service_key

Self-service key in Clock PMS.

Clock PMS

reservation.info.self_service_pin

Self-service PIN in Clock PMS.

Clock PMS

reservation.id

Id of the reservation.

No PMS only

reservation.booking_reference

Booking reference.

Every PMS

reservation.channel_category

Channel category.

Mews, Clock PMS, Opera Cloud, Shiji, Smoobu

reservation.channel_segment

Channel segment.

Every PMS

reservation.market_category

Market category.

Mews, Shiji

reservation.market_segment

Market segment.

Mews, Opera Cloud, Shiji, Smoobu

reservation.number_of_adults

Number of adults.

Mews, Apaleo, Clock PMS, Opera Cloud, Smoobu

reservation.number_of_children

Number of children.

Mews, Clock PMS, Opera Cloud, Smoobu

reservation.nights

Number of nights.

Mews, Apaleo, Clock PMS, Opera Cloud, Smoobu

reservation.balance

Open balance.

Every PMS

reservation.currency

Currency.

Every PMS

reservation.guarantee_type

Guarantee type.

Mews, Apaleo, Opera Cloud, Smoobu

reservation.total_gross_amount

Total gross amount.

Mews, Apaleo, Clock PMS, Opera Cloud, Smoobu

reservation.total_gross_amount_per_night

Total gross amount per night.

Clock PMS, Opera Cloud, Smoobu

reservation.subtotal

Subtotal amount.

Mews, Apaleo

reservation.total_tax

Total tax.

Mews

reservation.start

Estimated start date and time.

Mews, Apaleo, Clock PMS, Opera Cloud, Smoobu

reservation.end

Estimated end date and time.

Mews, Apaleo, Clock PMS, Opera Cloud, Smoobu

reservation.arrival_date_time

Arrival date and time.

Mews, Apaleo, Opera Cloud, Smoobu

reservation.departure_date_time

Departure date and time.

Mews, Apaleo, Opera Cloud, Smoobu

reservation.status

Status of the reservation.

Mews, Apaleo, Clock PMS, Opera Cloud, Smoobu

reservation.product_list

List of the products on the reservation.

Mews, Shiji

reservation.uuid

Unique identifier of the reservation.

Every PMS

reservation.created_at_in_pms

Date and time the booking was made.

Mews

reservation.cancelled

Date the reservation was marked as cancelled.

Every PMS

reservation.booker_requests

List of notes on the reservation.

Mews, Apaleo

reservation.info.gate_access_url

Link to view gate access controls.

Needs Goki

opera_cloud.daily_pricing

Daily pricing of the reservation. This is a loop: see "Loops" below.

Opera Cloud

Notes

Token

What it shows

Offered for

clock_pms_notes.client_requests

Client request notes in Clock PMS.

Clock PMS

Online CheckIn

Token

What it shows

Offered for

online_checkin.url

Online check-in URL for Clock PMS.

Clock PMS

Folios

Token

What it shows

Offered for

folios.url

Folios URL for Clock PMS.

Clock PMS

User

Token

What it shows

Offered for

user.full_name

Full name of the user.

Every PMS

user.salutation

Salutation.

Every PMS

user.first_name

First name.

Every PMS

user.last_name

Last name.

Every PMS

user.email

Email.

Every PMS

user.phone

Phone number, formatted.

Every PMS

user.raw_phone

Phone number, unformatted.

Every PMS

user.tag_list

Tags on the user.

Apaleo, Clock PMS, Opera Cloud, Shiji, Smoobu

User Attributes

Token

What it shows

Offered for

user_attributes.address

Address of the user.

Mews

user_attributes.car_reg_number

Car registration number.

Mews

user_attributes.gender

Gender, if available.

Every PMS

Booker

Token

What it shows

Offered for

booker.full_name

Full name of the booker.

Mews, Apaleo

booker.salutation

Salutation.

Mews, Apaleo

booker.first_name

First name.

Mews, Apaleo

booker.last_name

Last name.

Mews, Apaleo

booker.email

Email.

Mews, Apaleo

booker.phone

Phone number, formatted.

Mews, Apaleo

booker.raw_phone

Phone number, unformatted.

Mews, Apaleo

Booker Attributes

Token

What it shows

Offered for

booker_attributes.address

Address of the booker.

No PMS only

booker_attributes.car_reg_number

Car registration number.

No PMS only

booker_attributes.gender

Gender, if available.

Mews, Apaleo

Primary guest

Token

What it shows

Offered for

primary_guest.full_name

Full name of the primary guest.

Mews, Apaleo, Opera Cloud, Smoobu

primary_guest.salutation

Salutation.

Mews, Apaleo, Opera Cloud, Smoobu

primary_guest.first_name

First name.

Mews, Apaleo, Opera Cloud, Smoobu

primary_guest.last_name

Last name.

Mews, Apaleo, Opera Cloud, Smoobu

primary_guest.email

Email.

Mews, Apaleo, Opera Cloud, Smoobu

primary_guest.phone

Phone number, formatted.

Mews, Apaleo, Opera Cloud, Smoobu

primary_guest.raw_phone

Phone number, unformatted.

Mews, Apaleo, Opera Cloud, Smoobu

Primary guest attributes

Token

What it shows

Offered for

primary_guest_attributes.address

Address of the primary guest.

No PMS only

primary_guest_attributes.car_reg_number

Car registration number.

No PMS only

primary_guest_attributes.gender

Gender, if available.

Mews, Apaleo, Opera Cloud, Smoobu

Secondary guest

Token

What it shows

Offered for

secondary_guest.full_name

Full name of the secondary guest.

No PMS only

secondary_guest.salutation

Salutation.

No PMS only

secondary_guest.first_name

First name.

No PMS only

secondary_guest.last_name

Last name.

No PMS only

secondary_guest.email

Email.

No PMS only

secondary_guest.phone

Phone number, formatted.

No PMS only

secondary_guest.raw_phone

Phone number, unformatted.

No PMS only

Secondary guest attributes

Token

What it shows

Offered for

secondary_guest_attributes.address

Address of the secondary guest.

No PMS only

secondary_guest_attributes.car_reg_number

Car registration number.

No PMS only

secondary_guest_attributes.gender

Gender, if available.

No PMS only

Reservation Set

Token

What it shows

Offered for

reservation_set.reference

Reference of the reservation set.

Mews, Apaleo

reservation_set.number_of_adults

Number of adults in the set.

Apaleo

reservation_set.start

Estimated start date and time of the set.

Mews

reservation_set.end

Estimated end date and time of the set.

Mews

reservation_set.number_of_rooms

Number of rooms in the set.

Mews

reservation_set.reservation_objects

Every reservation in the set, sorted by reservation id, for looping over.

Mews, Apaleo

App

Token

What it shows

Offered for

app.name

Name of the app.

No PMS only

app.display_name

Display name of the app.

No PMS only

app.legal_name

Legal name of the app.

No PMS only

app.logo_url

Logo URL of the app.

No PMS only

app.uuid

Unique identifier of the app.

No PMS only

app.meta.<key>

A custom meta value stored on the app. See "Meta tokens" below.

Every setup

Property

Token

What it shows

Offered for

property.name

Name of the property.

Every PMS

property.description

Description of the property.

Every PMS

Property Address

Token

What it shows

Offered for

property_address.address_line1

Address line 1.

Every PMS

property_address.address_line2

Address line 2.

Every PMS

property_address.city

City.

Every PMS

property_address.country

Country.

Every PMS

property_address.zip_code

Zip code.

Every PMS

Property Info

Token

What it shows

Offered for

property_info.address

Address.

Every PMS

property_info.domain

Domain.

Every PMS

property_info.email

Email.

Every PMS

property_info.favicon_url

Favicon URL.

Every PMS

property_info.logo_url

Logo URL.

Every PMS

property_info.phone

Phone.

Every PMS

property_info.sms_number

SMS number.

Every PMS

property_info.webclip_url

Webclip URL.

Every PMS

property_info.website

Website.

Every PMS

property_info.whatsapp_number

WhatsApp number.

Every PMS

Rate Plan

Token

What it shows

Offered for

rate_plan.name

Name of the rate plan.

Mews, Apaleo, Clock PMS, Opera Cloud, Shiji

rate_plan.code

Code of the rate plan.

Mews, Apaleo, Clock PMS, Opera Cloud, Shiji

rate_plan.description

Description of the rate plan.

Mews, Apaleo, Opera Cloud, Shiji

rate_plan.meta.<key>

A custom meta value stored on the rate plan. See "Meta tokens" below.

Every setup

Rate Plan Group

Token

What it shows

Offered for

rate_plan_group.name

Name of the rate plan group.

Mews

rate_plan_group.code

Code of the rate plan group.

Mews

rate_plan_group.description

Description of the rate plan group.

Mews

Channel Manager

Token

What it shows

Offered for

channel_manager.channel_manager_name

Channel manager name.

Mews, Apaleo

channel_manager.channel_manager_number

Channel manager number.

Mews, Apaleo

channel_manager.channel_manager_group_number

Channel manager group number.

Mews, Apaleo

channel_manager.channel_number

Channel number.

Mews, Apaleo

Cancellation Policy

Token

What it shows

Offered for

cancellation_policy.name

Name of the cancellation policy.

Apaleo, Opera Cloud, Shiji, Smoobu

cancellation_policy.code

Code of the cancellation policy.

Apaleo, Opera Cloud, Shiji, Smoobu

cancellation_policy.description

Description of the cancellation policy.

Apaleo, Opera Cloud, Shiji, Smoobu

No Show Policy

Token

What it shows

Offered for

no_show_policy.name

Name of the no show policy.

Apaleo, Shiji

no_show_policy.code

Code of the no show policy.

Apaleo, Shiji

no_show_policy.description

Description of the no show policy.

Apaleo, Shiji

Deposit Policy

Token

What it shows

Offered for

deposit_policy.name

Name of the deposit policy.

Shiji

deposit_policy.code

Code of the deposit policy.

Shiji

deposit_policy.description

Description of the deposit policy.

Shiji

Room

Token

What it shows

Offered for

space.name

Name of the room.

Mews, Apaleo, Opera Cloud, Shiji, Smoobu

space.number

Room number.

Every PMS

space.floor

Floor.

Mews, Shiji

space.building_number

Building number.

No PMS only

space.description

Description of the room.

Mews, Apaleo

room.access_token

The reservation room code.

Needs Goki

space.meta.<key>

A custom meta value stored on the room. See "Meta tokens" below.

Every setup

Room Type

Token

What it shows

Offered for

space_type.name

Name of the room type.

Every PMS

space_type.code

Code of the room type.

Every PMS

space_type.description

Description of the room type.

Mews, Apaleo, Shiji

space_type.meta.<key>

A custom meta value stored on the room type. See "Meta tokens" below.

Every setup

Booked Space Type

Token

What it shows

Offered for

booked_space_type.name

Name of the booked space type.

Apaleo, Opera Cloud, Smoobu

booked_space_type.code

Code of the booked space type.

Apaleo, Opera Cloud, Smoobu

booked_space_type.description

Description of the booked space type.

Apaleo

booked_space_type.meta.<key>

A custom meta value stored on the booked space type. See "Meta tokens" below.

Every setup

Space Type to charge

Token

What it shows

Offered for

charged_space_type.name

Name of the space type charged.

Opera Cloud, Smoobu

charged_space_type.code

Code of the space type charged.

Opera Cloud, Smoobu

charged_space_type.description

Description of the space type charged.

No PMS only

charged_space_type.meta.<key>

A custom meta value stored on the space type charged. See "Meta tokens" below.

Every setup

Connector

Token

What it shows

Offered for

connector.connector_name

Name of the reservation connector.

No PMS only

connector.connector_reservation_id

Reservation id in the connector.

Mews

Reservation Set Connector

Token

What it shows

Offered for

reservation_set_connector.connector_reservation_set_id

Reservation set id in the connector.

Mews

PMS

Token

What it shows

Offered for

pms.pms_name

Name of the PMS.

No PMS only

pms.pms_reservation_id

Reservation id in the PMS.

No PMS only

Consent

Token

What it shows

Offered for

consent.consent_body

Description of what the guest gave consent to.

No PMS only

consent.name

Name of the consent.

No PMS only

Double Opt-in

Token

What it shows

Offered for

user_consent.double_optin_url

Confirmation URL for double opt-in.

Every PMS

Company

Token

What it shows

Offered for

company.name

Company name.

Mews

Orders

Token

What it shows

Offered for

orders.numbers_list

List of the order numbers on the reservation.

Apaleo

orders.items

Items on the reservation, with product details. This is a loop: see "Loops" below.

Mews, Apaleo, Opera Cloud, Shiji

orders.unique_product_list

List of the unique products on the reservation.

Mews, Apaleo, Opera Cloud, Shiji

Legal

Token

What it shows

Offered for

legal.unsubscribe_link

Unsubscribe link of a campaign. Meant for messages, not pages.

No PMS only

Code2order

Token

What it shows

Offered for

code2order.guestapp_login_url

Guest App login URL for Code2order.

Needs Code2order

code2order.guestapp_door_link

Guest App door link for Code2order.

Needs Code2order

code2order.guestapp_check_in_link

Guest App check-in link for Code2order.

Needs Code2order

code2order.guestapp_check_out_link

Guest App check-out link for Code2order.

Needs Code2order

code2order.guestapp_reservation_link

Guest App reservation link for Code2order.

Needs Code2order

code2order.guestapp_vcard_link

Guest App vCard link for Code2order.

Needs Code2order

code2order.guestapp_wifi_link

Guest App Wi-Fi link for Code2order.

Needs Code2order

Operator

Token

What it shows

Offered for

operator.first_name

First name of the operator.

Every PMS

operator.last_name

Last name of the operator.

Every PMS

Gates

Token

What it shows

Offered for

reservation_gates.access_tokens

The gate codes available for the reservation.

Needs Goki

Mews

Token

What it shows

Offered for

user_integration_mews.connector_user_id

Mews integration id.

Mews

mews.checkin_link_primary_guest

Mews check-in link for the primary guest.

Mews, and the Mews guest portal links setting must be on for your organisation

mews.homepage_link_primary_guest

Mews homepage link for the primary guest.

Mews, and the Mews guest portal links setting must be on for your organisation

mews.self_checkin_qr_code

Mews kiosk check-in QR code, as an image URL. Use inside an image element.

Mews

mews.self_checkin_qr_code_data|raw

Raw data of the Mews kiosk check-in QR code.

Mews

mews.guest_resource_access_token

Access token of the guest to a reservation space.

Mews

mews.valid_guest_resource_access_token

Access token of the guest to a reservation space, within its validity period.

Mews

Oaky

Token

What it shows

Offered for

oaky.guest_login_url

Login URL to the Oaky portal.

Needs Oaky

Brand Colours

These tokens give you the colours from your brand library, so a page can follow your brand. Write them as brand_color.<name>.

Token

What it shows

Offered for

brand_color.brand

The brand colour.

Every setup

brand_color.accent

The accent colour.

Every setup

brand_color.button_text

The button text colour.

Every setup

brand_color.header_text

The header text colour.

Every setup

brand_color.paragraph

The paragraph colour.

Every setup

brand_color.success

The success colour.

Every setup

brand_color.error

The error colour.

Every setup

These seven always have a value: if your brand has not set one, a default colour is used. If your organisation adds its own named colours, each one gets a token too, written as brand_color.<name>.

Brand Custom Assets

Each custom image in your brand library has its own token, written as brand_custom_asset.<name>. The token shows that image.

Token

What it shows

Offered for

brand_custom_asset.<name>

The custom image with that name.

Every setup

Meta tokens

Some groups let you store your own values, called meta values. Each one gets a token that you write with the name of the value:

Token

What it shows

Offered for

app.meta.<key>

A meta value on the app.

Every setup

rate_plan.meta.<key>

A meta value on the rate plan.

Every setup

space.meta.<key>

A meta value on the room.

Every setup

space_type.meta.<key>

A meta value on the room type.

Every setup

booked_space_type.meta.<key>

A meta value on the booked space type.

Every setup

charged_space_type.meta.<key>

A meta value on the space type charged.

Every setup

The keys you see in the token list are the ones defined in your organisation.

Loops

Two tokens give you a list, so you write them as a loop. A loop repeats the lines between for and endfor once for every item.

Orders and their items (offered for Mews, Apaleo, Opera Cloud, and Shiji):

{% for item in orders.items %}{{ item.name }}, {{ item.quantity }}, {{ item.price }}, {{ item.from }}, {{ item.to }}, {{ item.product_name }}, {{ item.product_description }}, {{ item.product_sku }}, {{ item.product_price }}, {{ item.product_currency }}{% endfor %}

Daily pricing (Opera Cloud only):

{% for item in opera_cloud.daily_pricing %}{{ item.date }}, {{ item.gross }}, {{ item.tax }}, {{ item.converted_gross }}, {{ item.converted_tax }}, {{ item.currency }}{% endfor %}

reservation_set.reservation_objects is a list as well, to loop over in the same way.

Links to your old Guest app pages and forms

When a button's Link to is set to External URL, the URL list suggests entries such as {{dr_page('/page/home-page')}} or {{dr_page('/form/online-check-in')}}. Point at one to see its name, for example Page: Home page.

These are not tokens. They are links to the pages and forms in your organisation's old Guest app. Use them to point a link at one of those old pages or forms. To link to a page or form in the new Guest app, set Link to to Page or Form instead. These entries do not show up in the token list.

Where tokens work

Pages, forms, and campaign messages fill in tokens the same way. A token that works in a campaign works in a page, with two conditions:

  • The guest needs a reservation behind the page. The page has to be opened through a personalised link that carries the guest's reservation. If someone opens it without that link, reservation tokens are empty.

  • The token has to be available for your setup. See "Which tokens you have depends on your PMS and integrations" above.

Naming traps

Some names look right and show nothing. The most common:

If you write

You get

Write this instead

reservation.arrival

Nothing. It is not a token.

reservation.arrival_date_time, or reservation.start

reservation.departure

Nothing. It is not a token.

reservation.departure_date_time, or reservation.end

reservation.start and reservation.end are the estimated start and end of the stay. reservation.arrival_date_time and reservation.departure_date_time are the arrival and departure date and time.

If a token shows nothing, compare its name letter for letter with the tables above.

Functions

A function does something with the guest or reservation and puts the result on the page. You write it with brackets, like {{ qr_code('value') }}. Functions work the same way as in campaigns, so the ones below work in pages.

Function

What it does

reservation_ext_link('type')

Gives the external link of that type attached to the guest's reservation.

reservation_ext_reference('code')

Gives the reservation's reference in an external system, for the external system code registered on your account.

guest_app('slug')

Gives a link to one of your apps. Campaigns use it to link guests to an app.

qr_code('value')

Shows a QR code for the value.

doorcode('salt', 'room', false)

Generates a door access code from the reservation's arrival date, a salt and a room identifier. Use true as the third value for a weekly code.

review_pro('surveyId')

Gives a ReviewPro survey link, filled in with the guest and reservation.

sender()

Gives the active operator for the app, with first_name and last_name.

content_block('name')

Shows a reusable content block by name.

signed_url('url')

Adds a signature to a link.

encrypt, decrypt, encode, and decode are also available, as helpers for encoding data. Two further functions, unsubscribe_link() and view_in_browser(), are for email messages and do nothing useful on a page.

Does reservation_ext_link work in a page?

Yes. A page is filled in the same way as a campaign, so {{ reservation_ext_link('type') }} works in a Guest app page. The guest has to open the page through a personalised link that carries their reservation, and the reservation needs an external link of that type.

Need Help?

Click your organisation name at the top left of the platform and choose Talk to us, or email [email protected]. We are happy to help.

Include the token or function exactly as you wrote it, the PMS your property uses, and whether it was in a page or a campaign message.

Did this answer your question?