Discount codes guide

Shopify discount code rules: length, capitals and limits

Check my codes

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

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.