Store Credit and Gift Cards When Merging Shopify Customers

By The Twinfold teamPublished Updated 8 min read
Short answer

Shopify won't merge two customer profiles if either one has a store credit account, and a store credit account can't be transferred to another owner. Gift cards are listed as merged data in Shopify's help docs, but the API can refuse a merge because a customer has gift cards. To consolidate value, debit the duplicate's store credit and issue the same amount on the profile the customer signs in with.

Key takeaways
  • Shopify's help docs say profiles can't be merged if either one has a store credit account.
  • Shopify's API describes a store credit account as having an owner that cannot be transferred, and the admin offers only Credit and Debit adjustments, not account removal.
  • Store credit is redeemable only when the customer signs in through new customer accounts, so credit on a profile the customer doesn't sign in with is effectively stranded.
  • Gift cards are spent with their code at checkout, so a gift card on the wrong profile still works, while store credit on the wrong profile doesn't.
  • Issuing store credit to a profile creates a store credit account, which blocks every future merge involving that profile, so merge duplicates before you issue credit.

Shopify won't merge two customer profiles if either one has a store credit account, and there's no setting that changes this. Store credit can't be handed from one profile to another either, because Shopify ties each store credit account to an owner that can't be transferred. Gift cards are a softer problem: Shopify's help docs say they merge, its API says some merges with gift cards are refused, and in both cases the gift card itself keeps working. If you're cleaning up duplicates in a store that uses store credit, the practical answer is to move the value by hand and keep the two profiles linked.

This guide explains the rules for both, why the difference matters to your customers, and the safe order of operations.

Can you merge Shopify customers who have store credit?

No. Shopify's help page on merging customer profiles lists "has a store credit account" among the conditions that block a merge, and it only takes one profile in the pair. The condition is the account, not the balance.

That distinction matters because of how store credit accounts work. According to Shopify's store credit documentation, the Store credit section of a customer profile offers two adjustments: Credit, which adds to the balance, and Debit, which reduces it. The button reads Issue credit or Adjust credit depending on whether the account already exists, which tells you the first credit creates the account. There's no documented way to close or delete it. Shopify's developer reference for the StoreCreditAccount object adds that the account "has an owner that cannot be transferred."

Put those together and a profile that has ever been given store credit should be treated as permanently unmergeable, even if its balance is now zero. Shopify doesn't state outright whether a zero-balance account still blocks a merge, so if you want certainty, try a single pair before you plan a cleanup around it.

For the full list of conditions that stop a merge, see why Shopify won't merge some customers.

What happens to gift cards when Shopify merges customers?

It depends on which Shopify document you read. The help page on merging lists Gift cards among the data that gets combined into one profile, alongside orders, addresses, tags and notes. But Shopify's GraphQL Admin API has a CUSTOMER_HAS_GIFT_CARDS merge error, described as "The customer cannot be merged because it has associated gift cards."

So expect most gift card profiles to merge and some to be refused, without a documented rule for which. The good news is that a gift card's link to a customer matters much less than store credit's. Shopify's help docs say a customer redeems a gift card by entering its unique code at checkout. Whoever holds the code can spend the balance, whichever profile the card is filed under.

If a merge is refused because of gift cards, you have two options:

  • Leave it. The gift card works with its code, so the customer loses nothing. Link the two profiles with a note.
  • Reassign the card, then retry. In the admin, Shopify documents adding a customer to a gift card that has none, not changing an existing one. Through the API, the giftCardUpdate mutation accepts a customerId that "replaces the current customer, if any." A developer can move the card to the main profile and then retry the merge. Shopify doesn't document whether that clears the merge error, so test one pair first.

Don't deactivate a gift card to get a merge through. Shopify's gift card docs say deactivation is permanent: a deactivated card can't be reactivated, reloaded or refunded onto, and gift cards can't be deleted.

Store credit and gift cards compared

The two look similar to a customer, but they behave very differently during a cleanup. This table pulls together what Shopify's help and developer docs say about each.

Store creditGift card
Blocks a customer merge?Yes, if either profile has a store credit accountSometimes; the API has a CUSTOMER_HAS_GIFT_CARDS error
How the customer spends itSigned in through new customer accounts or Shop Pay, or at POSBy entering the code at checkout or POS
Works if it's on the "wrong" profile?No, only for the profile they sign in asYes, the code works regardless
Can you move it to another profile?No; the account owner can't be transferredAPI can replace the gift card's customer
Can you change the balance in the admin?Yes, with Credit and DebitNo; balances change through redemption, refunds or the API
ExpirySet per issuance; no store-wide defaultOptional expiry; Edit expiry date on the card
Multiple currenciesSeparate balance per currency; only the checkout currency's balance showsStore currency cards redeem in any currency; local currency cards depend on cross-currency redemption
Can it be deleted?No documented way to remove the accountNo; deactivation is permanent

The third row is the one that matters to customers. Shopify's store credit docs say customers can use store credit online only when they're signed in through customer accounts or using Shop Pay, and that store credit isn't available for legacy customer accounts. If a customer has two profiles and their credit sits on the one they never sign in as, they can't use it online, even though you can see it in the admin.

How do you move store credit to the main profile?

