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

# Plan Benefits

> Build your own plan benefits interface on Kota's structured benefits data

Plan Benefits is the structured, atomised replacement for a PDF table of cover. Instead of a document per plan, you get benefits bound to a shared taxonomy, each one carrying the financial facts that decide what a member actually pays.

How you present that is yours to decide. This guide covers what the data means, what it is safe to claim on the strength of it, and where it will catch you out.

> **Info**
>
> Prerequisites:
>
> * [Authentication](/core-components/authentication): API key setup and environments
> * [Employer Health Insurance Setup](/api/employer-health-insurance): where plans and plan IDs (`pl_...`) come from

---

## The data model in one paragraph

A **plan** covers a set of **benefits**. Each benefit maps to a canonical **taxonomy code** (`kota:gp_visit`) inside a **category** (`kota:outpatient`), which is what makes the same benefit comparable across insurers. What a benefit pays is a bag of **cost-share atoms**: one financial fact each, with an amount, a direction (who pays), a scope (per visit, annual) and optional narrowing. A benefit may have **variants**, named sub-types of the same benefit (public room, private room), each with their own coverage and atoms. Atoms may draw from a shared **pool**, a single allowance several benefits spend down. Benefits also carry non-financial **conditions** (waiting period, pre-authorisation) and a **source** pointing back at the insurer document. Separately, a plan has plan-wide **cost sharing**: caps that apply across the whole plan rather than to any one benefit.

### Endpoints

All paths below are relative to your Kota API base URL.

| Endpoint                                     | What it gives you                                                    |
| -------------------------------------------- | -------------------------------------------------------------------- |
| `GET /plans/{plan_id}/benefits`              | A page of the plan's benefits, plus `configuration.display_guidance` |
| `GET /plans/{plan_id}/benefits/{benefit_id}` | One benefit                                                          |
| `GET /plans/{plan_id}/cost_sharing`          | Plan-wide limits (plan maximum benefit, excess, out-of-pocket max)   |
| `GET /plans/taxonomy/categories`             | Category codes and their per-locale display names                    |
| `GET /plans/taxonomy/benefits`               | The benefit library, including each code's `definition`              |

Request headers that matter:

* `Kota-Version: 2026-05-16` pins the schema shape. The API serves exactly this shape and rejects any other pinned value with a 400, so pinning turns a silent shape change into a visible failure.
* `Accept-Language: fr-FR` resolves `benefit.display_name` into that language where the taxonomy has it, falling back to the plan's own locale. Category names come back in **every** language at once, so pick the locale client-side.

List endpoints page with `page` (from 1) and `page_size` (1 to 100, default 10), and answer with `has_next_page`. The benefits list also filters on `benefit.code`, `benefit.category`, `coverage.status`, `cost_share.type` and `source.confidence`, and accepts `expand[]=taxonomy` to inline the taxonomy entry per benefit. That inlined entry carries display names but no `definition`, so if you want to explain what a benefit code actually covers, page `/plans/taxonomy/benefits` for it. A partial read is survivable there: a missing definition costs an explanation, not a fact.

---

## Fetching the data

Everything in this section is a suggestion rather than a constraint of the API. Treat the whole feature as progressive enhancement: when the data cannot be had, whatever shows it should disappear quietly rather than break the page around it.

* **Fetch from your own server, not the browser.** It keeps your API key off the client, and it lets you decide whether something renders before the page is sent.
* **Page to the end.** Follow `has_next_page` until it clears rather than assuming one page holds everything. Cap the loop at a fixed number of pages so a client can never spin indefinitely.
* **An incomplete list is a failed list.** If paging stops short, discard the plan rather than rendering a partial table of cover as if it were whole. A plan that covers 40 things must never read as covering 12.
* **A 404 means "no published benefits", not an error.** Treat it as "no data" and hide the entry point entirely.
* **Fail per plan, not per page.** One plan's failed fetch should cost that plan its entry point and nothing else, leaving the rest of the catalogue intact.
* **Let plan-wide limits degrade.** If `cost_sharing` fails, show the benefits without the limits rather than failing outright.
* **Check cheaply before you fetch fully.** To decide which plans have anything to show, request `page=1&page_size=1` per plan and read `total_count`, rather than paging every plan's full list up front.
* **Bound concurrency.** A page of plans means a request per plan, so keep a ceiling on how many run at once.

