Products
Industries
CapabilitiesAbout usResourcesContact
Request a quote
CapabilitiesAbout usResourcesContactRequest a quote
Personalisation

Gift card numbers: sequential, random and paired codes

Sequential, random or paired gift card numbers: which scheme to specify, how the concealed code stays paired, and what the data file must state.

November 26, 2026
/
10
min read
A row of blank white gift cards with black magnetic stripes and blank signature panels, one card tilted upright above the row

A gift card normally carries two values, not one, which is why the gift card number format is really two decisions. One value is the identifier the lane reads, printed as digits and usually as a barcode or a QR code. The other is a concealed code that proves whoever holds the card is entitled to spend the balance, and a person keys that one in by hand. A usable specification states the digit count and the character set of each, says whether the identifier runs in sequence or is drawn at random, and says how the two values stay attached to the same piece of plastic.

This guide stays on the numbers. The rest of the brief, from the data carrier to the packing order, is in the guide to specifying a gift card for production. Three numbering schemes cover almost every programme, and they differ less in how they print than in what has to exist elsewhere for the card to work.

Numbering schemes compared
SchemeWhat the card carriesWhat has to exist elsewhereHow it fails
Sequential identifier onlyA prefix and a serial in orderA stated range, a first and a last serialOne card describes its neighbours, so a balance can be queried without the card
Random identifier onlyA number with no relation to the one before itA stored list of valid numbers, because none can be derivedLose the list and the batch is unredeemable; a narrow digit count makes guessing cheap
Identifier plus concealed codeA visible number, plus a code under a panelOne record holding both values for the same cardA mis-paired card cannot be repaired in the shop, and a panel cannot be put back

Most retail programmes land on the third row, which moves the production risk off the number and onto the pairing. The sections below take those decisions in the order a specification has to settle them.

01. Two values with different jobs

The identifier is machine work. It is scanned, swiped or tapped, and the symbology rules that keep it readable are set out in the guide to variable data, numbering, barcodes and QR codes. The concealed code is human work. Someone reads it off the card and types it, once, often at a queue, which makes its length and its character set a service decision as much as a security one.

That difference puts three lines in the brief. Avoid characters that look alike in print, because 0 and O, 1 and I, and 5 and S all come back as failed redemptions. Keep the keyed code short enough to be typed once and wide enough not to be guessed, which usually means fewer characters over a larger alphabet rather than a long run of digits. And give the code somewhere to hide: a scratch panel is one of the options listed on the gift cards page, and it competes for the same back face as a signature panel, a magnetic stripe and the area above a chip antenna, so the brief says where each one sits instead of leaving it to the artwork stage.

The security logic follows from the same split. With no concealed code, the identifier is the credential, and whatever can read or guess it can use the card. With one, the identifier is free to be plain and predictable, because the concealed code is the part that has to be unguessable.

02. What each scheme forces on everyone else

Sequential numbering is the cheapest to produce and the easiest to administer. Cards arrive in order, a bundle can be labelled with its first and last number, and a shop can reconcile what it holds without scanning every card. That becomes a problem only when the identifier is also the credential, because then one card in a stranger's hands describes the whole range, and an automated balance lookup turns the range into a shortlist.

Random numbering removes the inference and adds a dependency. When no rule generates the valid numbers, the valid numbers exist only as a list, and that list is the master record for the batch. The space also has to be sparse enough to be worth the trouble, and the arithmetic is quick: 100,000 live cards inside an eight-digit space, one hundred million combinations, puts roughly one guess in a thousand on a real card. The same 100,000 cards inside a twelve-digit space move that to about one in ten million. Width does more of the work than randomness.

Pairing is where most programmes settle, because it separates the two requirements instead of asking one number to meet both. The identifier stays sequential and stays convenient to handle, the concealed code carries the unpredictability, and neither value has to do the other's job. The cost lands in the data: the production file now has to keep two values attached to one physical card.

03. Who generates the values, and what crosses

Generation belongs to whoever owns the number space, which in a retail programme is the platform that will hold the balances. The factory's part is narrower, and it is worth stating precisely: print what the file says, keep the two values together, verify what was printed, and return a file describing what left the plant and in which carton it left.

How a gift card number file crosses between the platform and the plantTwo lanes across five steps. The retailer's platform generates the identifier and, where there is one, the concealed code. The plant prints and pairs both values from a single record, verifies them card by card, and returns a manifest mapping numbers to cartons. The platform then creates the records and resolves a finished card at the till. The balance exists only in the platform.THE FILE CROSSES TWICE, AND BOTH CROSSINGS ARE SPECIFIEDRETAILER PLATFORMKAWAY PLANT01 Generate valuesIdentifier, concealed code02 Print and pairOne pass, one record03 Verify per cardAgainst the file04 Manifest outNumber to carton05 Create recordsBalance lives here onlyA card that reaches step 05 with the wrong pair cannot be corrected in the shop
Swipe the diagram sideways to see all of it
Two files, two directions. What goes to the plant and what comes back are both specification lines, not email attachments.

