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.

Happy Hours Diagram

Metadata allows you to add custom attributes to Voucherify objects. You can use them for customer segment filters, validation rules, and reporting purposes.

Add metadata 

In order to start, go to the Project Settings and Metadata Schema and edit Redemption Metadata.

redemtpion 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. 

booking time

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.

metadata definition

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.

Bulk codes campaign

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.  

coupon timeframe

Add validation rules

Validation rules are an essential element of every Voucherify campaign. They help you limit redemption conditions to specific segments, orders, products, or custom attributes.

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. 

redemption metadata

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.