Benefits are per plan, but the taxonomy is shared, so fetch category names and benefit definitions once and cache them rather than asking per plan.

---

## Rendering: read from structure, not from an allowlist

The most important rule on this page: **keep no allowlist of wire values.** Decode enum-like fields as plain strings and render them generically by humanising the snake_case token, so a new cost-share type, coverage status or condition renders correctly on the day it ships, with no change on your side.

Only two vocabularies are treated as closed:

* `direction`: `member_pays` or `plan_pays`, which decides whether an amount is a cost to the member or a payment by the plan.
* `configuration.display_guidance`: `nested` or `flat`.

Everything else (`coverage.status`, `cost_share.type`, `condition.type`, `scope.term`, `pool.kind`, `applicability.*`) is authored free text that follows a snake_case convention. A handful of **cosmetic** overrides are worth keeping for readability (`annual` reading as "a year", `oop_max` as "Out-of-pocket max"), but make sure an unlisted value still renders: prettified rather than polished beats missing.

### Formatting amounts

An amount's shape tells you how to format it, so there is no need to look at `type`:

| Value shape                    | Renders as                                                                      |
| ------------------------------ | ------------------------------------------------------------------------------- |
| `currency` present             | Money, formatted in that currency for the reader's locale                       |
| `unit: "percent"`              | A percentage. **The wire sends the direct value**, so `{ amount: 100 }` is 100% |
| `unit` starting `pct_` or `x_` | A share or multiple of a reference base, e.g. "200% BR", "3 × death capital"    |
| `unit` otherwise               | A count, e.g. "6 visits", "28 days"                                             |
| Neither                        | The bare number                                                                 |

Monetary values carry `currency` and never `unit`; non-monetary values carry `unit` and never `currency`. Exactly one is present.

An amount reads naturally as **direction plus amount plus scope**: "Plan pays €100 per night", "Member pays the first £100 a year". A `limit` is a cap ("up to"), a member-paid `deductible` is a threshold ("the first"), and a percentage needs no period, because a rate does not accumulate.

---

## What each field tells you

| Field                                 | What it tells you                                                                                                                                                 |
| ------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `benefit.display_name`                | The taxonomy's name for the benefit, in the reader's language where it has one. Null otherwise, so fall back to `insurer_label`, then the bare `code`             |
| `benefit.insurer_label`               | The insurer's own wording, verbatim and never translated. The phrasing a member will meet in their policy documents, so it is worth keeping visible               |
| `benefit.category`                    | The taxonomy category the benefit sits in. The natural grouping key for any list; names come from `/plans/taxonomy/categories`                                    |
| `coverage.status`                     | The insurer's own verdict: `covered`, `partially_covered`, `not_covered`, or a value they authored. The only safe summary when no one amount covers it            |
| `cost_share[]`                        | The financial facts, one per entry. Separate them by `direction` before showing them: what the plan pays and what the member pays are different claims            |
| `cost_share[].pool`                   | A shared allowance several benefits draw down, identified by `key`. The strongest caveat on any amount, since another benefit can exhaust it first                |
| `cost_share[].applicability`          | What narrows an amount: network tier, facility type, beneficiary type, age band, region. Shown without it, the amount claims more than the insurer did            |
| `cost_share[].applicability.age_band` | An age range on one atom restricts that amount alone. It describes the whole benefit only when every atom carries the same band                                   |
| `cost_share[].qualifiers[]`           | Opaque claim-context references: procedure sets, facility lists, the insurer's own table line. Prefer `display`; an `id` alone is usually too terse               |
| `cost_share[].settlement`             | How the money moves for that amount, `reimbursement` or `direct`, plus a free-text `note`. Stated per amount, though an insurer usually settles a benefit one way |
| `variants[]`                          | Named sub-types of the same benefit, each with its own coverage and amounts. A variant with no coverage of its own inherits the benefit's                         |
| `conditions[]`                        | Non-financial gates: waiting periods, pre-authorisation, referral, medical-necessity review. Quantitative ones carry `{ amount, unit }`, gates `true`             |
| `source.document_url`                 | The insurer document the benefit was read from, and the authority behind everything else on the record                                                            |
| `cost_sharing.items[]`                | Plan-wide caps, from their own endpoint. They belong to the plan rather than to any benefit, so keep them out of per-benefit figures                              |

