> This page is for version v1 (default).
> For other versions, use one of these documentation indexes:
> - v1 (default): https://docs-dev.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://docs-dev.truemed.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs-dev.truemed.com/_mcp/server.

# Overview

> How the Medically Tailored Meals flow works at a high level: qualify once, then order eligible meals with HSA/FSA funds.

Medically Tailored Meals (MTM) lets customers of a prepared-meal merchant pay for meals with HSA/FSA
funds. The key idea: **the customer qualifies first, then shops.** Based on their answers to a
health survey, Truemed returns the list of your meals that fit the customer's dietary needs. The
customer can order right away. An independent licensed practitioner reviews the case in the background,
and you charge the first order once Truemed sends a valid payment token. Once approved, every order puts the eligible
portion on their HSA/FSA card and the rest on a regular card.

## The big picture

```mermaid
flowchart LR
    A[Customer opts<br />into HSA/FSA] --> B[Health survey<br />+ two cards]
    B --> C[Truemed returns meals<br />they might qualify for]
    C --> D[Customer picks meals<br />and places order]
    B -. in the background .-> E[Practitioner<br />review]
    D --> F
    E --> F[Charge split across<br />HSA/FSA + personal card]
    F -. next week, no new review .-> D
```

Qualification happens **once**. After that, the customer comes back to pick meals as often as your
plan allows, typically weekly, without repeating the survey or re-entering cards.

**Existing customers can opt in too.** HSA/FSA is not only for new signups: a customer already on your
plan can take the same survey and add their two cards at any point, then keep ordering as before. We
recommend offering it to your current customers, for example from their account page or in your
lifecycle emails.

## Walk through it

Each step shows the customer's screen next to what is happening between you and Truemed at that
moment. The screenshots come from an example meal-kit merchant. Only steps 4 and 5 are Truemed pages;
everything else is your own site. In the progress bar above each step, a dotted underline marks a Truemed-hosted step.

### 1. Opt into HSA/FSA before choosing meals

1Opt in — 2Details — 3Pay — 4Survey — 5Cards — 6Submit — 7Meals

![Box size page with the Pay with HSA/FSA opt-in active](/_fern-files/_img/e0107c80d53c9da87d2510aa13fd75d8850aee15f12f2b2a8dcb743c30451f7c.webp)

Your page

What the customer does

The customer opts into paying with HSA/FSA, before picking meals.

Behind the scenes

Nothing yet. You remember the opt-in so your payment step sends the customer to the Truemed survey. Truemed collects both cards inside the survey, not in your own payment form, so your payment and order confirmation steps should show Truemed as the payment method.

### 2. Enter delivery and account details

✓Opt in — 2Details — 3Pay — 4Survey — 5Cards — 6Submit — 7Meals

![Delivery and account details form](/_fern-files/_img/0bc1881cd2e75894fcba5c41d07a3f66d0f9513492e2bcbb57da43119839603d.webp)

Your page

What the customer does

Your normal signup step. You can remind the customer that they enter their HSA/FSA card next.

Behind the scenes

Nothing changes. This is your existing signup.

### 3. Choose to pay with HSA/FSA

✓Opt in — ✓Details — 3Pay — 4Survey — 5Cards — 6Submit — 7Meals

![Payment page with Pay with HSA/FSA selected](/_fern-files/_img/409383a18ccb3c9c9e8b23f31d53df391b731fb15d3578d1fd6ccf8422d9bb3c.webp)

Your page

What the customer does

The customer selects Pay with HSA/FSA and continues to the health survey.

Behind the scenes

You ask Truemed to start qualification for this customer. Truemed returns a link to the hosted survey, which you open on your page.

### 4. Complete the health survey

✓Opt in — ✓Details — ✓Pay — 4Survey — 5Cards — 6Submit — 7Meals

![Health survey question asking about conditions](/_fern-files/_img/a23a91517e6a9b52d2b40ef4a610b59c163be98befaf5f5233522594e55180a8.webp)

Truemed-hosted

What the customer does

A survey about the customer's health, shown inside your page.

Behind the scenes

Truemed uses the answers to list the meals this customer **might** qualify for, pending a practitioner's review. The list is ready right away. The review runs in the background and usually finishes within a few hours; until then, nothing is approved.

### 5. Enter both cards

✓Opt in — ✓Details — ✓Pay — ✓Survey — 5Cards — 6Submit — 7Meals

![HSA/FSA card and personal card entry forms](/_fern-files/_img/b551340ff746eb84f41691d23f8cd2dbd978f6542f00bb79b7cde8bcf42db114.webp)

Truemed-hosted

What the customer does

