EligiPro Partner API V3

Concepts guide

This guide is meant to help a product manager, analyst, or implementation lead understand the domain, the role of each resource, and the intended integration flow before diving into raw contracts.

Purpose

V3 is the modern ASP.NET Core API surface for EligiPro. Its goal is to let partner companies embed the EligiPro eligibility engine inside their own systems through a contract that is easier to integrate, easier to document, and easier to evolve than V2.

In this version, the center of gravity is eligibility. Partners can keep their own user experience and operational workflows while EligiPro handles the verification, storage, audit trail, and result rendering behind the scenes.

Company roles

The API works with two different meanings of company.

  • CompanyClient: the real client company that owns the patient.
  • CompanyPayor: a payor or insurance company associated with that patient for eligibility verification.

A single partner API key can be authorized for multiple CompanyClient entries. The partner does not need a different key for each managed client company; each request simply names the company it is acting on.

The route parameter {companyIdentification} is that selector and always points to the target CompanyClient. When you see payors in the API, those are CompanyPayor entries for that selected client company.

Core resources

Most day-to-day integrations focus on patients, payors, and eligibility. auth/info and health endpoints are supporting tools: useful during onboarding to validate the API key, requested company access during setup, and troubleshooting, but not required for every operational request.

  • payors: returns the available CompanyPayor list for a CompanyClient and marks which payors are already related. Use the returned payorId as the fixed EligiPro identifier in subsequent requests.
  • patients/{externalId}: returns the patient snapshot and the current patient-to-payor relationships.
  • eligibility: returns the operational grid of latest eligibility rows.
  • eligibility/history: returns historical eligibility results across patients, payors, and dates.
  • eligibility/{eligibilityId}: returns one eligibility result, including both a summary and the compact eligibility detail.
  • eligibility/{eligibilityId}/view: creates a short-lived HTML viewer URL for that stored eligibility result.
Required setup before eligibility checks

Before a company can verify eligibility against a payor, the partner must first create the general relationship between that CompanyClient and the target CompanyPayor. That relationship defines how the client is identified when EligiPro communicates with the payor.

The CompanyClient to CompanyPayor relationship is persistent. The API creates it, updates it, deactivates it, or reactivates it, but does not remove it through a public delete operation. It can also carry a defaultFrequency, which EligiPro applies when a new patient-payor relationship is created without an explicit schedule.

Use EligiPro's fixed payorId, returned by GET /payors, in every V3 payor reference: relationship configuration, patient request bodies, eligibility filters, delete, and force-check. Partners that use different identifiers should keep their mapping in their own integration.

Operationally, successful write actions exposed by the public API are also reflected in EligiPro Activity Logs.

Why eligibility is the focus

V3 follows the same operational model as the EligiPro web portal: patients are not managed as loose, standalone records. A patient becomes operationally meaningful when connected to one or more payors.

Eligibility results are the working view of those relationships because they combine patient, payor, and the latest verification outcome. That is why the main listing endpoints are under /eligibility rather than under a pure patient collection.

Authentication model

V3 keeps the existing EligiPro partner model based on the EPAPIKey header. This is intentional. The goal is to preserve your working partner model while the contract and platform evolve.

When a partner enables inbound request signing, authenticated V3 routes also require X-EligiPro-Timestamp, X-EligiPro-Nonce, and X-EligiPro-Signature. This adds message integrity and replay protection without changing the underlying API key model.

Think of the model as two layers:

  • EPAPIKey identifies the partner and the API user.
  • request signing proves that the message body, route, and query were not changed after your backend built the request.

Signing is intentionally a backend concern. Your server should hold:

  • the API key
  • the request signing secret
  • the optional signing key identifier

Browser code, mobile apps, and desktop shells should never contain the raw signing secret. If a browser needs to open a hosted eligibility viewer, your backend should create the viewer session first and return only the temporary viewer URL.

The public auth endpoint is not about token issuance. It is about resolving the partner and API user from the key and validating access to the requested CompanyClient. It remains the one authenticated V3 route that does not require request signing headers.

Synchronous JSON responses from those routes are not separately HMAC-signed. EligiPro relies on HTTPS/TLS for response integrity in normal request-response traffic. The signed EligiPro-to-partner delivery surface is the outbound webhook model, which uses a dedicated webhook signing secret.

Suggested integration flow

  1. Call GET /v3/auth/info with only EPAPIKey to confirm the key and the target company.
  2. Configure request signing in your backend and switch all other authenticated V3 routes to signed requests.
  3. Read the company profile to confirm its name and state. Use the company's tag catalog to match tag IDs for eligibility filters with tag names for patient updates. You can also create, rename and delete catalog tags. Renaming affects every assigned patient.
  4. Call GET /v3/company/{companyIdentification}/payors to inspect payor availability and relationship state.
  5. Call PUT /v3/company/{companyIdentification}/payors/{payorId} to create, update, deactivate, or reactivate the CompanyClient to CompanyPayor relationship before assigning patients to that payor. The same fixed payorId is used in all subsequent patient-payor operations.
  6. Call POST /v3/company/{companyIdentification}/patients to create a patient together with at least one initial payor relationship. If active is omitted, the patient is created as active.
  7. Call GET /v3/company/{companyIdentification}/patients/{externalId} when you need the current patient snapshot.
  8. Call PATCH /v3/company/{companyIdentification}/patients/{externalId} to update patient demographics, tags, the active flag, and to incrementally add or update patient-payor relationships. You may send only the payors block when demographics stay unchanged.
  9. Call DELETE /v3/company/{companyIdentification}/patients/{externalId}/payors/{payorId} when you need to remove one patient-payor relationship without resending the full list.
  10. Call POST /v3/company/{companyIdentification}/patients/{externalId}/payors/{payorId}/check when you want EligiPro to force a fresh eligibility check from the stored patient-payor relationship.
  11. Use GET /v3/company/{companyIdentification}/eligibility for the operational list of current results.
  12. Use GET /v3/company/{companyIdentification}/eligibility/history for past results and auditing.
  13. Use GET /v3/company/{companyIdentification}/eligibility/{eligibilityId} for the detailed result.
  14. Use POST /v3/company/{companyIdentification}/eligibility/{eligibilityId}/view when you want EligiPro to host a human-readable HTML view for that stored result.

