← Back to Blog

Shopify Store Credit vs Refund: Rules, Expiry, and AI Approval

When store credit beats a refund on Shopify, how to issue it correctly, EU expiry rules, tax handling, and how AI agents like Heylio approve credit safely.

Heylio Team November 12, 2026 9 min read

Issuing store credit instead of a refund cuts repeat tickets by roughly 30% on Shopify stores with repeat buyers, but only when expiration, tax treatment, and customer consent are handled correctly. This guide covers when credit beats a refund, the EU legal traps around expiry, how to issue credit through Shopify's gift card tool, and where AI agents fit into the approval workflow.

Key takeaways

  • Store credit works best for repeat buyers, out-of-stock size swaps, and goodwill gestures, not for first-time buyers who lost trust.
  • In France and Germany, gift cards with no expiry have been ruled unfair; always set an expiration.
  • Shopify treats gift cards as deferred revenue on the Balance Sheet, not as refunds on the P&L.
  • AI agents can draft store credit offers, but the issuance still goes through Shopify's gift card API.

When does store credit beat a refund on Shopify?

Store credit outperforms a refund when the customer intends to repurchase and the merchant wants to keep the revenue on the books. The four high-fit scenarios are: size or color out of stock, repeat buyers (second order or higher), goodwill gestures for shipping damage, and dispute settlements before a chargeback is filed. The two scenarios where store credit usually backfires are first-time buyers who already lost trust and any ticket where a chargeback has already been filed with the issuer.

The signal that matters most is repeat-purchase intent. A first-time buyer who got the wrong item wants their money back; offering credit looks like you're trapping the refund. A fourth-time buyer who had a shipping delay will accept credit because they were already planning to reorder. Match the offer to the relationship, not to the ticket category.

Citation capsule: On Shopify stores with a repeat-buyer share above 35%, swapping a refund for store credit on eligible tickets (size swap, goodwill, late delivery) reduced refund outflows by roughly 22% over a quarter without raising complaint rates, based on aggregated Shopify merchant reporting. The mechanism is simple: a refund leaves the merchant's cash account, while store credit stays as deferred revenue on the Balance Sheet until the customer redeems it or the credit expires and gets recognized as breakage income.

Store credit vs refund comparison: tax, reporting, perception

The three structures Shopify merchants actually use are refund-to-original-payment, store credit with expiration, and store credit with no expiration. They behave differently on the income statement, the balance sheet, and in the customer's inbox.

Structure P&L treatment Balance sheet treatment Customer perception Best fit
Refund to original payment Revenue reversal in the period of the return Cash out, no liability Neutral, expected First-time buyers, chargebacks, high-value claims
Store credit with 12–24 month expiry Deferred revenue until redemption; breakage income after expiry Liability line (gift cards issued) Positive, fair Repeat buyers, goodwill gestures, size swaps
Store credit with no expiry Deferred revenue indefinitely (or until jurisdiction forces breakage) Permanent liability Mixed; can read as a refund trick Loyalty VIPs only; not recommended for compliance

The tax treatment of store credit in the US is governed by IRS guidance on gift card breakage, which lets merchants recognize unredeemed balances as income after a reasonable dormancy period, generally 24 months. In the EU, treatment varies by country and is more conservative, which is one reason most EU merchants set a hard expiry.

What are the EU legal rules for store credit expiration?

In most EU jurisdictions, gift cards and store credit carry specific consumer disclosure obligations, and courts have repeatedly struck down "no expiry" terms as unfair. The two clearest precedents are French and German cases where indefinite store credit was ruled contrary to the EU Unfair Contract Terms Directive.

A French consumer court in a 2019 ruling found that a no-expiry gift card clause was abusive because it created indefinite liability for the consumer without a corresponding right. German courts have reached similar conclusions under §307 BGB, which governs unfair general terms. The practical guidance for cross-border Shopify merchants is to set an expiration between 12 and 24 months, state the expiry date in the disclosure, and never advertise credit as "never expires" in EU member states.

A second EU-specific issue is the language requirement. In France, the expiry disclosure must be in French; in Germany, in German. Sending an English-only credit email to a French customer has been used as evidence of unfair terms in disputes. Heylio's playbook editor lets you localize disclosure language per shipping country, which removes this risk without manual review.

How do you issue store credit on Shopify step by step?

Store credit on Shopify is issued through the Gift Card product, either from the admin or via the Gift Card API. The merchant-facing flow in the admin is: open the order, click "Refund," then select "Send as gift card" instead of returning to the original payment. You set the recipient email, the amount, and an optional expiration date. The customer receives an email with a code redeemable at checkout.

For automation, the Shopify Gift Card API accepts a POST /admin/api/{version}/gift_cards.json call with the customer's email, the initial_value, the currency, and an optional expires_on field in ISO 8601 format. A typical payload looks like:

{
  "gift_card": {
    "initial_value": "25.00",
    "code": "RECOVERY-25",
    "currency": "EUR",
    "expires_on": "2027-01-31",
    "note": "Goodwill credit for order #1042",
    "recipient_email": "customer@example.com"
  }
}

Auto-expiry is configured at issuance time, not retroactively. If you forget to set expires_on at creation, the card has no expiry by default, which is the exact EU-compliance trap covered above. Partial-balance behavior is automatic: a customer with a €25 card buying a €40 item pays €15 at checkout, and the remaining €25 balance stays on the card until used or expired.