The customer enters an HSA/FSA card and a personal card. Meals are only [partially eligible](/guides/overview/glossary#partially-eligible), so the personal card pays the rest ([how the split works](#key-rules-to-know)). If eligibility isn't approved, the whole charge goes to the personal card. You can also opt in to [auto-retry](/guides/get-started/use-cases/medically-tailored-meals/subsequent-orders#when-hsafsa-funds-run-out), so a short HSA/FSA balance moves to the personal card instead of failing the order.

Behind the scenes

Truemed stores both cards. Full card numbers never touch your servers; the payment token carries only the last four digits and expiry of each card, for display. When the customer finishes, Truemed tells your page and closes the survey.

### 6. Submit payment

✓Opt in — ✓Details — ✓Pay — ✓Survey — ✓Cards — 6Submit — 7Meals

![Payment page showing the health survey is complete with a Submit and Pick Meals button](/_fern-files/_img/5d13e748c721307be20702fa7c6e90548cf91bfa6af7c23182e70452bf79b438.webp)

Your page

What the customer does

Back on your payment page, the customer submits.

Behind the scenes

Submitting starts the practitioner review in the background. The customer doesn't wait on it and goes straight to picking meals.

### 7. Pick meals with eligibility badges

✓Opt in — ✓Details — ✓Pay — ✓Survey — ✓Cards — ✓Submit — 7Meals

![Meal selection page with HSA/FSA Eligible badges on meals](/_fern-files/_img/210024f278dfe019aa8067fde25d0a4bec2b67426af681b3821371bc7e44c6d5.webp)

Your page

What the customer does

The customer fills their box. Meals that fit their needs carry an HSA/FSA Eligible badge.

Behind the scenes

You badge meals using the list Truemed returned from the survey. Meanwhile, an independent licensed practitioner reviews the case in the background, and the decision can arrive before the customer finishes picking. Once Truemed sends a valid payment token, you charge the first order and Truemed splits it across the two cards. Later orders reuse that token, so there is nothing to wait for.

## Key rules to know

Most of these rules come back to the **payment token**: Truemed's link between one of your customers and
their Truemed account. It holds the customer's HSA/FSA eligibility and their two cards on file, and you
charge every order against it. See [Token lifecycle](/guides/setup/api/subscriptions/token-lifecycle) for
the states a token moves through.

### Every meal is split by a fixed comparable amount

HSA/FSA funds can pay for what a medically tailored meal costs **over an ordinary one**. So every meal has a
**comparable amount**: the price of an equivalent everyday meal. That part always goes on the personal
card, and the rest goes on the HSA/FSA card. It is a fixed dollar amount, not a percentage.

| Salmon teriyaki bowl                    |            |
| --------------------------------------- | ---------: |
| Meal price                              |    \$14.50 |
| Comparable amount, on the personal card |   − \$6.00 |
| **On the HSA/FSA card**                 | **\$8.50** |

Illustrative figures. The real comparable amount comes from the product catalog API: the catalog reads return it on each meal as `comparable_item_price_cents`. See

[Reading the comparable amount](/guides/get-started/use-cases/medically-tailored-meals/api-calls#reading-the-comparable-amount)

.

### Showing the payment breakdown

Truemed charges the split, but **since Truemed does not own your order confirmation step, you show the
eligible/ineligible breakdown there**, if you want the customer to see it. To show an estimate at meal
selection or confirmation, compute it on your side:

* **Personal card:** the comparable amount for each eligible meal, plus the full price of anything not
  eligible.
* **HSA/FSA card:** everything else.

Truemed settles the exact amounts at charge time and emails the customer an itemized receipt. The
[first order page](/guides/get-started/use-cases/medically-tailored-meals/first-order#showing-the-payment-breakdown-in-the-order-summary)
works through a full box.

### Why the first charge waits

The HSA/FSA side of a payment token is unlocked only after an independent licensed practitioner approves
the customer's Letter of Medical Necessity (LMN). No HSA/FSA amount may be charged, held, or promised to a
customer before that approval, so the token cannot exist before the decision does. Holding the first order
keeps that guarantee without making the customer wait on a screen or go through a second checkout. Later
orders reuse the same token, so they charge without waiting.

If the practitioner declines, Truemed still sends a payment token, with no HSA/FSA coverage. You can
still charge the held order in full to the personal card.

### The rest of the rules

* **Every order is a split.** Because each meal has a comparable amount, there is no all-HSA/FSA order. That
  is why the customer always enters two cards.
* **Truemed classifies your menu.** Truemed's dietitians review your meals to decide which may be HSA/FSA-eligible,
  separately from your API integration.
* **An approval lasts 12 months.** Before it expires, send the customer a
  [fresh survey link](/guides/get-started/use-cases/medically-tailored-meals/subsequent-orders#getting-a-fresh-survey-link)
  to requalify and keep using HSA/FSA.
* **A short HSA/FSA balance fails the charge by default.** You can opt in to auto-retry on the personal
  card, which is already on file. See
  [When HSA/FSA funds run out](/guides/get-started/use-cases/medically-tailored-meals/subsequent-orders#when-hsafsa-funds-run-out).

## How this differs from standard Truemed checkout

```mermaid
flowchart LR
    subgraph Standard
        direction LR
        S1[Pick products] --> S2[Qualify at checkout] --> S3[Pay]
    end
    subgraph MTM [Medically Tailored Meals]
        direction LR
        M1[Qualify once] --> M2[Pick eligible meals] --> M3[Order repeatedly]
    end
```

In standard checkout the cart comes first. In MTM, qualification comes first and shapes what the
customer can buy with HSA/FSA funds.

## Where to go next

* [The first order](/guides/get-started/use-cases/medically-tailored-meals/first-order): the one order
  that waits on the practitioner's decision.
* [Subsequent orders](/guides/get-started/use-cases/medically-tailored-meals/subsequent-orders): the
  weekly steady state, the backup card, and what to do when HSA/FSA funds run out.
* [API calls](/guides/get-started/use-cases/medically-tailored-meals/api-calls): every call the
  integration makes.