Blog

    Building the CMS-0057-F Payer-to-Payer API: Opt-In, Previous Payer Matching, Bulk FHIR and Ingest

    By GauravJuly 14, 20269 mins read
    On this page

    Payer-to-payer data exchange sounds like a simple file transfer between two health plans. In practice it starts with a permission the member has to give, depends on finding the right record at a plan the member has left, and ends with data the new plan must store, label and actually use.

    This post is for payer engineering and interoperability leads building the Payer-to-Payer API required by CMS-0057-F. It covers opt-in capture, identifying and matching the member at the previous plan, the five-year data window, Bulk FHIR packaging, ingest and testing.

    What is payer-to-payer data exchange?

    Building your Payer-to-Payer API?

    We build the opt-in, matching, Bulk FHIR export and ingest pieces around your core payer systems.

    Payer-to-payer data exchange is the transfer of a member's claims, clinical and prior authorization history from a previous health plan to a new one, with the member's permission, through a standard FHIR API. Agnotic Technologies builds both sides of it for payers: requesting history for new members and answering requests about former ones.

    Every plan in scope plays both roles. The plan that requests history for a new member must also answer, quickly, when another plan asks about someone who has left.

    What does CMS-0057-F require of the Payer-to-Payer API?

    CMS-0057-F requires impacted payers to share a defined data set with other payers through a FHIR API, but only after the member opts in. Impacted payers are Medicare Advantage organizations, Medicaid and CHIP programs and their managed care plans, and QHP issuers on the Federally Facilitated Exchanges.

    Under CMS-0057-F, impacted payers must offer a Payer-to-Payer API by January 1, 2027 that shares claims and encounter data (without provider remittances and enrollee cost-sharing), USCDI data and certain prior authorization information other than drugs, limited to dates of service within five years of the request and only after the patient opts in.

    • Included: claims and encounter data, USCDI data classes, and prior authorization information other than drugs.
    • Excluded: provider remittances, enrollee cost-sharing information and denied prior authorizations.
    • Window: dates of service within five years before the request.
    • Standards: FHIR R4 with US Core, plus the FHIR Bulk Data Access implementation guide, which CMS made a requirement for this API.

    The rule also asks for plain-language material that explains the exchange to members, offered with the opt-in request, at least annually and on the plan's website. That content belongs in the build plan, not as a late task for the communications team.

    How should opt-in be captured?

    Opt-in should be captured as a structured, dated permission tied to the member and to the exchange, not as a checkbox buried in enrollment paperwork. Members can change it at any time, and the system has to honor the change from that date.

    For Medicare Advantage organizations, 42 CFR 422.121(b) requires offering new enrollees the opt-in within one week of coverage start (or of CMS enrollment acceptance, if later), requesting a previous payer's data within one week of having its details and the opt-in, and answering another payer's request within one business day.

    • Channels: enrollment forms, the member portal, the call center and mailed replies, all writing to one record.
    • Record: member, decision, channel, date, who recorded it and, for a personal representative, their authority.
    • Withdrawal: a change stops future requests and responses, and the history of each change is kept.
    • Follow-up: members who do not respond get reasonable outreach, tracked as tasks rather than forgotten.

    How do you identify the previous payer?

    The new plan has to ask the member who covered them before, because no national lookup returns a person's former health plans. Collect the plan name, member identifier and coverage dates at enrollment, and again when the opt-in is given.

    Store the answer as data, not free text. A list of known payers mapped to their API endpoints turns a typed plan name into a request the system can send, and flags names nobody recognizes for staff review.

    Many members change plans more than once in five years. Ask for every previous plan in the window, and expect partial answers.

    Matching the member at the old plan

    The previous payer has to find the right member before it can respond, using only what the requesting plan sends. Most failed exchanges start here: a mistyped identifier, a name change, or a dependent who was listed under a parent.

    Payer-to-Payer API exchange: the new plan records enrollment, opt-in and the previous plan, sends an authenticated request with an attestation, the previous payer matches the member and returns five years of data as a Bulk FHIR export within one business day, and the new plan ingests it with provenance, with a concurrent coverage lane for quarterly requests
    • Inputs: former member identifier, name, date of birth, address and coverage dates from the new plan.
    • Rules: an exact identifier match first, then demographic scoring against a threshold the matching team owns.
    • No guessing: a low-confidence match returns nothing and opens a review, because a wrong match discloses another person's data.
    • Feedback: a no-match response tells the requester which fields to recheck, without revealing anything about other members.

    How should the data be packaged and sent?

    Package the data as a FHIR Bulk Data export, because a five-year history can run to thousands of resources and CMS requires the Bulk Data Access guide for this API. The requesting plan starts an export for one member, then downloads NDJSON files by resource type when they are ready.

    • Authorization: system-to-system tokens, with SMART Backend Services recommended by CMS and client registration agreed in advance.
    • Attestation: each request states that the member is enrolled with the requester and has opted in.
    • Profiles: CMS recommends, but does not require, guides such as Da Vinci Payer Data Exchange (PDex) to shape the data.
    • Timing: the response is due within one business day, so exports run as queued jobs, never manual pulls.

    What should the new plan do with the data?

    The new plan has to receive the data and incorporate it into its records about the member, so the files cannot sit in a landing bucket. Ingest them into the member record with provenance, so every claim and condition shows which plan it came from and when.

    • Provenance: source payer, request date and export identifier on every incoming resource.
    • Prior authorizations: active approvals from the old plan routed to utilization management for review, so treatment is less likely to stall.
    • Care management: diagnoses and recent use of services help find members who need early outreach.
    • Deduplication: repeat imports for the same member merge with earlier ones instead of stacking copies.

    When a member has two plans at once

    Members with two plans at the same time need the exchange in both directions while both are active. The rule asks for a first request once the member opts in, then at least quarterly while both plans cover the member.

    Track concurrent payers separately from previous ones. The schedule, deduplication rules and affected members all differ, and a quarterly job pointed at former plans only wastes requests.

    Common payer-to-payer failure points

    Most failures happen at the edges of the API, in enrollment, matching and ingest, not in the FHIR server itself.

    • Opt-in in the wrong system: permission stored in enrollment notes that the API cannot read.
    • Unmapped plan names: previous payers typed as free text and never turned into requests.
    • Loose matching: thresholds tuned for volume, which risks sending one member's history to another plan.
    • Manual exports: responses assembled by hand, which miss the one business day clock as volume grows.
    • Orphaned files: received data stored but never linked to the member record or used by care teams.

    A worked example: a member switches plans

    A worked example: a member moves from one Medicare Advantage plan to another at the start of the year. During enrollment the new plan offers the opt-in through its portal, the member accepts and names the former plan, and the system maps that name to a registered endpoint.

    The request goes out with an attestation and the former member identifier. The old plan matches the identifier, confirms the date of birth, and its export job returns claims, conditions and an active physical therapy approval inside the one business day limit.

    The new plan imports the files with provenance. A utilization management nurse sees the therapy approval in the member's record, and care management schedules a call because the history shows a recent hospital stay.

    Who owns each piece of the Payer-to-Payer exchange?

    The exchange touches enrollment, member services, data and clinical teams, so each piece needs a named owner.

    • Enrollment and member services: opt-in capture, previous payer details and member outreach.
    • Interoperability engineering: the FHIR server, Bulk Data export, client registration and the request queue.
    • Identity and data quality: matching rules, thresholds and the review queue for uncertain matches.
    • Privacy officer: attestation checks, withdrawal handling and the audit trail for every disclosure.
    • Clinical and utilization management: how incoming history and approvals are used after ingest.

    How do you test a Payer-to-Payer API?

    Test it the way it fails in production: with messy member data, a real plan on the other side and the clock running. A server that passes a validator but cannot match a renamed member is not ready.

    • Partner tests: exchange synthetic members with at least one other plan well before the compliance date.
    • Matching cases: name changes, dependents, transposed dates and members with no record at all.
    • Permission cases: no opt-in, a withdrawn opt-in and a personal representative acting for the member.
    • Timing: measure request to completed export, and alert well before one business day passes.
    • Content: validate exports against the profiles you publish, and check the five-year cutoff.

    What are payer-to-payer data exchange best practices?

    Record opt-in as structured data in one place, map previous plan names to known endpoints, and match conservatively, because a wrong match is a disclosure. Run exports as queued Bulk Data jobs that meet the one business day clock.

    Ingest received data with provenance and route it to the teams who will use it, test with partner plans before the deadline, and keep an audit trail of every request, response and permission change.

    How can Agnotic help build a Payer-to-Payer API?

    Agnotic builds Payer-to-Payer APIs for health plans: opt-in capture across channels, previous payer lookup, member matching with review queues, Bulk Data exports, and ingest that puts received history in front of care and utilization management teams. We work with your core administration system and the FHIR server you already run.

    Build your Payer-to-Payer API with Agnotic

    We design and build the FHIR exchange, matching and ingest your plan needs for CMS-0057-F.

    Sources

    Frequently Asked Questions

    CMS-0057-F sets January 1, 2027 as the compliance date for the Payer-to-Payer API for most impacted payers. Some payer types can apply for an exception, so check the section that applies to your plan.

    Talk to an engineer about your project

    Tell us about your enrollment, claims and FHIR setup, and we will help you plan the Payer-to-Payer API build and partner testing.