Introducing the Chargebee CLI

Coupon bulk operations error

Problem Statement

This article helps you resolve the error param coupon[apply_on] is not applicable for used coupon when updating coupons via bulk operation to make them applicable to new items in the product catalog.

Solution

The apply_on parameter defines the amount on the invoice to which the coupon is applied. It cannot be changed for coupons that are already in use. To add more plans, addons, or charges, use the item_constraints parameters instead.

Steps to Set It Up

  1. Remove the apply_on value from your bulk operation sheet.
  2. Update coupon[plan_constraint] or coupon[addon_constraint] using the Coupons API documentation as reference.
  3. Re-run the bulk operation.