Automating Gift Cards with Shopify Flow
Expresso Gift Cards works with Shopify Flow, Shopify's free automation app. Flow can issue a gift card when something happens in your store, and your Expresso imports can start workflows of your own.
| Type | Name | What it does |
|---|---|---|
| Action | Issue gift card | Creates a gift card for a customer and emails it to them |
| Trigger | Gift card issued | Runs for each gift card an import creates for a customer |
| Trigger | Gift card batch completed | Runs once when an import finishes |
Before you start
Install Shopify Flow from the Shopify App Store. There's nothing to set up in Expresso. The action and triggers appear in Flow on their own.
The action works on every plan. On the free plan, gift cards issued by Flow count toward your 25 a month.
Issue gift cards automatically
Use Issue gift card to give a customer a gift card from any workflow, for example when a customer is tagged VIP or places a large order.
- In your Shopify admin, open Flow and click Create workflow.
- Choose a trigger, such as Customer tags added or Order created.
- Optional: add a condition, such as "customer tags include VIP" or "order total is at least 500".
- Add an action, search for Issue gift card and select it. It's listed under Expresso Gift Cards.
- Fill in the fields below.
- Click Turn on workflow.
| Field | What to enter |
|---|---|
| Customer | Who gets the gift card, taken from your trigger (for example, the customer who placed the order) |
| Amount | The value in your store's currency, such as 25 or 25.50 |
| Message to the customer | Optional. Shown in the gift card email |
| Expires after (days) | Optional. A whole number from 1 to 3650, counted from the day the workflow runs, in your store's timezone. Leave it empty for a gift card that doesn't expire |
| Don't email the customer | Optional. Creates the gift card without Shopify's gift card email. The gift card is still linked to the customer |
| Internal note | Optional. Visible only to staff in your Shopify admin. If you leave it empty, it reads "Issued by Shopify Flow (Expresso Gift Cards)" |
Gift cards issued by Flow appear in your Shopify admin under Products > Gift cards. They aren't in Expresso's History tab, which lists imports.
Later steps in the same workflow can use the new gift card's ID, last four characters, amount, currency and expiry date, and whether the email was sent.
If Shopify Flow retries a step, Expresso doesn't create a second gift card. Each workflow run issues at most one.
Start workflows from your imports
Both triggers run for imports you create in the app, including scheduled imports. A trigger only runs for imports that finish after you turn the workflow on.
Gift card issued
Runs once for each gift card an import creates for a customer. It doesn't run for gift cards without a customer, or for gift cards from the Issue gift card action.
Your workflow can use:
- The customer who received the gift card, including their email, tags and other details
- Gift card ID, Last characters (the last four characters of the code), Amount and Currency
- Message (empty if there isn't one)
- Expires on (
YYYY-MM-DD, empty if the gift card doesn't expire) - Import ID
Gift card batch completed
Runs once when an import finishes. Your workflow can use:
- Gift cards requested, Gift cards created and Gift cards failed
- Total value and Currency of the gift cards created
- Status, which is
success,partialorfailed - Scheduled, true when the import ran on a schedule
- Emails sent, true when recipients were emailed their gift cards
- Import ID
Example workflows
- Reward VIP customers. Customer tags added → condition: tags include
VIP→ Issue gift card ($25, message "Thanks for being a VIP!") - Thank big spenders. Order created → condition: order total is at least $500 → Issue gift card ($20, expires after 90 days)
- Tag gift card recipients. Gift card issued → Add customer tags (
gift-card-recipient) - Get alerted about failures. Gift card batch completed → condition: Status is not
success→ Send internal email with the number of failed gift cards and the Import ID
Troubleshooting
To see what happened, open the workflow in Shopify Flow and check Recent runs. If the Issue gift card step fails, the run shows the reason:
- "Expresso Gift Cards' free plan has no gift cards left this month..." Your 25 free gift cards for the month are used. Open Expresso Gift Cards in your Shopify admin and choose a plan, or wait for the reset on the 1st. Then run the workflow again.
- "Expresso Gift Cards can't reach your store..." Open Expresso Gift Cards in your Shopify admin once, then run the workflow again.
- "Shopify couldn't create the gift card: ..." Shopify rejected the gift card, for example because the amount is above your store's gift card limit. The rest of the message says why.
- "Choose the customer who should receive the gift card." or "Enter a gift card amount greater than 0." Check the Customer and Amount fields.
- "Expires after (days) must be a whole number from 1 to 3650." Fix Expires after (days), or leave it empty.
- "Expresso Gift Cards hit a temporary problem. Shopify Flow will retry this step." Nothing to do. Flow retries the step on its own.
If a trigger doesn't run, check that your workflow is turned on. For Gift card issued, also check that the gift card is linked to a customer.
Questions? Email support@anatolilabs.com.
Was this article helpful?
Your feedback helps us improve our documentation.

