Requires write_price_rules access scope. More access scope
The Batch Create Discount Code API creates multiple discount codes associated with a specific price rule in a single API call. This bulk operation allows merchants to efficiently generate large numbers of discount codes for marketing campaigns, promotions, or special events.
This API is particularly useful for:
Generating hundreds or thousands of codes for large-scale promotions
Creating codes for segmented marketing campaigns (email lists, social media channels)
Setting up automated discount code generation for partner programs