I have created a private app that creates discount codes and add them under a certain price rule. It works fine except I found that if I add a discount code under that price rule and the code already exists under another price rule I am receiving an error that the code must be unique. Is there a way to avoid this issue? How do I check all the discount codes in all the price rules?
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Duplicate existing DiscountCode with Shopify Admin REST API | 0 | 14 | February 7, 2022 | |
| Is there a limit to the total number of price rules? | 0 | 7 | August 18, 2021 | |
| Discount types - combine discount codes | 0 | 9 | March 19, 2024 | |
| How to assign multiple discount codes to a price rule? | 0 | 6 | October 13, 2020 | |
| How do multiple discount codes belong to one price rule (with once_per_customer=true) behave? | 2 | 17 | September 29, 2022 |