---
title: "Refund an order as store credit on Shopify POS | Loopz Gift Cards"
description: "Refund a returned order directly from Shopify POS as a store credit gift card, record the returned items in Shopify, and leave the original payment method untouched."
canonical: https://www.loopz.io/guides/refund-an-order-as-store-credit-on-shopify-pos
---

With the Loopz Gift Cards POS extension you can refund an order as store credit right from Shopify POS. Loopz issues a store credit gift card to the customer for the refunded amount, sends them a notification, and records the refund on the Shopify order. Items the customer brings back can be recorded as a Shopify return at the same time. The original payment method is never charged back.

## Before you start

- The Loopz Gift Cards app must be installed on your store, with a gift card program set up and an active subscription.
- The **Refund as store credit gift card** action must be turned on for your POS in the Shopify admin. See the next section.
- Recording items as returns needs Shopify's returns permission. Stores connected to Loopz before the return option was added may not have granted it yet, in which case the **Mark as return** switch doesn't appear. Contact Loopz support and we'll help you update the app's permissions.

## Turn on the refund action in Shopify POS

The action is a POS app extension. Shopify lists it in the POS editor, where you choose which app actions your POS shows. You only need to do this once per store.

### Open the POS editor

In the Shopify admin, open the **Point of Sale** sales channel and click **Edit Point of Sale** in the **Customize the in-store experience** card.

![Point of Sale channel page with the Edit Point of Sale button](/website/images/guides/refund-an-order-as-store-credit-on-shopify-pos/01-point-of-sale-channel.png)

### Select the Loopz action

Click the **Apps** icon, the last icon in the toolbar at the top left, to open **Apps for Point of Sale**. Under **Loopz Gift Cards**, click **Refund as store credit gift card**.

![Apps for Point of Sale panel listing the Loopz refund action](/website/images/guides/refund-an-order-as-store-credit-on-shopify-pos/02-pos-editor-apps.png)

### Activate it on order details

In the panel on the right, turn on **Activate on** for **Order details** and click **Save**. The action shows up in the order actions on your POS devices the next time they sync. If you don't see it, close and reopen the order, or restart the POS app.

![Activate on toggle for Order details next to the Save button](/website/images/guides/refund-an-order-as-store-credit-on-shopify-pos/03-activate-on-order-details.png)

## 1. Open the order and choose the refund action

In Shopify POS, open **Orders** and tap the order you want to refund. The order's actions open at the bottom of the screen. Tap **Refund as store credit gift card** (by Loopz Gift Cards).

![Refund as store credit gift card action on a Shopify POS order](/website/images/guides/refund-an-order-as-store-credit-on-shopify-pos/04-order-actions.png)

## 2. Choose the items to refund

The refund screen lists the order's items, pre-selected at their full refundable quantity. Use the steppers to change the quantity of each item to refund, or set an item to 0 to leave it out. Items that were already refunded show a **Refunded** badge.

An item that had a discount of its own shows its discounted price, with the original price struck through below it. Order-level discounts, such as a discount code for the whole order, are listed under **Discounts** below the subtotal.

The screenshots in this step are from order #1133, which has been fulfilled. Orders that haven't been fulfilled yet and orders whose payment is only authorized work a little differently, as described near the end of this guide.

Below each item, the **Mark as return** switch decides how Loopz records the refunded units on the Shopify order:

- **On**: the units are recorded as a Shopify return that is refunded to store credit. Shopify shows the items as returned, and they count in your returns reports.
- **Off**: the units are recorded as a regular refund, without a return.

The switch is on by default for physical products. It's only offered for units that have been fulfilled, so on an order that hasn't shipped yet the items are refunded without a return.

When an item is marked as return, two more options appear below it:

- **Restock**: puts the returned units back into inventory at the location of this POS. It's on by default. Turn it off for items that can't be sold again, such as damaged ones, and Shopify records them as not restocked.
- **Return reason**: why the customer returned the item. Shopify shows the reason on the return and in your returns reports. It's **Other** until you pick one, with your note as the reason's details.

![Items to refund with Mark as return, Restock, and Return reason under the Milk Frother and a discounted Coffee Tamper](/website/images/guides/refund-an-order-as-store-credit-on-shopify-pos/05-items-to-refund.png)

Tap **Return reason** to pick why the customer returned the item, such as **Customer changed their mind** or **Damaged or defective**, and tap **Continue**.

