Skip to main content

Premium Webhook

TPA Stream can POST to a customer-provided URL whenever an insurance premium is confirmed for one of your members, or a confirmed premium changes. It is the API counterpart of the Premium Detail file: the same premiums, one at a time, as they become available.

This webhook is part of premium substantiation, which is enabled per tenant. If your tenant does not have it, no premium webhooks are sent and no new_premium events are recorded.

What counts as one premium​

One premium is one member, one premium type and one coverage month: for example, a member's Medicare Part B premium for November 2026. A yearly Social Security letter therefore becomes twelve premiums, and twelve POSTs.

A premium can come from three sources, given in source:

sourceWhere the premium came from
crawlRead from Medicare.gov during a crawl of the member's account (Part B and Part D).
crawl_pageRead from a page of a carrier's site saved during a crawl.
statementA premium document the member uploaded (for example a Social Security letter), reviewed and confirmed.

When more than one source covers the same month, TPA Stream sends the most trusted one: an uploaded statement beats both kinds of crawl, and Medicare.gov beats a carrier page. Only confirmed premiums are sent; a premium waiting for review is not.

Trigger and action​

Every premium has a stable premium_id built from the member, the premium type and the month (for example 4821-medicare_part_b-2026-11). It never changes for that member, type and month.

actionSent when
createdA premium is confirmed for a member, type and month for the first time.
updatedThe premium already sent for that premium_id changed: a new amount, carrier or plan, or a more trusted source replaced it.

The common updated case: a crawl of Medicare.gov confirmed a Part B premium, and later the member uploaded their Social Security letter for the same months. You receive an updated POST with the same premium_id, source: "statement" and the statement's amount, not a second premium for that month. Store premiums keyed by premium_id and treat every POST as an upsert.

premium_row_id is the id of the stored record behind the premium. It matches premium.id in the Premium Detail file and id in GET /api/member/<member_id>/premium. It changes when the source changes, so use premium_id, not premium_row_id, as your key.

A crawl that reads the same amount again sends nothing. A confirmed statement can cover months that have not started yet; those premiums are sent when the statement is confirmed, with their coverage_month.

Configuring the URL​

Your TPA Stream administrator sets the destination URL under Settings > Webhook Settings, in the Premium Webhook URL field. Step-by-step (requires a TPA Stream login): https://support.tpastream.com/kb/setting-up-webhooks

Request shape​

POST with Content-Type: application/json:

{
"data": {
"event": "new_premium",
"action": "updated",
"premium_id": "4821-medicare_part_b-2026-11",
"premium_row_id": 99173,
"member": { "id": 4821, "employer": { "id": 77 } },
"policy_holder": null,
"payer": null,
"premium_type": "medicare_part_b",
"label": "Medicare Part B premium",
"carrier_name": "Social Security Administration",
"plan_name": null,
"coverage_month": "2026-11-01",
"coverage_month_end": "2026-11-30",
"amount": "202.90",
"source": "statement",
"status": "confirmed",
"confidence": "high",
"confirmed_at": "2026-11-18T14:03:11.482910+00:00",
"premium_statement_id": 3108,
"modified": "2026-11-18T14:03:11.482910+00:00"
}
}
FieldDescription
eventAlways new_premium.
actioncreated or updated (see above).
premium_idStable id of the premium: member, premium type and month.
premium_row_idId of the stored record currently behind the premium.
member.id, member.employer.idThe TPA Stream member and employer.
policy_holder.idThe carrier login the premium was read from; null for an uploaded statement.
payer.id, payer.nameThe payer of that login; null when there is no login.
premium_typemedicare_part_b, medicare_part_d, medigap, medicare_advantage, individual_coverage, dental, vision or other. More values may be added; treat an unknown one like other.
labelA readable name for the premium type.
carrier_name, plan_nameAs read from the source; either can be null.
coverage_month, coverage_month_endFirst and last day of the month the premium pays for.
amountThe monthly premium, as a string with two decimals.
sourcecrawl, crawl_page or statement.
statusAlways confirmed in this webhook.
confidencehigh, medium or low.
confirmed_atWhen the premium was confirmed.
premium_statement_idThe uploaded or saved document behind the premium; null for a Medicare.gov crawl.
modifiedWhen the stored record last changed. If two POSTs for one premium_id arrive out of order, keep the one with the later modified.

Like every TPA Stream webhook, the request is signed via the TPAStream-Signature header and retried on failure per Webhook Security.

What is not sent​

  • Premiums waiting for review, and premiums that were voided.
  • A premium that stops being sent (for example a statement rejected after it was confirmed) does not send a removal today. Reconcile against GET /api/member/<member_id>/premium if you need to detect that.

Missed a webhook?​

Webhook delivery is at most 4 hours of retries. Every premium POST is also recorded in the Events Feed as a new_premium event, whether or not you set a webhook URL, so you can page forward from a cursor and recover anything you missed.