Error occurs when adding a discount to the subscription
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-price discount codes can be automatically converted to the customer’s presentment currency. This behavior depends on your store’s currency settings. To ensure fixed-price discounts work for multi-currency customers, enable the Convert fixed price discounts to the customer's currency setting:
- In the Recharge merchant portal, click Settings and select Store.
- Under Currency settings, toggle Convert fixed price discounts to the customer's currency on.
- Click Save.
For stores created after October 25, 2023, this setting is enabled by default. Note that only the discount value is converted to the customer’s presentment currency. The minimum purchase value (if set in the discount configuration) remains in your store’s base currency and is not converted.
See Multi-currency conversions and risk to learn more.
