A user seeks to import discount codes from a CSV file into Shopify without paying for third-party apps ($19/month). They want to use randomly generated codes with Word’s Mail Merge function to print personalized discount codes on packaging slips for tracking rebates and marketing campaigns.
Key Points:
Shopify allows discount code exports but lacks a native import button
User is open to coding solutions if necessary
Proposed Solutions:
Use Shopify Admin API to bulk create codes from CSV
Consider free bulk discount code apps as alternatives
Integrate codes into Mail Merge templates once imported
Open Question:
The original poster asks whether Shopify API access requires a Plus subscription or is available to all users. This remains unanswered and is critical for determining the feasibility of the API approach.
Summarized with AI on October 30.
AI used: claude-sonnet-4-5-20250929.
YES, I know there is an app for this, but I’m not paying $19 a month, to import a CSV with discount codes. Shopify allows the export of discount codes… How do we import them?
I have randomly generated codes, and I want to use the Mail Merge Function in Word when sending out products to customers including a physical discount code printed on their packaging slip to track different rebates, ad copy and designs…
I can’t believe that there is not an “Import” Button on the discount page. I’m not shy of doing some coding if needed.
I understand your frustration. While Shopify doesn’t have a direct “Import” button for discount codes, you can use the Shopify Admin API to bulk create codes from your CSV. Alternatively, you can use a free bulk discount code app in Shopify for easier management.
For Mail Merge, once the codes are in Shopify, you can integrate them into your Mail Merge template to personalize emails or print packaging slips.
If you’d like, I can guide you through the API process or help set up a custom solution.
Shopify doesn’t provide an “Import” button for discount codes, so CSV uploads aren’t supported natively. The only reliable ways to bring your existing codes into Shopify are:
Using the Admin API
– Works on all plans (Plus is NOT required)
– Lets you bulk-create codes programmatically
– Perfect if you already have a CSV of randomly-generated codes
– Takes a bit of setup, but completely free once done
Using an app that supports bulk discount imports
– Easiest, no coding
– (Example of an app that supports discount logic, bundles, and promotions: https://apps.shopify.com/orichi-bundle-discount)
If you want, I can show you the exact API request format and a simple script to upload your CSV automatically.