![Return reason list for the Milk Frother with Customer changed their mind selected](/website/images/guides/refund-an-order-as-store-credit-on-shopify-pos/06-return-reason.png)

If the order has taxes or shipping, turn on **Include taxes** or **Include shipping** to add them to the refund. They're off by default on a fulfilled order and on by default on an order that hasn't been fulfilled yet. The **Total refund** updates as you go, and the refund button always shows the exact amount that will be issued as store credit.

Shipping is refunded at what the customer paid for it after discounts, less any shipping already refunded. With both switches on, the tax charged on shipping is refunded too.

If your store's prices include tax, you won't see an **Include taxes** switch. The tax is already part of what the customer paid for the items and shipping, so it's always refunded with them. A **Taxes (included)** line shows how much of the refund is tax.

## 3. Set the store credit recipient

The store credit is delivered by email or text message, so the refund needs a recipient: a Shopify customer with an email address or phone number. If the order has a customer, they're pre-filled. To add or change the recipient, tap **Add gift recipient details** (or the recipient shown), then pick **Search customers** or **New customer** at the top of the screen:

- **Search customers**: type a name, email address, or phone number. Tap a customer in the results to make them the recipient.
- **New customer**: enter the customer's first and last name and an email address or phone number, then tap **Create customer**. Loopz first looks for existing customers with the same email address, phone number, or name. If it finds any, tap one to use it, or tap **Create new customer**. A customer who already has the email address or phone number has to be picked, since Shopify allows only one customer per email address and per phone number.

When you refund, the recipient becomes the order's customer before the refund is recorded in Shopify, so Shopify's emails about the refund reach them too. An order sold without a customer gets one this way.

![Store credit recipient details screen with name, email, and phone fields](/website/images/guides/refund-an-order-as-store-credit-on-shopify-pos/10-recipient-details.png)

## 4. Review the note and card design

Optionally tap **Add note** to attach an internal note to the store credit. It isn't shared with the customer, but it's saved on the refund in Shopify. The **Card design** picker shows the gift card design the store credit will be issued on; your program's store credit design is pre-selected, and you can tap it to pick a different one.

When everything looks right, tap **Refund**.

![Review screen with the recipient, note, card design, and the Refund button](/website/images/guides/refund-an-order-as-store-credit-on-shopify-pos/11-review-and-refund.png)

## 5. Order refund as store credit complete

Loopz issues a store credit gift card for the refund amount, sends the notification to the recipient, and records the refund on the Shopify order. Items marked as return show as returned on the order. The confirmation screen summarizes the order, amount, and recipient.

![Refund confirmation screen on Shopify POS](/website/images/guides/refund-an-order-as-store-credit-on-shopify-pos/12-refund-complete.png)

## How the refund works for each order status

What the refund screen offers depends on whether the order has been fulfilled and whether its payment has been captured. The three examples below are orders from the same store, whose prices include tax.

### Fulfilled orders

Order #1133 has been fulfilled, so the customer has the items. Each item can be marked as return, restocked, and given a return reason, as in step 2. **Include taxes** and **Include shipping** start off, since the customer received what they paid for. Turn them on to refund taxes or shipping too.

In this example the Coffee Tamper came back damaged, so it's marked as return with the reason **Damaged or defective** and **Restock** turned off. The Milk Frother is restocked.

![Fulfilled order with the Coffee Tamper returned without restocking and Include shipping off](/website/images/guides/refund-an-order-as-store-credit-on-shopify-pos/07-return-without-restock.png)

### Orders that haven't been fulfilled yet

Order #1132 hasn't been fulfilled, so nothing has reached the customer. Its items can only be refunded, not marked as return, and **Include taxes** and **Include shipping** start on, so the refund covers everything the customer paid. This store's prices include tax, so only the shipping switch shows. The order's **XMAS2026** discount code is listed under **Discounts**, and the refund of $54.39 matches the order total.

![Unfulfilled order with Include shipping on and the XMAS2026 discount listed](/website/images/guides/refund-an-order-as-store-credit-on-shopify-pos/08-unfulfilled-order.png)

Loopz doesn't restock items that are refunded without a return, so adjust their inventory in Shopify if needed.

### Orders whose payment is only authorized

Order #1131's payment has been authorized but not captured yet, which happens when your payment provider captures payments manually. There's nothing to refund until the payment is captured, so the refund screen only shows a message. Capture the payment on the order in the Shopify admin, then open **Refund as store credit gift card** again.

