Hello, seeking clarification on how the usageLimit field on a Shopify discount (like DiscountCodeBasic or potentially applied via a Discount Function) behaves when multiple redeem codes are associated with it using discountRedeemCodeBulkAdd. If usageLimit is set to, say, 500, does this limit apply to the total combined uses across all generated codes under that discount, or does it mean each individual generated code can be used up to 500 times?
Hey @seun
When you set a usageLimit of 500 on a discount and then generate multiple redeem codes using discountRedeemCodeBulkAdd, that limit of 500 applies to each individual redeem code you create, not the combined total across all codes.
So if you generate 10 redeem codes for a discount with a usageLimit of 500, each of those 10 codes can be used up to 500 times independently. You can see this reflected in the Shopify admin as well:
An important thing to note: any customer-specific limitations also apply per redeem code. For example, if you set a limit of 1 use per customer, that customer could potentially use each different redeem code once. The limit is tracked per redeem code, not across the parent discount.
Hope that clarifies things!
Thank you so much for the detailed answer @KyleG-Shopify
Can you confirm that this is the case. We are looking to import 100K plus redeem codes, but each code should only be allowed to be used 1 time. Based on your post, I should be able to create a single price rule with this property and apply to 100K redeem codes and each code will only be allowed 1 use?
Hey @Heath_Barber, yes that should be the case. I would suggest before importing your 100k batch that you test with a smaller sample size to ensure that that the codes are all created with your required criteria.