Request signing onboarding

A clean onboarding usually follows this sequence:

  1. Import the EligiPro Postman bundle or implement the signing helper in your backend.
  2. Populate epApiKey, requestSigningSecret, and optionally requestSigningKeyId.
  3. Verify GET /v3/auth/info first, because it intentionally remains unsigned.
  4. Move to a simple signed business route such as GET /v3/company/{companyIdentification}/payors?view=active.
  5. Confirm replay protection by resending the same nonce and expecting 409 Replay detected.
  6. When needed, use POST /v3/auth/signing-secrets/rotate to rotate the request signing secret, webhook signing secret, or both.

If your implementation ever retries the same business operation because of a timeout or transient network issue, generate a fresh nonce and timestamp before resending. Reusing the same nonce is treated as a replay attempt even when the rest of the request is identical.

Rotation has no overlap window. Once EligiPro confirms rotation, the old request signing secret immediately stops being valid and the new one must be used on the next signed request.

Which surface should I use?

  • Webhook: use this when your system wants a notification that EligiPro generated a new eligibility result.
  • GET eligibility detail: use GET /v3/company/{companyIdentification}/eligibility/{eligibilityId} when you want an existing eligibility in structured JSON form.
  • Hosted HTML eligibility view: use POST /v3/company/{companyIdentification}/eligibility/{eligibilityId}/view when you want EligiPro to host the formatted HTML representation of an existing eligibility.
  • Patient-payor force check: use POST /v3/company/{companyIdentification}/patients/{externalId}/payors/{payorId}/check when that relationship already exists and you want to re-check it, most commonly after updating stored member or criteria data.

Webhook model

EligiPro is not only a configuration API. Its operational job is to monitor eligibility, store the raw eligibility response, calculate a reusable summary, compare each new result with the previous one, and notify partners.

That is why V3 documentation treats webhook integration as a first-class topic. Partners are expected to understand:

  • that checks are executed by EligiPro according to the configured frequency
  • that deliveries are eligibility-oriented batches
  • that webhook items expose the operational summary plus stable identifiers such as eligibilityId and statusCreateDate
  • that public API endpoints are still available for pull-based audit and retrieval

For the payload contract, headers, and validation rules, continue with the Webhook Guide.

Patient lifecycle rule

In V3, a patient is expected to remain connected to at least one related CompanyPayor. That is why patient writes are split across:

  • POST /patients to atomically create a patient together with at least one payor relationship
  • PATCH /patients/{externalId} to update patient fields and incrementally add or update payors
  • DELETE /patients/{externalId}/payors/{payorId} to remove one relationship without resending the whole list

The API rejects operations that would leave a patient without any payor relationship.

A patient create request must include at least one payor relationship, and each relationship is validated against that payor's allowed criteria and formatting rules. In practice, that means the required patient fields can vary depending on the payor and the selected or inferred criteria. Demographic fields such as firstName, lastName, DOB, and gender are optional at the HTTP contract level and become required only when the selected or inferred criteria need them.

When supplied, gender uses the canonical values M or F. EligiPro also accepts male and female, case-insensitively, and normalizes them to the canonical values.

Frequency follows the same pattern. When a brand-new patient-payor relationship omits frequency, EligiPro uses the stored defaultFrequency from the CompanyClient to CompanyPayor relationship. If no stored default exists yet, EligiPro falls back to a super-default based on the payor type. Custom schedules combine selected weekdays, month days and the last calendar day with OR, with one occurrence when conditions overlap. Existing classic schedules keep their original meaning.

Summary and detail

The eligibility detail endpoint intentionally combines two layers:

  • summary: the operational snapshot calculated and stored by EligiPro.
  • detail: the compact, cross-payor representation derived from the raw eligibility response, instead of a payor-specific parser view.

This lets partners consume a stable operational summary while still having access to the underlying standardized structure.

HTML viewer sessions

Some partners need a browser-ready view of one stored eligibility result without rebuilding the compact detail into their own UI. V3 supports that through temporary viewer sessions.

  • Your backend calls POST /v3/company/{companyIdentification}/eligibility/{eligibilityId}/view using the normal API key.
  • EligiPro returns a short-lived viewerUrl.
  • That URL can be opened directly in a browser tab or embedded inside an iframe.

If you want iframe embedding, send parentOrigin when creating the session. EligiPro then allows that specific parent site to host the viewer and blocks other embedding origins. If you omit parentOrigin, the URL still works as a normal top-level browser page, but iframe embedding is blocked.

The important design rule is simple: the API key stays on your backend. Browser code should only receive the temporary viewer URL, never the raw API credential.

Compatibility model

EligiPro will keep /v3 as the public major version and evolve it with additive, non-breaking changes. New routes, optional filters, and optional fields can appear inside V3. Breaking changes should trigger a new major version.

For the technical contract, examples, and filters, continue with the technical reference. For outbound notification behavior, continue with the Webhook Guide.