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.
| Field | What you fill in |
|---|---|
| Code | The 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 |
| Description | A note of your own for the code |
| Discount | Percentage (default) or Amount |
| Percentage | Only with Percentage: more than 0 and at most 100. Taken off the stay price. Required |
| Amount | Only with Amount: more than 0, tax included. Taken off the stay. Required |
| Valid from and Valid until | The period in which guests can book with the code |
| Stay from and Stay until | The period the stay must fall in |
| Minimum nights | 1 by default. From 1 to 365 |
| Maximum nights | From 1 to 365, not less than the minimum. Empty means no limit |
| Arrival days | The weekdays on which the stay may start. Empty means every day |
| Accommodation types | The accommodations the code applies to. Empty means all |
| Maximum uses | How often the code may be used in total. Empty means no limit |
| Per guest | How often one guest may use the code. Empty means no limit |
| First booking only | The code only applies to a guest who has not booked before, recognised by email address. Off by default |
| Also discount extras | Off by default |
| Also discount the tourist tax | Off by default |
| Code can be used | On 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:
| Variable | Content |
|---|---|
{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?