Last updated: 2026-05-11 16:46:03
This guide explains how to use Import gift cards in the embedded Shopify app. It matches how the app validates rows and talks to Shopify.
customer_email or recipient_email, that address must belong to a customer already created in Shopify Admin (Customers) for your shop. The app looks up customers by email via the Shopify Admin API. If the email is not found, the row fails with an error such as "Customer not found for email: …" or "Recipient customer not found for email: …".customer_id or customer_email (one is enough; if both are set, customer_id is used when present). For a recipient (optional): provide recipient_id or recipient_email (same rule).initial_value is required on every data row. It must be a positive number (e.g. 50 or 50.00). This is the only column the file must always include in the header and in each row you want to import..csv file with a header row as the first line. Column names are matched case-insensitively (e.g. initial_value or Initial_Value).| Column | Required? | Notes |
|---|---|---|
initial_value | Yes | Positive numeric balance for the gift card. |
code | No | Custom code; leave empty for Shopify to auto-generate. |
customer_id | No* | Numeric Shopify customer ID. |
customer_email | No* | Must match an existing customer in your store if customer_id is empty. |
recipient_id | No | Numeric recipient customer ID (optional). |
recipient_email | No | Must match an existing customer if recipient_id is empty (optional). |
recipient_message | No | Message for the recipient. |
recipient_preferred_name | No | Display name for the recipient. |
recipient_send_notification_at | No | ISO 8601 datetime (e.g. 2024-10-01T12:00:00Z). |
*You may omit both customer_id and customer_email only if you intentionally create a gift card without attaching a customer (Shopify allows that). To assign the card to someone in your store, you must supply one of them—and if you use email, that person must already exist as a customer in Shopify.
recipient_id / recipient_email), the customer is the person receiving the gift card.customer_email / recipient_email must exist in Shopify Admin → Customers. Every row must have a valid initial_value..csv and start the import (or preview if offered).If you use Scheduled imports, the CSV rules are the same. Follow the Scheduled imports tab in the app for upload and scheduling.
| Message (or similar) | Cause |
|---|---|
Missing required columns: initial_value | First row must include the initial_value header. |
Missing required field (initial_value) | Empty initial_value on a data row. |
Invalid initial_value | Not a positive number. |
| Customer not found for email: … | customer_email does not match any customer in your store. |
| Recipient customer not found for email: … | recipient_email does not match any customer in your store. |
Invalid customer_id / recipient_id | Value must be numeric when provided. |
Invalid recipient_send_notification_at | Use a valid ISO 8601 datetime string. |
| Code has already been taken | Duplicate code in the file or already used in the shop. |
initial_value on each row.customer_id or customer_email (and optionally recipient_id or recipient_email) following the giver/receiver rules above.For exact caps (rows per file, MB, timeout), use the numbers shown on the Import Gift Cards page in the app.