![Message that the order's payment hasn't been captured yet](/website/images/guides/refund-an-order-as-store-credit-on-shopify-pos/09-payment-not-captured.png)

## Reviewing a refund later

Reopening **Refund as store credit gift card** on a refunded order shows the refund summary and every previous refund. Tap a refund to see its amount, status, and date, how it was recorded in Shopify (as a return, a refund, or both when only some items were marked as return), and the issued gift card with its live balance.

## Show the store credit in Shopify's emails and receipts

Shopify records the refund for $0, so its emails don't say where the refund went. Loopz saves the store credit on the order, and you can show it in your Shopify emails by adding a snippet to their templates. You only need to do this once.

1. In Shopify admin, go to **Settings** → **Notifications** → **Customer notifications**.
2. Open **POS and mobile receipt** and click **Edit code**.
3. Paste the snippet below just above the line `<table class="row footer">`, so the store credit shows as its own section above the email's footer, aligned with the totals.
4. Click **Save**.
5. Repeat for **Return receipt**, which Shopify POS sends when you email a receipt for returned items, and for **Order confirmation**.

```liquid
{% comment %}
  Loopz store credit: lists the Loopz gift cards this order was refunded to.
  To change the wording, edit the text between the HTML tags below.
{% endcomment %}
{% assign loopz_credits = order.metafields.loopz.loopz_store_credit | default: metafields.loopz.loopz_store_credit %}
{% comment %} Shopify's preview and test emails use a sample order: a sample gift card is shown for it. {% endcomment %}
{% assign loopz_order_id = order.id | default: id | append: '' %}
{% assign loopz_order_email = order.email | default: email | append: '' %}
{% assign loopz_preview = false %}
{% if loopz_order_id == '820982911946154508' or loopz_order_email contains '@example.com' %}{% assign loopz_preview = true %}{% endif %}
{% if loopz_credits.size > 0 or loopz_preview %}
<table class="row">
  <tr>
    <td style="padding: 0 0 40px;">
      <center>
        <table class="container">
          <tr>
            <td>
              <table class="row">
                <tr>
                  <td class="subtotal-spacer"></td>
                  <td>
                    <table class="row">
                      {% if loopz_credits.size > 0 %}
                      {% for credit in loopz_credits %}
                      {% comment %} Heading (first gift card only), gift card number and amount {% endcomment %}
                      <tr class="subtotal-line">
                        <td class="subtotal-line__title">
                          <p>
                            {% if forloop.first %}<strong>Refunded as store credit</strong><br>{% endif %}
                            <span>Gift card {{ credit.card }}</span>
                          </p>
                        </td>
                        <td class="subtotal-line__value" align="right" valign="middle">
                          <strong>{{ credit.amount | money }}</strong>
                        </td>
                      </tr>
                      {% comment %} Reference (the Loopz gift card ID), link to the gift card page and its QR code {% endcomment %}
                      {% if credit.gift_card_id or credit.url or credit.qr_code_url %}
                      <tr class="subtotal-line">
                        <td class="subtotal-line__title" colspan="2" style="white-space: nowrap;">
                          <p style="margin: 0;">
                            {% if credit.gift_card_id %}<small>Reference: {{ credit.gift_card_id }}</small><br>{% endif %}
                            {% if credit.url %}<small><a href="{{ credit.url }}">View gift card</a></small>{% endif %}
                          </p>
                          {% if credit.qr_code_url %}<a href="{{ credit.url }}"><img src="{{ credit.qr_code_url }}" alt="Gift card QR code" width="120" height="120" style="display: block; margin-top: 8px;"></a>{% endif %}
                        </td>
                      </tr>
                      {% endif %}
                      {% endfor %}
                      {% else %}
                      {% comment %} Sample gift card, shown in previews and test emails only {% endcomment %}
                      <tr class="subtotal-line">
                        <td class="subtotal-line__title">
                          <p>
                            <strong>Refunded as store credit</strong><br>
                            <span>Gift card **** 1234</span>
                          </p>
                        </td>
                        <td class="subtotal-line__value" align="right" valign="middle">
                          <strong>{{ 2500 | money }}</strong>
                        </td>
                      </tr>
                      <tr class="subtotal-line">
                        <td class="subtotal-line__title" colspan="2" style="white-space: nowrap;">
                          <p style="margin: 0;"><small>Reference: 00000000-0000-0000-0000-000000000000</small><br><small>Sample shown in previews only</small></p>
                          <div style="width: 120px; height: 120px; margin-top: 8px; border: 1px dashed #cccccc; text-align: center; line-height: 120px; font-size: 12px; color: #999999;">QR code</div>
                        </td>
                      </tr>
                      {% endif %}
                    </table>
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </center>
    </td>
  </tr>
</table>
{% endif %}
```

