How to use the PDF tokens

Blanca Castillo
Blanca Castillo
  • Updated

Where can I find it?

Account > Templates > PDF Templates:

Where to find PDF templates

 

What does it mean?

Tokens are placeholders for dynamic content. Below is the list of tokens you can use to personalise your PDF tickets and invoices (receipts):

PDF Ticket

Description PDF token Example
Owner logo ${ownerLogo} Owner logo example
Cancelled status $isCancelled
Reservation status ${isReservation}
Context Url ${contextUrl}
Owner name ${ownerName} Palisis Sightseeing
Owner Country ${ownerCountry} Switzerland
Owner email ${ownerEmail} info@palisis.com
Owner phone ${ownerPhone} +41 44 533 40 40
Booking UID ${bookingUid} J1CI08QT1500082NPKR8
List of entries $entries
Owner logo name of each entry $entry.owner.logoName
Customer name of each entry $entry.customerName John Smith
Customer email of each entry $entry.customerEmail john@gmail.com
Owner first address of each entry $entry.owner.address1 Florastrasse 18a
Owner second address of each entry $entry.owner.address2 8610 Uster
UID of each entry $entry.uid
Voucher for each entry $entry.isVoucher
QR UID of each entry $entry.qrUid
Example: <img src="${contextUrl}/bo/public/barcode.png?size=100&qrcontent=$entry.qrUid">
Barcode dynamic element
Item name of each entry $entry.itemName Hop on hop off
Image URL of each entry $entry.imageUrl
Example: <img src="${entry.imageUrl}"/>
Image URL example
Selected event of each entry $entry.selectedEvent 2/17/23 09:00
Pick up information of each entry $entry.pickupInfo Hotel Marriot
Price plan name of each entry $entry.priceplanName 24 hours ticket
Fully paid status of each entry $entry.isFullyPaid
Seats and passenger category information of each entry $entry.seatsAndPassengerCategoryInfo 1 x Adult (Standard)
Message of booking creation ${ticketBookedAndCreatedMessage} Ticket booked on 2/13/23 16:25 and issued on 2/15/23 14:55
Subtotal ${subTotal} EUR 40.00
Discount amount ${subDiscount} EUR 1.00
Total ${total} EUR 39.00
VAT list $vats
Description of each VAT $vat.vatDescription Including 10% VAT 123456 based on Transport EUR 3.64
Passenger comments ${passengerComments} Passenger with wheelchair
Message of issued invoice ${invoiceIssuedToAtNowMessage} Invoice issued electronically to support@palisis.com on 2/15/23 14:55
Refunds information $refunds EUR 20
Refund UID of each refund $refund.refundUIDs
Refund Total amount $refund.totalText EUR 40
Seat Section {{ENTRY}}.seatSection Central
Seat Row {{ENTRY}}.seatRow 1
Seat Number {{ENTRY}}.seatNumber 1
Venue address (Chart Management) {{ENTRY}}.chartAddress Melquíades Avenue 42, 28009 Madrid
Cancellation policy information for the product {{ENTRY}}.cancellationPolicy 100% refund available up till 2 days before travel

 

PDF Receipt and Reservations

Description PDF token Example
Owner logo ${ownerLogo} Owner logo example
Cancelled status $isCancelled
Reservation status ${isReservation}
Context Url ${contextUrl}
QR code UID ${qrBookingUID}
Example: <img src="${contextUrl}/bo/public/barcode.png?size=100&qrcontent=${qrBookingUID}">
QR Code example
Owner name ${ownerName} Palisis Sightseeing
Owner first address ${ownerAddress1} Florastrasse 18a
Owner Country ${ownerCountry} Switzerland
Owner email ${ownerEmail} info@palisis.com
Owner phone ${ownerPhone} +41 44 533 40 40
Customer name ${customerName} John Smith
Customer email ${customerEmail} john@gmail.com
Booking UID ${bookingUid} J1CI08QT1500082NPKR8
Creation time of the booking ${bookingCreated} 03/06/2025
List of entries $entries
Single seat selection info {{SEAT_ENTRY}}
Seat Section $entry.seatSection Central
Seat Row $entry.seatRow 1
Seat Number $entry.seatNumber 1
Customer name of each entry $entry.customerName John Smith
Customer email of each entry $entry.customerEmail john@gmail.com
Message of booking creation ${ticketBookedAndCreatedMessage} Ticket booked on 2/13/23 16:25 and issued on 2/15/23 14:55
Subtotal ${subTotal} EUR 40.00
Discount amount ${subDiscount} EUR 1.00
Total ${total} EUR 39.00
VATs list $vats
Description of each VAT $vat.vatDescription Including 10% VAT 123456 based on Transport EUR 3.64
Passenger comments ${passengerComments} Passenger with wheelchair
Message of issued invoice ${invoiceIssuedToAtNowMessage} Invoice issued electronically to support@palisis.com on 2/15/23 14:55
Refunds information $refunds EUR 20
Refund UID of each refund $refund.refundUIDs
Refund Total amount $refund.totalText EUR 40
Verifactu or TicketBAI information {{FISKALY_ES_COMPLIANCE}} Verifactu logo compliance
Booking total without tax (Sales Price / Net Amount), with currency. Empty when the booking has no tax rate. {{NET_TOTAL}} USD 92.81
Tax rate percentage {{VAT}}.percent 7.75
Name of the tax rate as configured in the account {{VAT}}.name Sales Tax
Tax amount for that rate, with currency {{VAT}}.vatAmountWithCurrency USD 7.19
Net amount of the entries taxed at that rate, with currency. Useful when a booking mixes several rates. {{VAT_NET_AMOUNT}} USD 92.81

 

{{VAT}} and {{VATS}} are the loop variables already used by the default template. {{TOTAL}} keeps printing the gross total.

 

PDF Booking Invoice and Invoice Partner

Description PDF Token Example
Commission of the tickets of the row {{ENTRY}}.commissionWithCurrency 2.00 EUR
Row amount minus that commission {{ENTRY}}.amountAfterCommissionWithCurrency 4.00 EUR
The same for one ticket {{ITEM_ENTRY}}.commissionWithCurrency, {{ITEM_ENTRY}}.amountAfterCommissionWithCurrency 2.00 EUR
The refund minus the commission it gives back {{REFUND}}.totalAfterCommissionText 2.00 EUR
Invoice amount once the commission is taken off {{PARTNER_TOTAL}} 4.00 EUR
VAT per rate on that amount {{PARTNER_VATS}} 1.00 EUR
{{PARTNER_TOTAL}} without VAT, empty when there is no VAT {{PARTNER_NET_TOTAL}} 4.00 EUR
{{PARTNER_COMPANY}} Partner company name Alpine Excursions AG
{{PARTNER_NAME}} Partner contact name (owner name) Jane Doe
{{PARTNER_EMAIL}} Partner email address partner@alpine.ch
{{PARTNER_ADDRESS1}} Partner street address & house number Bahnhofstrasse 10
{{PARTNER_ADDRESS2}} Partner address line 2 (additional details) Suite 4B
{{PARTNER_CITY}} Partner city Zurich
{{PARTNER_COUNTRY}} Partner country Switzerland

{{TOTAL}}, {{VATS}} and {{ENTRY}}.amountWithCurrency keep printing the amounts before commission.

 

What should I do?

You can use these tokens on the email templates created in Account > Templates > PDF Templates

PDF Templates configuration page

For more information about this topic, please visit our support article about "How to configure your PDF Templates".