Using rejectedPromotions to Debug
Every Verify response includes a rejectedPromotions object listing promotions that were considered but didn't apply, each with a rejectionReason. It's the most direct way to find out why a promotion isn't applying.
How to find it
In the Verify response body, look for the rejectedPromotions object. Each entry is keyed by promotion ID and includes at least:
promotionId, the promotion that was rejectedversionId, the version that was evaluatedrejectionReason, why it was rejected
Some reasons include extra fields, described below.
Rejection reasons and what they mean
PromotionUsageExceeded
The promotion's How many times can it be used in total? limit has been reached across all customers. The response also includes usageCountLimit, showing the limit. To keep offering the promotion, raise the limit.
PromotionPerCustomerUsageExceeded
This customer, identified by email, has already used the promotion as many times as How many times per customer? allows. The response includes usageCountLimit. The customer can't use the promotion again unless the limit is raised or their usage is removed with Unrecord.
Stopped
An earlier promotion that applied is set to Stop — don't apply anything else, which skips the product deals and whole-order deals considered after it. Find the promotion that stopped this one and check whether that's intended.
Exclusivity
An earlier promotion set to Only this promotion applies applied first, which skips every other product deal and whole-order deal. These promotions are also moved to the front of the evaluation order. Check whether that promotion is meant to block this one.
AppliedPromotionsLimitReached
The cart has reached the project's limit on how many promotions can apply to one cart. The response includes appliedPromotionsLimit. This is a project setting, not a promotion setting.
NoApplicableCartItems
The promotion's reward couldn't apply to anything in the cart. For a product deal, this usually means the cart doesn't have items matching its product sets, or the matching items were locked by an earlier promotion. For a whole-order deal that takes an amount off, it can mean every item was left out by Excluded items. Compare the promotion's settings with the items in the cart.
What isn't in rejectedPromotions
Promotions that fail the first checks are left out of rejectedPromotions rather than listed. These are:
- a currency mismatch, where the promotion doesn't support the cart's currency
- unmet order conditions
- a coupon problem, where a required code is missing, unrecognised, disabled or has reached its own use limit
Promotions that are turned off, or outside their Starts and Ends dates, aren't evaluated at all, so they're left out too.
If the promotion you're debugging doesn't appear in rejectedPromotions at all, it was almost certainly left out for one of these reasons. Check whether it's turned on, its dates, Currencies, order conditions and coupon codes directly in the Console.
For coupon problems, also check couponMatchResults in the same Verify response. It shows whether each code was valid, with an invalidReason when it wasn't.
Going deeper
For each step of the evaluation and the order the checks run in, see Understanding the Promotion Evaluation Process. Knowing the order helps you predict which rejection reason to expect, and where in the sequence the promotion is being stopped.
Updated 21 days ago