The return file is the part most briefs leave out. A manifest listing every card, its identifier, the bundle and carton it sits in, and a checksum for the whole set lets the platform create records that match what was actually made rather than what was ordered. It also turns a delivery dispute into arithmetic. What to check against it when the pallet arrives is set out in the delivery inspection checklist.

04. Zeros, duplicates and the file that carries them

Numbering jobs rarely fail on the press. They fail in the handover, and almost always in one of four ways.

  • Leading zeros disappear. A number that starts with a zero is text, not a quantity. Open the file in a spreadsheet, save it again, and the zero is gone, the digit count has changed, and the printed code no longer matches the one the platform issued.
  • Long numbers are rounded. A spreadsheet holds about fifteen significant digits. A sixteen-digit number pasted into a cell can come back with its last digit replaced by a zero, or rendered in scientific notation, and the file looks healthy until it is on plastic.
  • Rows repeat or go missing. A merge, a re-sort or a second export produces duplicates, and on variable data a duplicate means two cards with one identity. A stated row count and a checksum catch that before anything is printed.
  • The delimiter and the encoding are assumed. Comma-separated values has no formal specification. The common format published as RFC 4180, which is informational rather than a standard, treats fields as separated by commas, records as ending in a line break, a header line as optional, and fields containing commas, quotes or line breaks as needing double quotes. Each of those can reasonably be done another way, which is exactly why the brief states them.

The working rule is to hand over the data as text with a fixed digit count, state the delimiter, the quoting convention, the character encoding, the row count and a checksum, and never re-save the file through a spreadsheet on the way. Where a second run has to continue the same range without reusing a serial already in circulation, the discipline that keeps the batches consistent is in the reordering guide.

05. The pairing is the thing to verify

A wrong identifier is visible. A wrong pair is invisible. The card scans, the panel looks untouched, the shop accepts the delivery, and the defect appears at the moment a customer tries to spend it, by which point the card is in a wallet a long way from the factory and nothing but a new record or a new card will fix it.

Two lines in the specification prevent most of that. The first is that both values are printed in one pass from one record, rather than assembled from two files in two operations. The second is that pairing is verified against the file card by card during production, with the acceptance rule written down rather than assumed.

Checking on arrival is a different exercise, because reading a concealed code destroys the card that carries it. A pairing check on delivery is a destructive sample: state how many cards will be opened, who opens them, what counts as a pass, and accept that those cards are spent. A few cards per carton, drawn at random rather than off the top of the stack, prove more than a larger sample taken from one bundle.

06. A gift number is not a payment card number

Briefs sometimes ask for sixteen digits in four groups of four, because that is what a card number looks like. That shape is already governed. ISO/IEC 7812-1:2017 specifies a numbering system for the identification of card issuers and the format of the issuer identification number and the primary account number, and a private gift programme is not an issuer inside that system. Borrowing the shape risks sitting inside a number space that belongs to somebody else, and it invites a terminal to treat the card as something it is not.

A gift identifier can be whatever length the platform accepts, and the real constraints come from elsewhere: the symbology, the space the artwork leaves for it, and whether anything outside the till has to read it. Where the programme uses GS1 identification keys, the check digit arrives with the key, since GS1 states that the last digit of its fixed-length numeric keys is a check digit that ensures the integrity of the key, and its check digit calculator computes it. Where the programme uses its own numbers, name the algorithm in the specification, because a digit computed one way at the press and another way in the platform will reject valid cards at the lane.

07. Test the second value, and test it failing

A finished card, read by the reader installed at the point of sale, with the platform resolving it in test mode, is the gate for the whole programme, and that sequence belongs to the production specification rather than to this guide. What a two-value card adds is a second test and three failure paths. Key the concealed code the way a cashier will key it, on the till that will be used, then try the cases that generate the support calls: a code keyed wrong twice, a card already redeemed, and a panel damaged in transit so the code cannot be read at all. If any of those has no answer, the gap is in the process rather than in the card.

Free samples are available: a sample in your material and chip goes out before any order. Confirming that the panel, the printed digits and the symbology all survive the lane costs nothing beyond that sample, and it happens before a range is committed.

08. Where Kaway fits

Kaway manufactures in its own plant in Dongguan, China. For a gift programme that means the identifier is printed as part of the run, card by card, from the client's data file, and that the concealed panel, the signature panel, the magnetic stripe and the NFC option are set out on the gift cards page rather than quoted as extras. Quote requests are answered the same working day, so a numbering question sent with a specification does not wait on a schedule.

09. References

Send the platform's card data specification, with the digit count, the symbology and whether a concealed code is part of it, and the numbering can be reviewed against what the press and the file will actually guarantee: put it in front of Kaway Group.

About this guide

Published by Kaway Group. The date on this page shows when this guide was last updated. If anything here is out of date, or contradicts what your integrator tells you, tell us and we will correct it.

Start with a sample.

Ask for a free sample in your material and chip.