> This page is for version v1 (default).
> For other versions, use one of these documentation indexes:
> - v1 (default): https://developers.truemed.com/v-1/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.truemed.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.truemed.com/_mcp/server.

# Post-purchase email snippet

> How to add a code snippet linking to HSA/FSA reimbursement qualification in your post-purchase confirmation emails.

> **Note**
>
> These instructions are specific to reimbursement implementations. They are not necessary to support the Truemed payment app.

## Encourage HSA/FSA reimbursement immediately post-purchase

These instructions will help you include a link to the HSA/FSA reimbursement qualification in the post-purchase email.

For example, an email might look like this:

![Post-purchase email example with HSA/FSA reimbursement link](/_fern-img/b64dccba3cc89824f507be181e84877a2a4178787b62996f8acaf7e4e31b9761.webp)

---

## Shopify instructions

1. Locate your Qualification Link at [app.truemed.com](https://app.truemed.com)

   ![Qualification link in Truemed dashboard](/_fern-img/7c13aac8a1ff83e124e22d8b70b8a95b870e21d1a6c938afe503edd2b44b8ec6.webp)

   *This is the link that you will copy for the following steps. Make sure to replace `YOUR_QUALIFICATION_LINK` with the link found in step 1.*

2. On your Shopify admin panel, navigate to **Settings** > **Notifications** > **Customer Notifications** > **Order Confirmations** > Click **edit code** > Paste the following code snippet according to where you'd like it to appear in your email template:

```liquid
{% assign skus = "" %}
{% for line_item in order.line_items %}
  {% assign skus = skus | append: line_item.sku %}
  {% unless forloop.last %}
    {% assign skus = skus | append: "," %}
  {% endunless %}
{% endfor %}

<p>This order might be eligible for HSA/FSA reimbursement.<a href="YOUR_QUALIFICATION_LINK?source=receipt_email_1&skus={{ skus | url_encode }}"> Qualify Here</a></p><br />
```

On the standard Shopify template it could look something like this:

![Shopify email template with Truemed snippet](/_fern-img/43054b5b94cfd59898a899e5927a13b79e2d6b3518ed8425e955a383da276a7d.webp)

> **Tip**
>
> You can click Preview to see what the page will look like before saving it. Note: the hyperlinked text will not be clickable in the preview mode.

---

## Non-Shopify instructions

1. Locate your Qualification Link at [app.truemed.com](https://app.truemed.com)

   ![Qualification link for non-Shopify stores](/_fern-img/7c13aac8a1ff83e124e22d8b70b8a95b870e21d1a6c938afe503edd2b44b8ec6.webp)

   *This is the link that you will copy for the following steps. Make sure to replace `YOUR_QUALIFICATION_LINK` with the link found in step 1.*

2. Place the following code snippet in your post-purchase email template. Customers have a better experience if you append SKUs to your qualification link.

```html
<p>This order might be eligible for HSA/FSA reimbursement. <a href="YOUR_QUALIFICATION_LINK?source=receipt_email_1">Qualify here</a>.</p><br />
```

---

## Need help?

Contact [merchants@truemed.com](mailto:merchants@truemed.com) for any technical questions about the post-purchase email snippet.