- Audience
- Products
- Prices and quantities
- Budget constraints
- Redemptions
- Metadata
Rules and limits depend on the selected context. Some rules are not available for specific campaign types or use cases.
Glossary
Read this glossary to learn Voucherify terminology required to work with validation rules.Customer segment
Customer segment
Customer segments group customers based on standard attributes (such as email or postal code) and custom attributes added as metadata.
Custom event
Custom event
Custom events are external actions performed by customers that are tracked and sent to Voucherify using the API.
Earning rule
Earning rule
An earning rule is a rule that defines how and when loyalty points are assigned to a customer’s loyalty card.
Holder of the code
Holder of the code
A customer becomes the holder of a unique code (a coupon, gift card, referral code, or loyalty card) once it has been assigned to them. Assigned codes are visible in the customer profile under the Wallet tab.
Metadata
Metadata
Also known as custom attributes. Metadata allows you to store custom key-value data on Voucherify objects such as customers, orders, redemptions, products, and events. Metadata is commonly used to build validation rules and for reporting.
Redeeming user
Redeeming user
A redeeming user refers to a team member or affiliate invoking a redemption. Validation rules using redeeming users can restrict which project members are allowed to perform successful redemptions.
Redemption
Redemption
Redemption is a single use of a promo code or an in-cart discount. In loyalty programs, a redemption represents exchanging loyalty points for a reward.
Validation rule builder
Validation rule builder
The Validation rule builder is the interface used to create validation rules. The Validation rule builder is available in the campaign manager and in the validation rules section of the Voucherify dashboard.
Audience
Audience rules define conditions customers must meet to receive or redeem an incentive:- Customer segment: Target or exclude specific customer segments.
- Customer loyalty tier: Target or exclude customers based on their loyalty tier.
- Redemption only by code holder: Restrict code usage to the customer to whom the code was published.
Products
Product rules define validation based on the structure of the customer’s order. You can further refine these rules using subrules related to order structure or order volume.Any order item
At least one item in the cart must match the defined criteria:- is: Specified products or collections must be present in the cart.
- from: The matched products must also belong to a specified collection.
- Subtotal of matched items: Define the total amount of all items that meet criteria set with product filters.
- Quantity of matched items: Define the total number of all items that meet criteria set with product filters across all order lines.
- Unit price of the matching order line: Define the price of at least one matching order line.
- Item quantity in the matching order line: Define the required quantity for at least one matching order line.
- Matching item metadata: Define limits using order items metadata that need to be met by at least one order line item.
Every order item
Every item in the cart must match the defined criteria:- is: Specified products or collections must be present
- from: Matched products must also belong to a specified collection
- Subtotal of matched items: Define the total amount of all items that meet criteria set with product filters.
- Quantity of matched items: Define the total number of all items that meet criteria set with product filters across all order lines.
- Unit price of the matching order line: Define the required price of every order line.
- Item quantity in the matching order line: Define the required quantity in every order line.
- Matching item metadata: Define limits using order items metadata that need to be met by every order line item.
None of the order items
Excludes the cart from validation if specified products or collections are present:- is: Specified products or collections must be present
- from: Matched products must also belong to a specified collection
Most expensive of the order items
Defines rules for the most expensive item in the cart or the most expensive item within a specific collection:- is: Products or collections that must be the most expensive
- from: Collection from which the most expensive item is selected
- Subtotal of matched items: Define the total amount of all the qualified most expensive items.
- Quantity of matched items: Define the total count of all the qualified most expensive items.
- Unit price of the matching order line: Define the required price of each qualified most expensive item.
- Items quantity in the matching order line: Define the required quantity of each qualified most expensive item.
- Matching item metadata: Define limits using order items metadata that need to be met by each qualified most expensive item.
Cheapest of the order items
Defines rules for the cheapest item in the cart or the cheapest item within a specific collection:- is: Products or collections that must be the cheapest
- from: Collection from which the cheapest item is selected
- Subtotal of matched items: Define the total amount of all qualified cheapest items.
- Quantity of matched items: Define the total count of all qualified cheapest items.
- Unit price of any matching order line: Define the required price of each qualified cheapest item.
- Items quantity in any matching order line: Define the required quantity of each qualified cheapest item.
- Metadata of matched items: Define limits using order items metadata that need to be met by each qualified cheapest item.
Prices and quantities
These rules define validation based on order volume and pricing:- Total amount: Required total cart value.
- Initial amount: Cart value before discounts are applied.
- Items quantity: Required number of products in the cart.
- Price of each item: Required price for every product in the cart.
- Price of any item: Required price for at least one product in the cart.
Budget constraints
Budget constraints limit campaign usage and help prevent abuse. They can also affect the number of redemptions done by customers.- Total orders value: Define the value of all orders made within the campaign. Once the limit is reached, customers cannot redeem more codes.
- Total discounted amount: Define the overall value of the discount that the customers can get by redeeming codes from a particular campaign.
- Total number of redemptions: Define the total number of redemptions allowed per entire campaign (the sum of all redemptions made with unique codes from the campaign).
- Total number of redemptions per day: Define the daily limit of redemptions allowed in the entire campaign for all customers (the sum of all redemptions made with unique codes from the campaign). The day is a calendar day, for example 1 January 2025.
- Total number of redemptions per month: Define the monthly limit of redemptions allowed in the entire campaign for all customers (the sum of all redemptions made with unique codes from the campaign). The month is a calendar month, for example January.
- Redemptions per incentive per day: Define the daily limit of redemptions for a given code. The day is a calendar day, for example 1 January 2025.
- Redemptions per incentive per month: Define the monthly limit of redemptions for a given code. The month is a calendar month, for example January.
- Redemptions per customer per incentive: Define the total number of redemptions that a particular customer can make using a given code.
- Redemptions per customer per incentive per day: Define the daily limit of redemptions that a particular customer can make using a given code. The day is a calendar day, for example 1 January 2025.
- Redemptions per customer per incentive per month: Define the monthly (calendar month) limit of redemptions that a particular customer can make using a given code. The month is a calendar month, for example January.
- Redemptions per customer in a campaign: Define the total number of redemptions counted per customer per campaign.
- Redemptions per customer in a campaign per day: Define the daily limit of redemptions that a particular customer can make using codes from a particular campaign. The day is a calendar day, for example 1 January 2025.
- Redemptions per customer in a campaign per month: Define the monthly (calendar month) limit of redemptions that a particular customer can make using codes from a particular campaign. The month is a calendar month, for example January.
- Total redeemed gift amount: Define the total value of the redeemed balance in the whole campaign.
- Maximum pay with points: Define the number of loyalty points to be used to pay for an order.
Redemptions
Redemption rules define technical constraints on how redemptions are handled:- Redeeming user: Restrict which team members or affiliates can invoke redemptions.
- Redeeming API key: Restrict redemption requests to specific API keys.
- Redemption only by code holder: Restrict redemptions to the customer the code was published to.
Metadata
Metadata rules define validation based on custom attributes:- Customer metadata: Require specific metadata to be present in the customer.
- Order metadata: Require specific metadata to be present in the order.
- Redemption metadata: Require specific metadata to be present in the redemption request.
- Custom event metadata: Require specific metadata to be present in custom events.
Related features
Validation rules work with other Voucherify features. Use the resources below to prepare data for your rules.Customer segments
Customer segments
Customer segments group customers based on shared attributes or behavior. Use segments in Audience rules to target specific customer groups.Segments update dynamically, so a rule that targets a segment always checks the current membership.
Product collections
Product collections
Product collections group products based on attributes or filters. Use collections in Products rules to define required or excluded cart items.Dynamic collections update automatically when products match the defined filters.
Metadata schemas
Metadata schemas
Metadata lets you store custom attributes on customers, orders, products, and redemptions. Use metadata in validation rules to create conditions based on any custom data.Define metadata schemas in Project Settings to ensure consistent data types across rules.
Custom events
Custom events
Custom events track customer actions sent via API. Use custom event metadata in validation rules for distributions or earning rules.For example, trigger a distribution only when a custom event includes specific metadata.
Campaigns and earning rules
Campaigns and earning rules
Validation rules control eligibility for:Each campaign type supports different rule categories based on its context.
Developer setup: Validation Rules API
Developer setup: Validation Rules API
Developers can manage validation rules using the Validation Rules API.The API supports creating rules, assigning them to campaigns, and listing all assignments.

