Hi there,
I’ve noticed that, after you’ve added new redeem codes to a discount, even if you delete all the redeem codes, you can’t ever rename the discount again.
Steps to reproduce:
- Create a discount code (for example, via
discountCodeAppCreate
) namedEXAMPLE
. - Using
discountRedeemCodeBulkAdd
, add new redeem codes to your discount. - Using
discountRedeemCodeBulkDelete
, delete the codes you created, except forEXAMPLE
. - Using
discountCodeAppUpdate
, try to update thecode
of the discount toEXAMPLE2
. You’ll get this error: “Cannot update code for a bulk price rule.”
To prevent user confusion, in our app, we currently show users an info banner before they add redeem codes to inform them they won’t be able to rename the discount afterward.
Is there a specific reason why the code cannot be renamed, even if:
- There is only 1 redeem code
- The redeem code is the same as the
code
?
Thanks,
Tobe