Discount codes guide
Shopify discount code rules: length, capitals and limits
The rules
- Not case sensitive: SAVE10, save10 and Save10 are the same code (Shopify API reference).
- Up to 255 characters (Shopify API reference).
- 20,000,000 unique codes per store in total; deleting codes frees space (Shopify Help Center).
- Avoid special characters so codes work in your store’s checkout links (Shopify Help Center).
- A code discount can apply to up to 100 specific customers, products and variants (Shopify Help Center).
Common problems in code lists
The importer checks for these before you add anything:
- Repeats that only differ in capitals.
- Spaces inside codes, often from copying out of a spreadsheet.
- Codes that already exist in the store. Shopify reports these as failed; the tool lists them after you paste the results.
More guides
- How to import discount codes into Shopify from a CSV
- How to create thousands of unique discount codes in Shopify
- Add discount codes in bulk with the Shopify GraphiQL app
- Add thousands of discount codes with Shopify CLI
Sources: discountRedeemCodeBulkAdd, Shopify CLI store execute, Shopify Help Center: discount codes. Not affiliated with, endorsed by, or sponsored by Shopify Inc. Shopify is a trademark of Shopify Inc.