Skip to Content
AutomationsActions

Booking

Create a discount code for online booking from a flow

Last updated on

The Booking group has one action. It works with the promo codes of Online booking.

Create a discount code

Creates a discount code that guests can use in the booking widget and that a staff member can apply in the Price card of a reservation. The code then simply sits with your other promo codes. This way you send a guest a code for a next stay after check-out: after this step, add a Message a guest with {createdPromoCode.code} in the text.

FieldWhat you fill in
CodeThe code the guest types, from 2 to 40 characters. Leave empty and Tillor creates a unique code of 8 letters and digits. You can also use a variable
DescriptionA note of your own for the code
DiscountPercentage (default) or Amount
PercentageOnly with Percentage: more than 0 and at most 100. Taken off the stay price. Required
AmountOnly with Amount: more than 0, tax included. Taken off the stay. Required
Valid from and Valid untilThe period in which guests can book with the code
Stay from and Stay untilThe period the stay must fall in
Minimum nights1 by default. From 1 to 365
Maximum nightsFrom 1 to 365, not less than the minimum. Empty means no limit
Arrival daysThe weekdays on which the stay may start. Empty means every day
Accommodation typesThe accommodations the code applies to. Empty means all
Maximum usesHow often the code may be used in total. Empty means no limit
Per guestHow often one guest may use the code. Empty means no limit
First booking onlyThe code only applies to a guest who has not booked before, recognised by email address. Off by default
Also discount extrasOff by default
Also discount the tourist taxOff by default
Code can be usedOn by default. Turn it off to create the code without it working yet

You enter a date as dd-MM-yyyy, such as 01-06-2027, or with a date variable such as {today + 12 months}. An empty date field means no limit.

Later steps can use these variables:

VariableContent
{createdPromoCode.code}The code, as the guest types it
{createdPromoCode.id}The id of the discount code
{createdPromoCode.percentage}The discount percentage. Empty for an amount
{createdPromoCode.amount}The discount amount. Empty for a percentage

The step fails if:

  • the code you entered already exists. Every run with the same fixed code therefore creates a code only once. Leave Code empty if every guest should get a code of their own
  • the percentage or amount is missing or outside the limits
  • a number of nights or uses is not a whole number within the limits above
Was this page helpful?

On this page