---

## One way to lay it out

Nothing here is required and plenty of shapes work. It is included only because it shows how the fields sit in relation to one another once they are on a screen: the plan-wide caps above the benefits they bound, a one-line verdict per benefit, and the amounts, shared allowances, variants and conditions behind that verdict kept out of the way until someone asks for them.

```
┌─────────────────────────────────────────────┐
│ Provider name                               │
│ Plan name                                   │
├─────────────────────────────────────────────┤
│ [ Plan maximum  ] [ Excess    ] [ OOP max ] │  ← plan-wide limits
│ [ €2,500,000    ] [ €150/yr   ] [ €1,000  ] │
├─────────────────────────────────────────────┤
│ Search benefits…                            │
│ ( Covered 42 ) ( Not covered 7 )            │
├─────────────────────────────────────────────┤
│ Outpatient                                  │  ← category
│  › GP visits                   Fully covered│  ← one benefit, summarised
│    Consultant fees · 26-week waiting period │
│  › Physiotherapy        Plan pays up to €500│
│      ┌ What the plan pays ────────────────┐ │  ← the record behind it
│      │ Plan pays up to €500 a year    (i) │ │
│      ├ What the member pays ─────────────┤ │
│      │ Member pays 20% per visit          │ │
│      ├ Shared allowance ─────────────────┤ │
│      │ Day-to-day allowance        €500   │ │
│      │ Shared with Dental, Optical        │ │
│      ├ Variants / Conditions / Settlement ┤ │
│      └────────────────────────────────────┘ │
├─────────────────────────────────────────────┤
│ Plan documents · 3                          │
│ Source disclaimer                           │
└─────────────────────────────────────────────┘
```

Two things in it are worth keeping whatever shape you choose: plan-wide caps read as context for everything beneath them rather than as benefits of their own, and the insurer's documents close the picture rather than interrupt it.

---

## Decisions the data forces on you

These come up whatever you build, because each is a question about what the data entitles you to say.

**Summarise a benefit as one number only when one number is the whole story.** That means exactly one cost-share atom, paid by the plan, and no variants carrying amounts of their own. Two or more atoms mean a breakdown (a rate plus a cap, network tiers, a plan share plus a member excess) where any single figure under-reports, so fall back to the coverage status and keep the breakdown for wherever you show detail.

**A member's share is never the verdict on a benefit.** Only what the plan pays can stand as the summary, even where the member's excess is the only amount on record.

**"Fully covered" is earned, not assumed.** A 100% `coinsurance` paid by the plan is the one shape that means full cover by definition. Claim it only when nothing qualifies it: no shared pool draining the benefit, no network, region, facility, age or procedure scope, and an insurer status of `covered`. Where a full rate is qualified, show the insurer's own status word instead. Making their wording readable is your job; upgrading their judgement is not.

**Render unknown statuses verbatim.** `covered_with_limits` becomes "Covered with limits" rather than being rounded up to "Covered". For styling and grouping only, treat an unrecognised status as partial, so it can never present as full cover.

