Hi everyone,
I’m working with a client who wants to sell two types of gift cards:
- Electronic Gift Cards – standard Shopify gift cards, sent via email with the usual gift card number, optional message, and the ability to schedule delivery for a future date.
- Physical Gift Cards – for an additional $10, customers can provide their shipping address, and we’ll mail them a plastic gift card with the same code printed on it so they can gift it in person.
We’ve set this up using product variants — one for the digital version, and one for the physical version (with the added cost and shipping). The online sales flow works fine.
The problem:
Once the order is placed, we need to print the actual gift card number on the physical card before shipping it. However, in Shopify Admin, we can only see the last 4 digits of the code, the rest is hidden for security. Exporting gift card data also shows only the last 4 digits.
Our goal is to be able to:
- Generate the codes via Shopify’s normal purchase flow
- Access the full codes after purchase
- Export them in bulk so we can print them on stickers and attach them to pre-designed plastic gift cards for shipping
- Avoid manually writing codes or maintaining a separate code file outside Shopify
My questions:
- Is there any way to retrieve the full gift card codes from Shopify after they are issued?
- Can this be done through the Shopify API (Admin API / GraphQL / REST)?
- Is there an approved workflow for businesses that need to issue physical cards tied to Shopify’s gift card system?
I’ve searched the forum but haven’t found any discussion that addresses this exact use case. Any guidance from the Shopify team or other developers would be greatly appreciated.
Thanks in advance!