Error occurs when adding a discount to the subscription
Sections
Issue
An error occurs when trying to add the discount code through the customer portal, merchant portal, or checkout.
Environment
Resolution
If an error appears when applying a discount code, check the existing discount settings on both Recharge and your ecommerce platform. Discounts should be configured in both platforms to apply for subscriptions.
Some common reasons why a discount code returns an error response include:
- The discount code was applied after the expiration date or before the start date.
- The discount is set for one application per customer, and the customer has used the code previously.
- The customer is trying to apply the discount code in the customer portal, but the code can only be used by first-time customers at checkout.
- The discount code is being applied in a channel (ie. the checkout or customer portal) that is disabled.
- The cart total does not meet the discount's minimum purchase requirement.
If you are using multi-currency, fixed-amount discount codes do not work on recurring orders. Fixed-amount discount codes applied through the customer or merchant portals can only be applied to addresses that share the store's currency. In this case, it is best to use percentage-based discount codes to ensure they can be applied to all orders.