Gift Card Code Management: Best Practices for Shopify Merchants
5 min read
Managing Shopify gift card codes means capturing full codes at creation (before Shopify hides them), organizing cards into named batches with custom prefixes and tags, exporting regularly for backup and accounting, and limiting access to protect what are essentially cash equivalents. A bulk creation tool like BatchCard handles capture and export automatically.
Here's the problem most merchants discover the hard way: once you create a gift card in Shopify, the admin hides the full code and only shows the last four digits. If you didn't save it at creation, it's gone. That matters because gift card codes are how you distribute, track, and reconcile cards. Without them, you can't send codes to recipients, audit your records, or investigate issues. At scale, good code management is the difference between a smooth operation and a frustrating mess.
Why Code Management Matters
Shopify Only Shows the Last Four Digits
When you create a gift card in Shopify's admin, the full code appears once. After that, you'll only ever see xxxx-xxxx-xxxx-7a3f (or whatever the last four digits are). This is a security measure, and it makes sense for individual gift card purchases. But for bulk operations, it creates a real problem.
If you created 200 gift cards for an employee rewards program and didn't capture the codes at creation time, you have 200 cards you can't distribute. The money is committed, the cards exist on your store, but you can't tell anyone their code.
Distribution Requires Full Codes
Whether you're emailing codes to recipients, printing them on physical cards, or importing them into another system, you need the complete codes. Partial codes are useless for distribution.
Accounting Needs a Paper Trail
Gift card liability appears on your balance sheet. Your finance team needs records of which codes were created, their values, who received them, and whether they've been redeemed. Clean code management makes this audit trail possible.
Organizing with Batches
The most practical way to manage gift card codes at scale is to group them into batches.
Naming Conventions
Use descriptive, consistent batch names that tell you the purpose at a glance:
| Pattern | Example | Use Case |
|---|---|---|
| Event + Year | "Holiday 2025" | Seasonal campaigns |
| Department + Quarter | "Sales Q1 Rewards" | Departmental programs |
| Campaign + Code | "BFCM Flash Sale" | Promotional campaigns |
| Client + Date | "Acme Corp March 2025" | B2B orders |
Consistent naming matters more than the specific pattern. Pick a convention and stick with it. When you're looking at a list of 50 batches six months from now, "Holiday 2025 Employee Rewards" is immediately clear. "Batch 47" is not.
Tags and Notes
Add tags to batches so you can filter them later. Useful tags include:
- The program type:
employee,promotion,loyalty,b2b - The department:
hr,marketing,sales - The status:
distributed,pending,archived
Batch notes are the place for context that doesn't fit in a name or tag: "Approved by Sarah K. Budget code: MKT-2025-Q1. Distribution scheduled for March 15."
Using Custom Code Prefixes
Custom code prefixes add a human-readable identifier to the beginning of every gift card code in a batch. Instead of a random code like d8f2-a1c9-b3e7-4k2m, you get HOLIDAY-a1c9-b3e7-4k2m.
When Prefixes Help
Identifying the source. If a customer contacts support with a gift card issue, the prefix tells your team immediately where that card came from. EMP- is an employee reward. PROMO- is from a marketing campaign.
Tracking campaigns. Custom prefixes make it straightforward to see which codes belong to which program, even outside of your batch management tool.
Preventing confusion. When you have thousands of active gift cards across multiple programs, prefixes act as a visual namespace. There's no mistaking an INFLU- influencer code for a LOYAL- loyalty reward.
Prefix Best Practices
- Keep prefixes short: 3-8 characters. Shopify gift card codes have a character limit, and long prefixes eat into randomness.
- Use uppercase letters for readability.
- Avoid ambiguous characters: no
O(confused with0), noI(confused with1). - Standardize across your organization. If marketing uses
PROMO-and sales usesPRMT-for the same type of campaign, you've defeated the purpose.
Export Strategies
Regular exports are your safety net. If something goes wrong with your gift card management tool, your account, or your Shopify store, an export ensures you have a complete record of every code.
When to Export
- Immediately after creation. Export every batch as soon as it's created. This is your primary record.
- Before distribution. If there's a gap between creation and distribution, export again to confirm your working data is current.
- Monthly for accounting. A regular export gives your finance team the data they need without ad-hoc requests.
How to Store Exports
Gift card codes are essentially cash equivalents. Store your exports accordingly:
- Use encrypted storage (not a shared Google Drive folder with company-wide access)
- Limit access to people who actually need the codes
- Keep exports organized by date and batch name
- Retain exports according to your company's data retention policy
For more on the export process, see our export guide.
Security Considerations
Treat Codes Like Cash
A gift card code is worth its face value. A $100 gift card code is the same as a $100 bill sitting in a spreadsheet. Act accordingly:
- Don't email raw code lists in plain text
- Don't store exports on personal devices or unencrypted USB drives
- Don't share batch access with people who don't need it
Access Control
Limit who can create batches, view full codes, and export data. In most organizations, only a handful of people need access to gift card codes. Everyone else can work with partial codes (last four digits) for customer service.
Audit Trail
Keep a record of who accessed codes and when. If codes are leaked or misused, an audit trail helps you identify the source and scope of the problem.
Putting It All Together
Good code management combines all of these practices:
- Create batches with descriptive names and useful tags
- Add prefixes to make codes self-identifying
- Export immediately after creation and store securely
- Track distribution so you know who received which code
- Limit access to the people who actually need full codes
- Audit regularly to catch issues before they become problems
Code management capabilities differ across apps. Our Shopify gift card app comparison details which tools capture full codes and offer export. BatchCard's batch management and custom codes features are designed around these workflows. Whether you're managing employee rewards or corporate gifting programs, these practices apply to any Shopify gift card operation at scale. For step-by-step setup instructions, see the getting started guide.
Frequently Asked Questions
- Why does Shopify hide gift card codes?
- Shopify shows the full gift card code only at creation. Afterward, the admin displays only the last four digits. This is a security measure for individually purchased gift cards, but it creates a real problem for bulk operations where you need to distribute codes later.
- How should I organize gift card batches?
- Use descriptive batch names (like "Holiday Promo 2026"), add tags for filtering (department, campaign, quarter), and add notes with context about who requested the batch and why. Export regularly as backup.
- How do I keep gift card codes secure?
- Treat gift card codes like cash. Limit who can view full codes in your organization. Export files should be stored securely with restricted access. Use custom code prefixes to identify the source of any leaked code.