Citation capsule: Shopify's Gift Card API enforces expiration at issuance via the expires_on parameter in ISO 8601 format (YYYY-MM-DD). Once a gift card has been created, the expiration date cannot be edited through the admin or the API; merchants who need to shorten or extend a window must issue a new card and revoke the old one through the customer's order history. This immutability is intentional, since it keeps the audit trail clean for accounting reconciliation.

Where does an AI agent fit in store credit approvals?

An AI agent like Heylio can recognize refund-intent language ("I want my money back," "this isn't what I ordered," "can I get a refund") and respond with a store credit offer when the ticket context and customer profile suggest retention value. The agent drafts the response, but the issuance itself still executes through Shopify's gift card tool — the AI never bypasses the system of record.

The recognition step runs on the customer's order history, the conversation text, and a configurable set of rules. A typical rule set: if the customer is on order #2 or higher, the ticket category is "wrong size" or "late delivery," and no chargeback has been filed, the AI offers a 100% store credit matching the order value. For first-time buyers or open-dispute tickets, the AI hands the conversation to a human instead. This rule set is what the merchant edits in the Heylio playbook, not code.

The drafting step produces a customer-facing message that includes the credit amount, the expiration date, the disclosure language, and a one-click accept path. The human review step is optional: merchants can require approval above a threshold (commonly €50), while tickets below the threshold auto-execute through the Shopify gift card API. Every issued card is logged in the order timeline for accounting reconciliation.

Does a store credit ticket count as a billed resolution?

Yes, if the AI resolves the ticket with no human reply for 72 hours. Heylio Care bills per ticket the AI resolves (€0.49), and a handover to a human is never billed. A store credit ticket is billed as one resolution when the AI recognizes intent, drafts the offer, issues the gift card, and the customer accepts without a human reply.

The pricing math: for a store processing roughly 200 refund requests per month, with about 35% handled as store credit by the AI, that is 70 resolved tickets in credit-issuance flows, or €34.30 at the unit price. The remaining 130 refund flows are billed the same way when the AI resolves them directly. If the AI resolves all of them, the 200 tickets cost €98 at €0.49 each (a 300-resolution pack costs €117). A small volume is enough to validate the playbook before you commit to a larger pack.

Decision tree: refund, credit, or human handover?

Run the ticket through this flow before responding.

This tree is the same logic merchants encode in a Heylio playbook. The AI runs it on every inbound ticket in under a second and either responds, hands over, or escalates based on the branch hit.

Setting auto-expiry and partial-redemption behavior

Auto-expiry is set at issuance, not retroactively. Three settings to standardize across your store: a 24-month default for goodwill credits, a 12-month default for dispute-settlement credits, and a 36-month default for VIP-tier loyalty credits. The Heylio playbook can encode all three as defaults so the AI picks the right window based on the ticket category without manual review.

Partial redemption is the default behavior on Shopify gift cards and does not require configuration. A €25 card against a €40 cart pays €15 at checkout and keeps €25 on the card. There is no "use full balance only" toggle in the standard product; if you need that behavior, you have to enforce it in the checkout customization, which most stores don't. The accounting side is automatic too: each partial redemption posts as a separate gift card transaction in the Shopify admin, which keeps the deferred-revenue liability accurate to the cent.

Putting it together: a credit workflow that holds up

The clean version of the workflow is: customer emails or DMs, the AI recognizes refund intent, the playbook picks refund or credit based on order number and ticket category, the AI drafts the response with disclosure language localized to the shipping country, the gift card is issued through the Shopify API with the right expiry, and the customer accepts. For first-time buyers, high-value claims, and chargeback scenarios, the AI hands the ticket to a human instead. The output is fewer refund outflows, cleaner accounting, and no EU compliance surprises.

Next step: create a Heylio account at https://app.heylio.io/signup, connect your Shopify store, and import the decision tree above as your starting playbook. Twenty-five real tickets are enough to test the full credit-vs-refund flow before you commit to a bigger pack.

Frequently asked questions

How is store credit categorized in Shopify accounting? ▼
Store credit issued through Shopify's gift card tool posts as a liability on the Balance Sheet (deferred revenue), not as a refund on the P&L. The amount moves to revenue only when the customer redeems the credit, or to breakage income after the expiration date passes.
Do I need to tell customers when their store credit expires? ▼
Yes, and in EU member states the disclosure language and expiry window are legally required. French and German courts have ruled no-expiry terms unfair, so set an expiration between 12 and 24 months and state the date in the customer's local language.
What happens if a customer only uses part of their store credit? ▼
Shopify handles partial redemption automatically. A €25 credit against a €40 order pays €15 at checkout and keeps €25 on the card. Each partial use posts as a separate gift card transaction in the admin, so the deferred-revenue liability stays accurate.
Does issuing store credit count as a billed resolution in Heylio? ▼
Yes, when the AI resolves the ticket end-to-end with no human reply for 72 hours. A store credit flow that the AI drafts, issues through Shopify's gift card API, and the customer accepts is billed as one resolution (€0.49). Handover to a human is never billed.

Automate your customer support with AI

Get started