**Explain the reading, not the type.** Insurer data frequently misuses cost-share terms: a "coinsurance" atom that is really a plan-pays-100% statement, a "deductible" that behaves like a copay. Lead with direction and amount rather than the type name, and if you explain a figure, key that explanation to the same type and direction the wording itself came from, so the two cannot contradict each other. A contradictory shape, such as a plan-paid excess, is better left unexplained than explained wrongly.

**Earn any emphasis.** Colour, icons and weight all read as judgements about how good the cover is. Full and partial cover are stated by the data; a bare "Covered" or an unqualified figure is not, and should stay neutral.

**If you let people filter by coverage, two buckets are enough.** Partially covered sits with covered, since the benefit still carries its own status, conditions and limits, and a third bucket splits a list that is more useful whole. Count what the plan holds rather than what a search matched, so a filter cannot vanish mid-search and imply the plan has nothing of that status.

---

## Comparing plans

Holding several plans against each other is where the taxonomy earns its keep, and where the subtlest mistakes live.

**Align on the taxonomy code.** Match benefits across plans on `benefit.code`, which is stable across plans and insurers. Matching on the plan benefit's own `id` compares nothing: that is a per-plan instance ID, so every plan lands on its own row and no two ever meet.

**Label from the taxonomy, search by the insurer.** Take the shared label from `display_name`, whichever plan supplied it, never from one insurer's wording: the label is the question every plan answers, so one insurer's phrasing must not become it. Keep each plan's `insurer_label` searchable so a reader can still find the benefit by the words their own documents use.

**Absence is not exclusion.** A lookup can come back four ways, and the last two are the ones that get conflated:

| Answer             | What it means                                                                 |
| ------------------ | ----------------------------------------------------------------------------- |
| Covered            | The plan covers it, with whatever amounts and caveats the record carries      |
| Not covered        | The insurer's own explicit `not_covered` status                               |
| Nothing captured   | No benefit with that code was published for this plan, so nothing can be said |
| A plan-wide figure | A cap from `cost_sharing`: a number, not a verdict, and nothing qualifies it  |

A benefit missing from a plan's list is one nobody wrote down, not one the insurer excluded. Collapsing those two into the same blank tells an employer a plan lacks cover it may well have.

**Order the groups so the caps frame the detail.** Plan-wide limits first, since they bound everything under them, then benefits by category, then anything with no category, and the plan documents last: the rest is read out of those documents, so they close the picture rather than interrupt it. Align documents on their *type* rather than their title, since insurers name the same document differently.

**Fetch the picks by ID, not from a list.** The plans being compared decide what you need, so fetch each one individually. A shortlist built elsewhere can name a plan beyond whatever page a catalogue happens to list. A plan that has been retired, or an ID mistyped into a link, should drop out rather than fail the whole comparison, and the remaining plans are still worth comparing. Fetch `cost_sharing` for every plan in the set, not only those with benefits.

**How many plans to allow is your call.** Nothing in the API caps it: benefits are fetched one plan at a time. Two is the real floor, since one plan compares nothing, and legibility is what sets the ceiling.

---

## What to get right, whatever you build

1. Pin `Kota-Version`. A silent shape change is worse than a visible 400.
2. Decode every enum-like field as a string and render it by humanising the token. Keep no allowlists.
3. Format amounts from the value shape (`currency` vs `unit`), not from `cost_share.type`.
4. Remember percentages arrive as direct values: `100` means 100%.
5. Treat a 404 on `/benefits` as "no data" and hide the entry point.
6. Never render a partial benefits list as if it were complete.
7. Keep "not covered" and "nothing captured" distinct.
8. Only promote an insurer's status to a stronger claim when nothing on the record qualifies it.
9. Match benefits across plans on `benefit.code`, never on a plan benefit's `id`.
10. Show the source disclaimer wherever you show this data: the details come from the insurer's plan documents, and those documents remain the member's primary point of reference.