Discount Engine
Rules-based loyalty discounts applied automatically based on customer behavior.
Available on Large Business plans and above. The Discount Engine applies rules-based loyalty and promotional discounts to subscriptions automatically. It requires a Recharge OAuth connection with the write_discounts scope.
Customer segmentation
PricePilot segments customers by subscription behavior:
| Segment | Criteria |
|---|---|
| New | Subscription tenure less than 30 days |
| Active | Tenure ≥ 30 days with 3 or more orders |
| At Risk | Tenure > 90 days with fewer than 3 orders or less than $100 LTV |
| VIP | Lifetime value ≥ $500 OR 12 or more orders |
| Churned | No longer an active subscriber |
Rule conditions
Each discount rule can include one or more conditions that a customer must match:
- Tenure-based: Minimum and/or maximum days since first subscription
- Order count: Minimum and/or maximum number of completed orders
- Lifetime value (LTV): Minimum and/or maximum total spend
- Promo window: Start and end dates for time-limited promotions
Discount types
- Percentage discount: 0–100% off the subscription price
- Fixed amount: A dollar amount deducted from the subscription price
- Price floor: a discount never takes a subscription price below $0
Priority system
Rules are evaluated by priority (lower number = higher priority). When several rules match a customer, only the highest-priority rule is applied, so discounts never stack.
How discounts are applied
PricePilot applies discounts through Recharge's address-level discount system, so:
- Discounts show in Recharge's admin and customer portal
- Discount codes are tracked in Recharge
- Discounts persist across renewals until the rule conditions no longer match
Audit log
Every discount application is logged with its status (pending, then applied, failed, or reverted), timestamps, the rule that triggered it, and the customer and subscription details. View the log from the Applications tab in the Discount Engine section.
Discount rules are evaluated every 12 hours. If a customer no longer matches a rule's conditions (for example, their segment changed), the discount is reverted.