Load the codes printed on your own gift cards from a CSV file, check them in a preview, then import them.
Where to find itMarketing ToolsGift cardsImport physical gift cards
Before you start
On every plan, once gift cards are on or your shop has issued a card. Your shop must take orders.
Needs
You turn this on
Who can use this
Shop owner, Shop Manager
Sell plastic or paper gift cards in your shop and let customers spend them online. You load the codes printed on the cards from a CSV file. Each code becomes an active gift card with its balance, ready to pay at checkout.
The card is usable as soon as it is imported. Nothing is sent to anyone, so only hand out cards you have sold.
Prepare the codes
Checkout can only find codes in the platform's format, so the codes printed on your cards must follow it:
16 characters, digits and capital letters. The letters I, L, O and U are not used. Dashes and spaces are ignored, so K7MX-2QPA-9RTB-4HWD and K7MX2QPA9RTB4HWD are the same code.
Random. A code with fewer than 6 different characters, such as AAAA-AAAA-AAAA-AAAB, is refused as too easy to guess.
Unique. A code already used by another card of your shop is refused.
Have your printer generate random codes. Keep the file safe: anyone with a code can spend the card.
Make the CSV file
The first row names the columns, in any order and in any case.
Column
Required
What to enter
code
Yes
The printed code. Also accepted as "card code", "gift card code" or "card number"
balance
Yes
The card's value, above zero, with no more decimals than your currency has. Also accepted as "amount", "value" or "initial balance"
currency
No
Your shop currency. Leave it blank for the same. Any other currency is refused, because checkout accepts gift cards only in your shop currency
expiry
No
The last day the card can be used, written YYYY-MM-DD, or never. Blank uses your New cards are valid for setting. The card is valid to the end of that day in your shop's time zone
note
No
Your own note, such as a batch or a store. Shown in the panel only
code,balance,expiry,note
K7MX-2QPA-9RTB-4HWD,100,2027-12-31,Counter stock batch A
3NVF-8KQZ-T2WB-6JRC,250,never,Counter stock batch A
A file holds up to 10,000 cards and 2 MB.
Import the file
Open the import
Open Marketing Tools › Gift cards and scroll to Import physical gift cards.
Check the file
Choose your CSV file.
Select Check the file. Nothing is created yet.
Read the preview
The preview counts the rows: "… rows: … cards ready to import (… AED), … already imported, … with problems."
Rows with problems are listed by line number, with the last 4 characters of the code and the problem. Only the first 200 are listed. The full code is never shown.
Import
Select Import … cards. Only the valid rows are imported. The page answers "… gift cards imported. … were already imported, … had problems and were left out."
The preview is kept for one hour. After that you see "This import has expired. Upload the file again."
To fix the rows with problems, correct them in your file and import the whole file again. Cards imported the first time are counted as "already imported" and skipped, so nothing is created twice.
Problems the preview can list
Message
What to do
"Not a valid gift card code: 16 letters and digits (dashes and spaces are ignored)."
"This code is too easy to guess. Use random codes for your cards."
Use a random code
"The same code is already on line … of this file."
Remove the duplicate
"This code is already used by another gift card."
The code belongs to a card your shop already has, and not one imported with the same value
"The balance must be a number above zero."
Enter a value
"The balance has more decimals than the currency allows (…)."
Round the value
"The balance is above the most a gift card can hold (…)."
Use a lower value
"Gift cards are in your shop currency (…): a card in … cannot be used at checkout."
Clear the currency or use yours
"The expiry must be a date written YYYY-MM-DD, or "never"."
Fix the date
"The expiry date has passed."
Use a later date
A whole file can be refused with "The file is too large: at most 10000 cards (2 MB) per import.", "The first row must name the columns: code and balance (currency, expiry and note are optional).", or "The file is empty."
After the import
In the list. Imported cards show Imported under Issued. A tile under Outstanding balance shows how much of it is on imported physical cards. See The gift cards list.
On the card's page.Issued reads Imported physical card, and your note shows as Note. There is no Send the card to the recipient again, because the card has no recipient. You can still adjust the balance and void the card. See A gift card's page.
Spending. The holder enters the code at checkout or checks its balance on your website, like any other card. See Gift cards as payment.
Reminders. Imported cards get no expiry reminder: nobody's contact details are attached to them.
Records. Each import is kept in the audit log with its counts. The codes are stored in a form that cannot be read back, so keep your own copy.
Webhooks.gift_card.issued is sent for each imported card.