Happy Hour campaign with metadata
- Add metadata to Redemptions.
- Create a bulk codes campaign.
- Add validation rules based on metadata (custom field).
- Send unique codes to all new customers via email.
Metadata allows you to add custom attributes to Voucherify objects. You can use them for customer segment filters, validation rules, and reporting purposes.
In order to start, go to the Project Settings and Metadata Schema and edit Redemption Metadata.
Let's create a new property. Let's call it booking_time and set date time as its type. Also, mark the field as optional, otherwise, the system will treat it as required in all campaigns within one project. Now, you will be able to build redemption rules based on custom booking time, e.g., allow redemptions only for orders booked in a specific timeframe.
After adding property definition and saving, you should now see booking_type as an optional property that you can use to build custom validation rules to fit your unique campaigns.
Create a coupon campaign
To begin, go to the Campaigns tab, hit plus, and create a new bulk bodes campaign for discount vouchers for 10% off.
This is a tutorial for advanced Voucherify users, we assume that you are familiar with the basics of launching a campaign. If not, follow this tutorial for more details.
After filling out the details of your campaign (name, code pattern, number of codes, auto-update mode), go to the 2nd step where you should establish certain time limits on our campaign:
- Define the start and end date of your campaign.
- Decide that the vouchers will be active every day for 3 hours between 9 pm and 12 am at night.
Add validation rules
Next, let's establish validation rules using the custom booking_time metadata that we've created in the first step. Go to the Advanced section and check Redemption metadata satisfy to add your metadata – booking_time is 11 am and 2 pm.
We want our customers to book a night ride between 11 am and 2 pm during the day. Add the condition and save your rule.
Send codes to customers
Good job! The campaign is ready – now it's time to deliver the codes to customers.
See how to deliver codes to customers with Voucherify.