I want to generate discount codes in our shop every day, on average 24,000 codes every day.
I see there’s a discount code creation job endpoint https://shopify.dev/docs/api/admin-rest/2024-01/resources/discountcode#post-price-rules-price-rule-id-batch but it only allows for 100 codes per job and only allows for 1 job simultaneously. I was thinking to generate the codes in these 100 code batches, but the job requires polling to check that the codes are successfully created. I’m afraid this will eat in to our API limits.
What’s the best way to generate 24k codes every day in an efficient manner without crossing the API rate limiting thresholds?