Debit the duplicate and credit the main profile for the same amount, currency and expiry. This doesn't merge anything, but it puts the value where the customer can spend it. You need the Store credit and Edit store credit staff permissions for both steps.

  1. Record the balance. On the duplicate profile, click the store credit balance in the Store credit section. Note the balance in each currency and check Expirable amounts for any credit with an expiry date. Shopify spends the credit that expires first, so expiry dates are worth keeping.
  2. Debit the duplicate. In the Store credit section, click Edit, choose Debit under Adjustment, select the currency if you have more than one, enter the amount, click Add note, write something like "Moved to profile jane@example.com, same customer", and click Adjust credit.
  3. Credit the main profile. On the profile the customer signs in with, click Edit in Store credit, choose Credit, select the same currency, enter the same amount, set the same Expiration date, add a matching note, and click Issue credit or Adjust credit.
  4. Repeat for each currency and each expiry date.
  5. Decide on notification. Shopify lets you tick Notify customer when issuing credit. Since the customer's total isn't changing, many stores skip the email and mention it only if the customer asks.
  6. Link the profiles. Add a note and a shared tag such as merge-blocked to both, so nobody tries to merge them again.

Internal notes on store credit transactions can be up to 5,000 characters and can't be edited after you save, so write them carefully. They're visible to staff with permission to view store credit transactions, not to customers.

Here's a worked example. A customer has two profiles: one from a POS sale with a phone number, holding $40 USD of goodwill credit expiring March 31, and one they created online, which is the profile they sign in with. You debit $40 from the POS profile, issue $40 on the online profile with a March 31 expiry, and note both. The customer can now apply the $40 at checkout. Both profiles still exist, and both now have store credit accounts, so neither can be merged with anything.

That last point is the trap. Issuing credit to the main profile creates a store credit account there too, which blocks every future merge that involves it. If the main profile has other duplicates that aren't blocked, merge those first, then move the credit.

How do you stop store credit from blocking future merges?

Clean up duplicates before you issue store credit, not after. Every new store credit account makes one more profile permanently unmergeable, so the order of work matters more than the method.

A few habits keep the number of blocked pairs low:

  • Merge before a credit campaign. If you're about to issue loyalty credit, referral rewards or goodwill credit to a segment, run your duplicate cleanup first. If your loyalty program keeps points in an app before paying them out, consolidate loyalty points before you merge too. Shopify lets you build customer segments on store credit balance, so you can also check afterward which profiles have credit.
  • Search before you refund to store credit. Refunding to store credit puts credit on a customer profile. If that customer has a second profile they sign in with, the credit can land somewhere they can't spend it online. Check for a duplicate first.
  • Prefer a gift card or discount when a duplicate is likely. A gift card works by code, so it survives duplicate profiles. Shopify's help docs also suggest a currency-amount discount code as an alternative to promotional gift cards.
  • Watch the cap. Shopify says you can issue less than $15,000 USD of store credit on a single customer account. Consolidating two large balances onto one profile can run into it.

If you're weighing whether to delete a duplicate rather than live with it, delete or merge walks through when removal makes sense. A profile with store credit is rarely one of them.

How Twinfold helps

Twinfold is a Shopify app by NewClick (independent, not made by Shopify) that finds duplicate customers and merges them in bulk through Shopify's own customer merge. It can't merge a profile Shopify refuses, and it doesn't move store credit or gift cards. What it does is tell you which groups are blocked and why before anything changes.

Every merge is previewed with Shopify first. When Shopify refuses a group because of store credit or gift cards, Twinfold shows that reason in the Can't merge tab and leaves those profiles unchanged. Scanning is free on every plan, so you can scan, merge the groups that aren't blocked, and get a short list of store credit pairs to handle by hand with the steps above. For the merge process itself, see how to merge duplicate customers in Shopify.

Store credit is the one merge blocker that customers feel directly, because it decides whether they can spend money you already owe them. Move the balance to the profile they sign in with, link the two profiles, and merge your other duplicates before you issue more credit.

Frequently asked questions

Can you merge Shopify customers who have store credit?

No. Shopify's help documentation lists a store credit account on either profile as a condition that blocks the merge. The block is about the account existing, not the balance, and Shopify doesn't document a way to close an account, so zeroing the balance shouldn't be expected to unblock it.

Can you transfer store credit from one Shopify customer to another?

Not directly. Shopify's API says a store credit account's owner can't be transferred. You can move the value by hand: debit the amount from one profile and issue the same amount, in the same currency and with the same expiry, on the other, adding an internal note to both transactions.

Do gift cards move when Shopify merges customers?

Shopify's help page lists gift cards among the data merged into one profile. Its API also has a CUSTOMER_HAS_GIFT_CARDS merge error, described as the customer having associated gift cards, so some merges with gift cards are refused. Either way, a gift card keeps working, because customers redeem it by entering its code at checkout.

Should I delete a duplicate customer that has store credit?

Not before you move the balance, and usually not at all. Deleting the profile takes its store credit with it, and if the profile has orders, deleting it isn't the right tool. Debit the balance, reissue it on the active profile, then keep the duplicate and cross-reference the two with a note and a tag.

Sources

  1. Shopify Help Center: Managing customer profiles (merging)
  2. Shopify Help Center: Store credit
  3. Shopify Help Center: Managing created gift cards
  4. Shopify.dev: StoreCreditAccount object
  5. Shopify.dev: CustomerMergeErrorCode enum
  6. Shopify.dev: GiftCardUpdateInput