What Is a Barcode Number
Understanding the distinction between barcode numbers and barcodes themselves is fundamental to gift card and key tag systems.
The Number vs The Barcode
The Barcode Number Is the Identifier
The barcode number is a sequence of digits that uniquely identifies a specific card or tag. This number is the actual data stored in databases and recognized by POS systems.
Example: 6006000123456789
The Barcode Is the Visual Representation
The barcode itself is simply a visual pattern of lines and spaces that encode the number. The barcode allows scanners to read the number quickly without manual entry.
The barcode and the number represent the same information in different formats—one machine-readable, one human-readable.
POS Systems Read the Number, Not the Lines
When a barcode is scanned, the scanner decodes the visual pattern into the number and transmits that number to the POS system. The POS system processes the number according to its configuration—it never sees or processes the visual barcode pattern directly.
Why This Distinction Matters
Compatibility issues almost always stem from incorrect number structure, not barcode printing quality. A perfectly printed barcode that encodes an incorrectly structured number will still fail to work with the POS system.
This is why understanding barcode number generation is essential before ordering cards—the number structure must match POS requirements exactly.
Why Barcode Number Structure Matters
POS systems have strict rules about how they recognize and process barcode numbers. When numbers do not conform to these rules, cards are rejected at checkout even if they scan successfully.
POS Systems Expect Specific Number Lengths
Most POS systems require gift card and key tag numbers to be an exact length. Common requirements include 13, 16, or 19 digits, though custom lengths are possible.
Example Failure:
A POS configured for 16-digit gift cards will reject 13-digit numbers as invalid, even if the barcode scans perfectly.
✗ Rejected: 6006001234567 (13 digits)
✓ Accepted: 6006000123456789 (16 digits)
Prefixes and Ranges May Be Required
Many POS systems identify gift cards by specific starting digits or numeric ranges. Numbers outside these ranges are treated as product barcodes or rejected entirely.
Example Configuration:
A business configures their POS to recognize all 16-digit numbers starting with "6006" as gift cards. Numbers with different prefixes fail recognition.
✓ Recognized: 6006000123456789
✗ Not Recognized: 7007000123456789
Incorrect Structure Causes Checkout Failures
When barcode numbers do not match POS expectations, the result is failed transactions at checkout. This creates customer frustration, staff confusion, and lost revenue.
Card Rejected: POS refuses to activate or redeem the card
Treated as Product: POS attempts to ring up the card as merchandise
Unknown Number Error: POS displays error message stating number not found
Structure Requirements Vary by POS System
Different POS systems have different requirements. Even two businesses using the same POS brand may have different numbering requirements based on how each system was configured during setup.
This is why verification with actual POS settings is essential before production. Generic assumptions about barcode formats lead to unusable cards.
Sequential Barcode Numbers
Sequential numbering is the most common method for generating barcode numbers for gift cards and key tags. Numbers increment in a predictable order.
What Sequential Barcodes Are
Sequential barcode numbers follow a consecutive pattern where each number increases by one from the previous number. This creates an ordered, predictable series.
Example Sequential Series:
Each number increments by 1. The sequence is predictable and easy to track.
When Sequential Barcodes Are Used
Sequential numbering is the default choice for most gift card and key tag applications because it offers practical advantages for business operations.
Gift Card Programs
Most gift card implementations use sequential numbering. It allows businesses to easily track which number ranges have been activated, identify missing cards in inventory, and reconcile physical card counts with database records.
Membership Systems
Gyms, clinics, and membership-based businesses typically use sequential numbering for key tags. Sequential numbers make it easy to assign member ID ranges to specific locations or membership tiers.
POS Systems Requiring Predictable Ranges
Some POS systems require sequential numbering for proper gift card module functionality. These systems may validate that scanned numbers fall within expected ranges or use number sequences for batch management.
Pros and Cons of Sequential Numbers
Advantages
Easier Tracking
You can quickly identify which number ranges have been sold or activated
Easier Troubleshooting
Missing cards are immediately obvious when reviewing number sequences
Inventory Management
Sequential batches can be assigned to specific locations or departments
Database Efficiency
Ordered numbers improve database indexing and lookup performance
Disadvantages
Predictable Patterns
Sequential numbers can be guessed if security measures are not implemented
Security Considerations
Requires proper activation controls to prevent unauthorized use
Potential Fraud Risk
If physical cards are stolen before activation, number patterns are visible
Security Note: Sequential numbering is safe when combined with proper activation-at-sale requirements. Cards should only become active when purchased, preventing unauthorized use even if numbers are predictable.
Random Barcode Numbers
Random barcode numbering generates unpredictable sequences where each number has no relationship to adjacent numbers. This approach prioritizes security over operational convenience.
What Random Barcodes Are
Random barcode numbers are generated using pseudo-random algorithms that produce unpredictable sequences. Each number appears unrelated to others in the set, making patterns difficult or impossible to discern.
Example Random Series:
No discernible pattern exists between numbers. Predicting the next number is not possible.
When Random Barcodes Are Used
Random numbering is chosen in specific scenarios where security requirements outweigh operational convenience or where POS configuration demands unpredictable sequences.
Security-Focused Systems
Businesses with heightened security concerns may require random numbering to reduce fraud risk. This is more common with high-value gift cards or programs vulnerable to enumeration attacks.
Example: Gift cards with starting balances above $500 where prediction risk must be minimized.
POS Systems That Reject Predictable Ranges
Some enterprise-level POS systems are configured to flag or reject sequential number patterns as potential security risks. These systems may require randomized generation.
Example: Large retail chains with centralized fraud detection that monitors for sequential activation patterns.
Multi-Vendor Programs
When multiple businesses share a common gift card platform, random numbering prevents one business from inferring another's card numbers.
Example: Shopping mall gift card programs accepted at dozens of independent retailers.
Pros and Cons of Random Numbers
Advantages
Reduced Predictability
Impossible to guess valid card numbers by observing patterns
Enhanced Security
Protection against enumeration attacks and systematic guessing
Fraud Prevention
Even if one card number is exposed, adjacent numbers remain unknown
Disadvantages
Harder Manual Tracking
Cannot visually identify missing cards or number gaps in inventory
Complex Inventory Management
Requires database lookups to verify which cards belong to which batch
POS Compatibility
Some POS systems expect sequential ranges and may not support random numbering
Duplicate Risk
Random generation requires duplicate checking to prevent number collisions
Recommendation: Most small to medium businesses should use sequential numbering unless specific security requirements or POS configurations demand randomization. Activation-at-sale provides adequate security for standard gift card programs.
Barcode Length and POS Requirements
Barcode number length is one of the most critical compatibility factors. POS systems validate length before processing any other card attributes.
Fixed-Length Requirements
POS systems are typically configured to accept gift card numbers of a specific fixed length. Numbers shorter or longer than this configured length are rejected.
Common Length Requirements
13
Digits
UPC-compatible length
16
Digits
Most common for gift cards
19
Digits
Extended range systems
Why Length Validation Exists
POS systems use length as an initial filter to distinguish between product barcodes, gift cards, and other identifier types. This prevents confusion between different barcode categories.
A 13-digit scan might be a product UPC, while a 16-digit scan is recognized as a gift card. The system routes each to appropriate processing based on length.
Leading Zeros and Their Importance
Leading zeros are digits at the beginning of a number that appear to have no mathematical value but are essential for maintaining correct length.
Critical Rule: Never Remove Leading Zeros
Correct Number (16 digits):
0006000123456789
Contains three leading zeros. Total length: 16 digits.
Incorrect Number (13 digits):
6000123456789
Leading zeros removed. Total length: 13 digits. POS rejects this number.
Common Mistake: Spreadsheet software automatically removes leading zeros when numbers are entered. This creates cards with incorrect lengths that fail at checkout. Always format cells as text to preserve leading zeros.
How to Preserve Leading Zeros
In Spreadsheets
Format cells as "Text" before entering numbers, or prefix numbers with an apostrophe (e.g., '0006000123456789)
In Databases
Store card numbers as strings/text, not integers, to maintain exact formatting
In Code
Use string padding functions to ensure consistent length (e.g., padStart in JavaScript, zfill in Python)
Why Trimming Digits Breaks Compatibility
Even removing a single digit from a barcode number renders it incompatible with POS systems configured for specific lengths.
Example Failure Scenario
POS Configuration:
Expecting 16-digit gift card numbers
Card Number Scanned:
6006000123456789
Length: 16 digits ✓
Result: Card recognized and processed
Card Number Scanned:
600600012345678
Length: 15 digits ✗
Result: POS rejects as invalid length
Barcode Number Ranges and Prefixes
POS systems use number ranges and prefixes to categorize different types of barcodes and route them to appropriate processing functions.
Why Some POS Systems Require Specific Starting Digits
Prefixes serve as identifiers that tell the POS system what type of barcode has been scanned. This allows the system to immediately route the scan to gift card processing rather than product lookup.
Example POS Configuration
Product SKUs:
Start with 0, 1, 2, 3, 4, 5, 7, 8, or 9
→ Route to product database lookup
Gift Cards:
Start with 6006
→ Route to gift card module
Loyalty Cards:
Start with 6007
→ Route to loyalty program database
Prefix Requirements Are POS-Specific
There is no universal standard for gift card prefixes. Each POS system can be configured with different prefix rules. Always verify the specific prefix your system requires before generating card numbers.
How Ranges Prevent Conflicts with Product SKUs
Assigning gift cards to dedicated number ranges ensures they never overlap with product barcodes. This prevents the POS from mistakenly treating a gift card as a product or vice versa.
What Happens When Ranges Overlap
Scenario: Gift Card Uses Product Number
A gift card is accidentally assigned number 0012345678901, which happens to be the barcode for "Widget Model A" in your product catalog.
Result: When the card is scanned, the POS attempts to sell "Widget Model A" instead of processing the gift card transaction.
Scenario: Product Uses Gift Card Range
A product is assigned a barcode that falls within your gift card number range.
Result: The POS interprets the product barcode as a gift card redemption attempt, causing checkout errors.
Why Mixing Ranges Causes Issues
Using multiple disconnected number ranges for gift cards within the same system creates management complexity and increases error risk.
Inconsistent POS Recognition
If gift cards use both 6006-prefix and 7007-prefix ranges, but only 6006 is configured in the POS, half the cards will not work.
Difficult Troubleshooting
When cards fail, staff must determine which range the card belongs to before diagnosing the issue, slowing resolution.
Inventory Confusion
Multiple ranges make it harder to track which cards belong to which batches or locations, complicating stock management.
Best Practice
Use a single, dedicated prefix and number range for all gift cards within your system. This simplifies POS configuration, reduces errors, and makes management straightforward.
Common Barcode Numbering Mistakes
Understanding and avoiding common numbering errors prevents costly reprints and operational disruptions. These issues are common and easily avoided with proper verification.
Duplicate Numbers
What Happens: Multiple cards are printed with the same barcode number.
Why It's a Problem: When one card is activated or used, all cards with that number are affected. This creates balance conflicts, customer complaints, and fraud vulnerabilities.
How to Prevent: Use automated number generation tools that guarantee uniqueness. Never manually copy-paste number sequences without incrementing.
This issue is easily avoided with proper validation before printing.
Incorrect Length
What Happens: Numbers are generated with the wrong number of digits.
Why It's a Problem: POS systems reject numbers that don't match configured length requirements. All cards become unusable.
How to Prevent: Verify POS length requirements before generating numbers. Use validation checks to confirm every number matches required length.
Simple verification steps eliminate this problem entirely.
Using Spreadsheet Auto-Fill Incorrectly
What Happens: Spreadsheet software misinterprets number patterns and generates incorrect sequences.
Why It's a Problem: Auto-fill may skip numbers, create duplicates, or remove leading zeros, producing non-sequential or invalid numbers.
Example of Auto-Fill Failure:
User enters:
0006000123456001
0006000123456002
Spreadsheet auto-fills as:
6000123456001 (leading zeros removed)
6000123456002 (wrong length)
How to Prevent: Always format cells as text before entering numbers. Use formulas with proper padding functions instead of auto-fill.
Reusing Old Barcode Ranges
What Happens: A business orders new cards using number ranges previously assigned to old cards.
Why It's a Problem: If old cards with those numbers still exist in circulation or in the POS database, duplicate number conflicts arise. Customers may present old cards that conflict with new ones.
How to Prevent: Always use new, unused number ranges for each batch. Maintain records of previously assigned ranges to avoid conflicts.
Forgetting to Test Sample Cards
What Happens: Cards are produced and shipped without verifying they work with actual POS hardware.
Why It's a Problem: Incompatible number formats are only discovered after cards arrive, requiring expensive reprints and creating operational delays.
How to Prevent: Always test sample cards with actual POS systems before full production. Verify scanning, activation, and redemption work correctly.
How Barcode Numbers Differ for Gift Cards vs Key Tags
While barcode numbers for gift cards and key tags follow similar structural rules, they serve different purposes and may have different validation requirements within POS systems.
Gift Cards
Primary Function
Gift cards store monetary value. The barcode number serves as a key to access and modify the stored balance.
POS Processing
When scanned, the system retrieves the current balance, applies transaction amounts, and updates the remaining value.
Validation Rules
Systems may require activation before use, enforce minimum/maximum balance limits, and track transaction history.
Number Requirements
Typically 16 digits. Must be unique across all gift cards in the system. Often requires specific prefix to distinguish from products.
Key Tags
Primary Function
Key tags identify customer accounts. The barcode number links to membership records, not monetary balances.
POS Processing
When scanned, the system retrieves customer profile, membership status, visit history, or loyalty points balance.
Validation Rules
Systems may check membership status, expiration dates, access permissions, or location restrictions.
Number Requirements
Length varies by system (commonly 10-16 digits). Must be unique across all members. May use different prefix than gift cards.
Shared Requirements
Despite their different purposes, both gift cards and key tags share fundamental numbering requirements:
Must match POS-configured length exactly
Must use correct prefix if required
Must be unique within the system
Should not conflict with product barcodes
How Scan-Cards Handles Barcode Number Generation
Proper barcode number generation requires technical expertise and systematic quality control to ensure every card works correctly with your POS system.
Numbers Are Generated Intentionally
We use validated generation algorithms that produce numbers matching your exact POS requirements. Length, prefix, format, and sequence type are all configured based on your specific system needs.
No Reused Sequences
Every number range is tracked to prevent reuse across different orders or customers. This eliminates duplicate number conflicts and ensures your cards remain unique even across multiple order batches.
Compatibility Reviewed Before Printing
Before production begins, we verify that generated numbers match your POS system's documented requirements. This includes checking length, prefix, check digits, and any system-specific validation rules.
Verification Before Production
Sample cards are tested with actual POS hardware when possible. This confirms that scanning, activation, and redemption all function correctly before full production runs.
Learn about our verification processBarcode Number Standards and Validation
Barcode numbers follow standardized encoding rules defined by ISO and GS1. Proper generation ensures numbers are compatible with standard barcode symbologies and scanner equipment.
Why Professional Generation Matters
Barcode number generation errors result in cards that cannot be used. This wastes money on reprinting, delays program launches, and creates customer service problems.
Working with experienced providers who understand POS compatibility requirements prevents these issues and ensures cards work correctly from the start.