The snippet only shows on orders refunded as store credit. It lists each gift card with the last 4 characters of its number, its Loopz gift card ID as a reference, the amount, and a link and QR code to open the card. In the template's preview and test emails, which use Shopify's sample order, it shows a sample gift card instead, so you can see where it appears. Comments in the snippet mark what each part shows. Change the wording to match your store's language. If your store sends notifications in more than one language, click **Translate** on the template and translate the snippet's text along with the rest of it: **Edit code** only changes your default language.

Shopify also sends the store credit recipient its refund email, whether or not items are marked as return. The recipient you picked in step 3 becomes the order's customer, and Shopify sends it by email only, to the order's email address, so a recipient with only a phone number doesn't get it. Add the snippet to the **Order refund** template as well, so this email shows the gift card.

### Printed receipts

Receipts printed from Shopify POS need their own snippet. Receipt blocks can't contain `assign` or HTML comments, and they read an order's metafields by their key alone, without the namespace.

1. In Shopify admin, go to **Sales channels** → **Point of Sale**.
2. In **Customize the in-store experience**, click **Edit** for **Receipts**.
3. In the **Footer** section, click **Add block** → **Custom Liquid**.
4. Paste the snippet below into **Liquid code** and click **Save**.

```liquid
{% if order.metafields.loopz_store_credit.size > 0 %}
<p><strong>Refunded as store credit</strong></p>
{% for credit in order.metafields.loopz_store_credit %}{% unless forloop.first %}<hr>{% endunless %}<p>Gift card {{ credit.card }}: {{ credit.amount | divided_by: 100.0 | money }}</p>{% if credit.url %}{{ credit.url | qrcode }}{% endif %}{% if credit.gift_card_id %}<p>Reference:<br>{{ credit.gift_card_id }}</p>{% endif %}{% endfor %}
{% endif %}
{% if order.name == '#1-1000' and order.customer.email == 'milesfitzsimmons@mail.com' %}
<p><strong>Refunded as store credit</strong></p>
<p>Gift card **** 1234: {{ 25 | money }}</p>
{{ 'https://my.loopz.io' | qrcode }}
<p>Reference:<br>00000000-0000-0000-0000-000000000000</p>
<p>Sample shown in previews only</p>
{% endif %}
```

The block prints on every type of receipt, but only for orders refunded as store credit, with a QR code the customer can scan to open the gift card. When the order has more than one store credit gift card, from several refunds or one split across cards, a line separates them. In the receipt editor's preview, which uses Shopify's sample order, it shows a sample gift card instead, so you can see where it appears. To change the wording, edit the text between the HTML tags. The amount is divided by 100 because Loopz saves it in cents and receipts format whole amounts. Shopify doesn't print custom blocks on orders taken with offline checkout.

Printed receipts can't be translated the way emails can. To print a piece of text in the receipt's language, replace it with a condition on `locale`, the receipt's language code. For example, `{% if locale == 'fr' %}Remboursé en avoir{% else %}Refunded as store credit{% endif %}` prints the heading in French on French receipts and in English on the others.

## Good to know

- The customer's original payment method is never charged back. Loopz records the refund in Shopify for $0, so the order stays Paid and its receipt lists the refunded items without a refund payment. Loopz tags the order **Loopz store credit**, so you can find these orders in Shopify admin by filtering your orders by that tag. The refund value lives on the store credit gift card, which can be spent in-store or online like any other gift card.
- Only items marked as return can be restocked. Items refunded without a return aren't restocked, so adjust their inventory in Shopify if needed.
- If Shopify can't restock the items, the refund still completes and the return stays open on the order, so you can restock the items from it in Shopify.
- When you mark only some units of an item as return, such as 1 of 3, Shopify shows the return with 0 items returned. The refund, the inventory and the order's balance are still correct. A return that covers all of an item's units that haven't been refunded yet shows them as returned.
- Refunds over $2,000 are automatically split across multiple gift cards to respect Shopify's per-card limit.
