๐ง The Qualifications endpoint ignores the rules checking:
- Limit of total redeemed discount amount per campaign
- Limit of total redemptions count per campaign
- Redemptions per customer
- Redemptions per customer in a campaign
Generate a list of redeemables that are applicable in the context of the customer and order.
The new qualifications method is an improved version of Campaign Qualifications, Voucher Qualifications API requests. The new qualification method introduces the following improvements:
๐ Scenario Guide
Read the dedicated guide to learn about some use cases this endpoint can cover.
The Voucherify Qualifications API request will return to you all of the redeemables available for the customer in batches of up to 50 redeemables per page. To get the next batch of redeemables, you need to use the starting_after cursor.
To process of paging the redeemables works in the following manner:
starting_after parameter.has_more. If the parameterโs value is set to true, then more redeemables are available.created_at parameter of the last returned redeemable. The value of this parameter will be used as a cursor to retrieve the next page of redeemables.starting_after parameter set to the value taken from the created_at parameter from the last returned redeemable.has_more parameter is set to true, apply steps 3-5 to get the next page of redeemables.The access token received from the authorization server in the OAuth 2.0 flow.
Define order and customer context.
Request body schema for POST v1/qualifications.
Customer's information.
Order information.
Is correspondent to Customer's source_id
Defines the scenario Voucherify should consider during the qualification process.
ALL - Scenario that returns all redeemables available for the customer in one API request. This scenario is used by default when no value is selected.CUSTOMER_WALLET - returns vouchers applicable to the customer's cart based on the vouchers assigned to the customer's profile.AUDIENCE_ONLY - returns all vouchers, promotion tiers, and campaigns available to the customer. Voucherify validates the rules based on the customer profile only.PRODUCTS - returns all promotions available for the products (when a discount is defined to be applied to the item or when the item is required in the validation rule).PRODUCTS_DISCOUNT - returns all promotions available for products when a discount is defined as applicable to specific item(s).PROMOTION_STACKS - returns the applicable promotion stacks.PRODUCTS_BY_CUSTOMER - returns all promotions available for a customer for the products (when a discount is defined to be applied to the item or when the item is required in the validation rule).PRODUCTS_DISCOUNT_BY_CUSTOMER - returns all promotions available for a customer for products when a discount is defined as applicable to specific item(s).ALL, CUSTOMER_WALLET, AUDIENCE_ONLY, PRODUCTS, PRODUCTS_DISCOUNT, PROMOTION_STACKS, PRODUCTS_BY_CUSTOMER, PRODUCTS_DISCOUNT_BY_CUSTOMER Configure parameters returned in the response.
Parameter to return details about locked_credits on a gift card which has locked credits under a validation session.
A set of key/value pairs that you can send in the request body to check against redeemables requiring redemption metadata validation rules to be satisfied. The validation runs against rules that are defined through the Create Validation Rules endpoint or via the Dashboard; in the Advanced Rule Builder โ Advanced โ Redemption metadata satisfy or Basic Builder โ Attributes match โ REDEMPTION METADATA. Read more.
Returns a qualifications object.
Response body schema for POST v1/qualifications.
List of redeemables for examine qualification.
This identifier is generated during voucher qualification based on your internal id (e.g., email, database ID). This is a hashed customer source ID.
Order information.
Defines stacking rules for redeemables. Read more in the Stacking Rule Documentation.