Plan Benefits
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.
Prerequisites:
- Authentication: API key setup and environments
- Employer Health Insurance Setup: 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.
Request headers that matter:
Kota-Version: 2026-05-16pins 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-FRresolvesbenefit.display_nameinto 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_pageuntil 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_sharingfails, 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=1per plan and readtotal_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_paysorplan_pays, which decides whether an amount is a cost to the member or a payment by the plan.configuration.display_guidance:nestedorflat.
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:
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
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.
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:
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
- Pin
Kota-Version. A silent shape change is worse than a visible 400. - Decode every enum-like field as a string and render it by humanising the token. Keep no allowlists.
- Format amounts from the value shape (
currencyvsunit), not fromcost_share.type. - Remember percentages arrive as direct values:
100means 100%. - Treat a 404 on
/benefitsas “no data” and hide the entry point. - Never render a partial benefits list as if it were complete.
- Keep “not covered” and “nothing captured” distinct.
- Only promote an insurer’s status to a stronger claim when nothing on the record qualifies it.
- Match benefits across plans on
benefit.code, never on a plan benefit’sid. - 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.

