Difference between revisions of "Template Variables"

From Beds24 Wiki
Jump to navigation Jump to search
Line 26: Line 26:
 
'''[FIRSTNIGHT]''' - first night booked  
 
'''[FIRSTNIGHT]''' - first night booked  
  
'''[FIRSTNIGHT:+1day]''' - offset from first night
+
'''[FIRSTNIGHT:+1day]''' - offset from first night, can be any number of days positive or negative
  
 
'''[LASTNIGHT]''' - last night booked  
 
'''[LASTNIGHT]''' - last night booked  
  
'''[LASTNIGHT:+1day]''' - offset from last night
+
'''[LASTNIGHT:+1day]''' - offset from last night, can be any number of days positive or negative
  
 
'''[LEAVINGDAY]''' - check-out day
 
'''[LEAVINGDAY]''' - check-out day
  
'''[LEAVINGDAY:+1day]''' - offset from check-out
+
'''[LEAVINGDAY:+1day]''' - offset from check-out, can be any number of days positive or negative
  
 
'''[NUMROOM]''' - the quantity of rooms booked (first room type only)  
 
'''[NUMROOM]''' - the quantity of rooms booked (first room type only)  

Revision as of 22:18, 6 February 2014

Below is a List of Template Variables.

These variables (short codes) will be replaced by the relevant information from each booking. They can be used in every text settings that allows their use . Copy them exactly as shown, including the square brackets and upper case.

The date variables can have an optional offset value of a number of days added after a colon, for example [FIRSTNIGHT:-3 days]

Template Variables

[PROPERTYNAME] - property name

[PROPERTYADDRESS] - property address

[PROPERTYCITY] - property city

[PROPERTYEMAIL] - property email

[PROPERTYPHONE] - property phone

[ROOMNAME] - room name

[ROOMNAMES] - a comma separated list of all room types booked

[REFERENCENUMBER] - booking reference

[FIRSTNIGHT] - first night booked

[FIRSTNIGHT:+1day] - offset from first night, can be any number of days positive or negative

[LASTNIGHT] - last night booked

[LASTNIGHT:+1day] - offset from last night, can be any number of days positive or negative

[LEAVINGDAY] - check-out day

[LEAVINGDAY:+1day] - offset from check-out, can be any number of days positive or negative

[NUMROOM] - the quantity of rooms booked (first room type only)

[NUMROOMS] - the quantity of rooms booked (sum of all rooms and room types)

[NUMNIGHT] - number of nights

[NUMADULT] - number of adults

[NUMCHILD] - number of children

[NUMPEOPLE] - number of guests

[RATEDESC] - name of the rate

[PRICE] - Price

[AVPRICE] - Average Nightly Price

[GUESTNAME] - name of the guest

[GUESTFIRSTNAME] - firstname of the guest

[GUESTFULLNAME] - lastname of the guest

[GUESTEMAIL] - guest's Email address

[GUESTPHONE] - guests phone number

[GUESTADDRESS] - guests address

[GUESTPOSTCODE] - guests postcode

[GUESTCOUNTRY] - guests country

[GUESTMOBILE] - guests mobilenumber

[GUESTFAX] - guests faxnumber

[GUESTARRIVALTIME] - arrivaltime

[GUESTCOMMENTS] - comments in the booking

[GUESTCUSTOMQ1] - answer to custom question 1

[GUESTCUSTOMQ2] - answer to custom question 2

[GUESTCUSTOMQ3] - answer to custom question 3

[GUESTCUSTOMQ4] - answer to custom question 4

[REFERRER] - Referrer

[ORIGINALREFERRER] - Original referrer

[APIREF] - the booking number at the originating channel

[NOTES] - notes

[MESSAGE] - the content of the booking message field

[REFERENCE] - content of the booking reference field

[INVOICEBALANCE] - invoice balance

[INVOICETABLE] - invoice table

[INVOICETABLE2] - invoice table with status field

[STATUS] - status of booking

[FLAG] - Flag / Buchungshighlight

[CANCELURL] - URL to view and cancel bookings

[CURRENTDATE] - current date

[CURRENTDATE:+1day] - offset from current date, can be any number of days positive or negative

[CURRENTTIME] - current time

[BOOKINGDATE] - booking date

[BOOKINGDATE:+1day] - offset from booking date, can be any number of days positive or negative

[PROPERTYID] - beds24 property id number

[ROOMID] - beds24 room id number