{
  "openapi": "3.0.1",
  "info": {
    "title": "EligiPro Partner API V3",
    "description": "Next-generation partner API for EligiPro integrations. See /partner-docs/concepts.html for a business-oriented guide and /partner-docs/technical-reference.html for the public contract reference.",
    "version": "v3"
  },
  "paths": {
    "/health": {
      "get": {
        "tags": [
          "EligiPro.Api.V3"
        ],
        "operationId": "Health",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HealthResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v3/auth/info": {
      "get": {
        "tags": [
          "EligiPro.Api.V3"
        ],
        "summary": "Resolves the authenticated partner, API user, and CompanyClient for the provided API key and company.",
        "description": "This endpoint is intentionally informational. It does not issue tokens. It confirms who the key belongs to\r\nand whether the requested CompanyClient is available for that partner.",
        "parameters": [
          {
            "name": "companyIdentification",
            "in": "query",
            "description": "CompanyClient identifier owned by the authenticated partner.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiEnvelopeOfAuthInfoResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v3/auth/signing-secrets/rotate": {
      "post": {
        "tags": [
          "EligiPro.Api.V3"
        ],
        "summary": "Replaces one or both partner signing secrets and returns the new values once.",
        "description": "This endpoint is partner-facing and is intended for deliberate secret rotation events.\r\nAt least one of ```rotateRequestSigningSecret``` or ```rotateWebhookSigningSecret``` must be true.\r\nThe new secret values are revealed exactly once in the response, so the caller must store them immediately.\r\nWhen request signing is already enabled for the partner, this route itself must be signed with the current active secret.\r\nThere is no overlap window between the old and new secrets.\r\nIf the outcome is uncertain (503 or a lost response), do not resubmit the rotation blindly.\r\nContact support with the request ID; the secrets are returned only once.\r\nRotating the webhook signing secret updates the stored outbound signing secret for the partner. The observable\r\nwebhook behavior then follows the current webhook runtime implementation and rollout state.",
        "parameters": [
          {
            "name": "X-EligiPro-Timestamp",
            "in": "header",
            "description": "UTC timestamp in round-trip format. Example: 2026-06-03T18:15:27.1234567Z",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Nonce",
            "in": "header",
            "description": "Client-generated unique nonce, typically a UUID, used for replay protection.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Signature",
            "in": "header",
            "description": "HMAC SHA-256 signature using format 'sha256=<hex>'.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-KeyId",
            "in": "header",
            "description": "Optional signing key identifier that helps with rotation and troubleshooting.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RotateSigningSecretsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RotateSigningSecretsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RotateSigningSecretsRequest"
              }
            }
          }
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiEnvelopeOfRotateSigningSecretsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v3/company/{companyIdentification}": {
      "get": {
        "tags": [
          "Company"
        ],
        "summary": "Get the profile of one company accessible to the authenticated partner.",
        "description": "Unknown, inactive and unrelated companies all return 403. This is a business route, not the unsigned auth diagnostic.",
        "parameters": [
          {
            "name": "companyIdentification",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Timestamp",
            "in": "header",
            "description": "UTC timestamp in round-trip format. Example: 2026-06-03T18:15:27.1234567Z",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Nonce",
            "in": "header",
            "description": "Client-generated unique nonce, typically a UUID, used for replay protection.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Signature",
            "in": "header",
            "description": "HMAC SHA-256 signature using format 'sha256=<hex>'.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-KeyId",
            "in": "header",
            "description": "Optional signing key identifier that helps with rotation and troubleshooting.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiEnvelopeOfCompanyProfileResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v3/company/{companyIdentification}/usage": {
      "get": {
        "tags": [
          "Company"
        ],
        "summary": "Get month-to-date eligibility usage for one authorized company.",
        "description": "No body or query parameters. Includes all channels, not just this API. No activity returns zero counts.\r\n            Realtime counts require HTTP 200, not active coverage. This endpoint does not report fees or remaining plan capacity.",
        "parameters": [
          {
            "name": "companyIdentification",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Timestamp",
            "in": "header",
            "description": "UTC timestamp in round-trip format. Example: 2026-06-03T18:15:27.1234567Z",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Nonce",
            "in": "header",
            "description": "Client-generated unique nonce, typically a UUID, used for replay protection.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Signature",
            "in": "header",
            "description": "HMAC SHA-256 signature using format 'sha256=<hex>'.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-KeyId",
            "in": "header",
            "description": "Optional signing key identifier that helps with rotation and troubleshooting.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiEnvelopeOfCompanyUsageResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v3/company/{companyIdentification}/tags": {
      "get": {
        "tags": [
          "Tags"
        ],
        "summary": "List the tags configured for one authorized company.",
        "description": "Returns all tags, ordered by name (case-insensitive), then tagId. No pagination. An empty catalog returns 200 with an empty tags array.",
        "parameters": [
          {
            "name": "companyIdentification",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Timestamp",
            "in": "header",
            "description": "UTC timestamp in round-trip format. Example: 2026-06-03T18:15:27.1234567Z",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Nonce",
            "in": "header",
            "description": "Client-generated unique nonce, typically a UUID, used for replay protection.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Signature",
            "in": "header",
            "description": "HMAC SHA-256 signature using format 'sha256=<hex>'.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-KeyId",
            "in": "header",
            "description": "Optional signing key identifier that helps with rotation and troubleshooting.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiEnvelopeOfCompanyTagsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Tags"
        ],
        "summary": "Create a company tag without assigning it to patients.",
        "description": "An existing name in this company returns 409. Uses the default display color.",
        "parameters": [
          {
            "name": "companyIdentification",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Timestamp",
            "in": "header",
            "description": "UTC timestamp in round-trip format. Example: 2026-06-03T18:15:27.1234567Z",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Nonce",
            "in": "header",
            "description": "Client-generated unique nonce, typically a UUID, used for replay protection.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Signature",
            "in": "header",
            "description": "HMAC SHA-256 signature using format 'sha256=<hex>'.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-KeyId",
            "in": "header",
            "description": "Optional signing key identifier that helps with rotation and troubleshooting.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TagNameRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TagNameRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TagNameRequest"
              }
            }
          }
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiEnvelopeOfCompanyTag"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v3/company/{companyIdentification}/tags/{tagId}": {
      "patch": {
        "tags": [
          "Tags"
        ],
        "summary": "Rename a company tag without changing its ID, color or patient assignments.",
        "description": "Patient writes use names. Sending the old name after a rename can create a different tag.",
        "parameters": [
          {
            "name": "companyIdentification",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tagId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "X-EligiPro-Timestamp",
            "in": "header",
            "description": "UTC timestamp in round-trip format. Example: 2026-06-03T18:15:27.1234567Z",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Nonce",
            "in": "header",
            "description": "Client-generated unique nonce, typically a UUID, used for replay protection.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Signature",
            "in": "header",
            "description": "HMAC SHA-256 signature using format 'sha256=<hex>'.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-KeyId",
            "in": "header",
            "description": "Optional signing key identifier that helps with rotation and troubleshooting.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TagNameRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TagNameRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TagNameRequest"
              }
            }
          }
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiEnvelopeOfCompanyTag"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Tags"
        ],
        "summary": "Delete a company tag. No patient is deleted.",
        "parameters": [
          {
            "name": "companyIdentification",
            "in": "path",
            "description": "Authorized company identifier.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tagId",
            "in": "path",
            "description": "ID from this company's tag catalog.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "removeFromPatients",
            "in": "query",
            "description": "Defaults to false. If assigned, returns 409 with assignedPatientCount unless true.\r\n            True removes all assignments and the tag atomically. It cannot override an integrity conflict.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "X-EligiPro-Timestamp",
            "in": "header",
            "description": "UTC timestamp in round-trip format. Example: 2026-06-03T18:15:27.1234567Z",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Nonce",
            "in": "header",
            "description": "Client-generated unique nonce, typically a UUID, used for replay protection.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Signature",
            "in": "header",
            "description": "HMAC SHA-256 signature using format 'sha256=<hex>'.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-KeyId",
            "in": "header",
            "description": "Optional signing key identifier that helps with rotation and troubleshooting.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v3/company/{companyIdentification}/payors": {
      "get": {
        "tags": [
          "Payors"
        ],
        "summary": "Lists the CompanyPayors for the target CompanyClient and marks which entries are already related.",
        "description": "The response includes the full catalog of CompanyPayors available to the CompanyClient. Each item contains a root-level\r\nrelated flag, and when related is true the relationship object is also present.\r\nUse `view=all` to return all payors, `view=related` to return only related payors, and\r\n`view=active` to return only related payors whose relationship is active.",
        "parameters": [
          {
            "name": "companyIdentification",
            "in": "path",
            "description": "CompanyClient identifier used as the route scope for the request.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "view",
            "in": "query",
            "description": "Optional filter for the returned payors. Allowed values are `all`, `related`, and `active`.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "X-EligiPro-Timestamp",
            "in": "header",
            "description": "UTC timestamp in round-trip format. Example: 2026-06-03T18:15:27.1234567Z",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Nonce",
            "in": "header",
            "description": "Client-generated unique nonce, typically a UUID, used for replay protection.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Signature",
            "in": "header",
            "description": "HMAC SHA-256 signature using format 'sha256=<hex>'.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-KeyId",
            "in": "header",
            "description": "Optional signing key identifier that helps with rotation and troubleshooting.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiEnvelopeOfCompanyPayorListResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v3/company/{companyIdentification}/payors/{payorId}": {
      "put": {
        "tags": [
          "Payors"
        ],
        "summary": "Creates or updates a CompanyClient to CompanyPayor relationship in an idempotent way.",
        "description": "V3 treats the CompanyClient to CompanyPayor relationship as persistent. The relationship is not deleted through the public API.\r\nSending active=false updates the relationship to a non-visible state, and sending active=true reactivates it.\r\nThe request can also define defaultFrequency, which becomes the default patient schedule for that payor.\r\nWhen defaultFrequency is omitted and the relationship does not yet have one, V3 persists the super-default:\r\nevery day for payors of type 2, or day 1 of the month for other payors.",
        "parameters": [
          {
            "name": "companyIdentification",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "payorId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "X-EligiPro-Timestamp",
            "in": "header",
            "description": "UTC timestamp in round-trip format. Example: 2026-06-03T18:15:27.1234567Z",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Nonce",
            "in": "header",
            "description": "Client-generated unique nonce, typically a UUID, used for replay protection.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Signature",
            "in": "header",
            "description": "HMAC SHA-256 signature using format 'sha256=<hex>'.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-KeyId",
            "in": "header",
            "description": "Optional signing key identifier that helps with rotation and troubleshooting.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertCompanyPayorRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertCompanyPayorRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertCompanyPayorRequest"
              }
            }
          }
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiEnvelopeOfPayorSummary"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v3/company/{companyIdentification}/patients": {
      "post": {
        "tags": [
          "Patients"
        ],
        "summary": "Creates a new patient for the target CompanyClient.",
        "description": "Patient creation is atomic in V3: the patient and its initial payor relationships are created together.\r\nA patient must be created with at least one payor relationship.\r\nThe top-level patient demographic fields are optional at the HTTP contract level.\r\nThe selected or inferred criteria for each payor determine which patient fields must actually be present.\r\nIf a new payor omits frequency, V3 uses the CompanyClient to CompanyPayor defaultFrequency or the legacy super-default.\r\nWhen a payor of type 2 receives an explicit frequency, the API silently normalizes it to every day.\r\nIf a payor omits active during create, the relationship is created as active.\r\nIdempotency-Key is optional (QA preview). Without it, success returns the full patient. With it, first success and replay return a minimal 201 receipt and the same Location.\r\nIf creation is in progress (409), wait and retry with the same key and unchanged body; use a fresh timestamp, nonce and signature.\r\nIf the key belongs to a different request (409), do not retry the changed POST. Retry the original body only to recover its receipt within 24 hours.",
        "parameters": [
          {
            "name": "companyIdentification",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "Optional (QA preview). Omit for the full patient response. To recover a creation receipt for up to 24 hours, send one opaque key per intended create and keep the original body.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Timestamp",
            "in": "header",
            "description": "UTC timestamp in round-trip format. Example: 2026-06-03T18:15:27.1234567Z",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Nonce",
            "in": "header",
            "description": "Client-generated unique nonce, typically a UUID, used for replay protection.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Signature",
            "in": "header",
            "description": "HMAC SHA-256 signature using format 'sha256=<hex>'.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-KeyId",
            "in": "header",
            "description": "Optional signing key identifier that helps with rotation and troubleshooting.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePatientRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePatientRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePatientRequest"
              }
            }
          }
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "201": {
            "description": "Created. Without Idempotency-Key: full patient. With key: creation receipt on both first success and replay.",
            "headers": {
              "Location": {
                "description": "Path to the current patient resource.",
                "schema": {
                  "type": "string"
                }
              },
              "Idempotency-Replayed": {
                "description": "Keyed requests only: true when a prior creation is confirmed.",
                "schema": {
                  "type": "boolean"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ApiEnvelopeOfPatientResponse"
                    },
                    {
                      "$ref": "#/components/schemas/ApiEnvelopeOfPatientCreateReceipt"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Read detail before retrying. Creation in progress: wait briefly and retry the same key and unchanged body with a fresh timestamp, nonce and signature. After success, a replay returns 201, Idempotency-Replayed: true and the original Location. Different content: do not retry the changed POST. Recover the receipt with the original key and original body, or GET and PATCH the existing patient to correct it. Other business conflicts, including an existing externalId or the patient plan limit, are not instructions to retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "examples": {
                  "creationInProgress": {
                    "summary": "Retry: two identical POSTs overlap",
                    "value": {
                      "title": "Patient create conflicts with business rules",
                      "status": 409,
                      "detail": "Patient creation is in progress. Retry with the same key and body.",
                      "requestId": "example-in-progress"
                    }
                  },
                  "differentContent": {
                    "summary": "Do not retry: same key, gender changed from M to F",
                    "value": {
                      "title": "Patient create conflicts with business rules",
                      "status": 409,
                      "detail": "This key belongs to a different patient creation request.",
                      "requestId": "example-different-content"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v3/company/{companyIdentification}/patients/{externalId}": {
      "get": {
        "tags": [
          "Patients"
        ],
        "summary": "Retrieves a patient owned by the target CompanyClient using its external identifier.",
        "description": "This endpoint returns the patient snapshot plus the patient-to-payor relationships currently associated with that patient.\r\nV3 does not expose a full patient collection endpoint as a primary operational listing. Eligibility remains the main list surface.",
        "parameters": [
          {
            "name": "companyIdentification",
            "in": "path",
            "description": "CompanyClient identifier used as the route scope for the request.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "externalId",
            "in": "path",
            "description": "External patient identifier within the target CompanyClient.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "X-EligiPro-Timestamp",
            "in": "header",
            "description": "UTC timestamp in round-trip format. Example: 2026-06-03T18:15:27.1234567Z",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Nonce",
            "in": "header",
            "description": "Client-generated unique nonce, typically a UUID, used for replay protection.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Signature",
            "in": "header",
            "description": "HMAC SHA-256 signature using format 'sha256=<hex>'.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-KeyId",
            "in": "header",
            "description": "Optional signing key identifier that helps with rotation and troubleshooting.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiEnvelopeOfPatientResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "Patients"
        ],
        "summary": "Applies partial changes to an existing patient.",
        "description": "This is the main write surface for patient maintenance in V3.\r\nOmitted top-level fields keep their current values.\r\n```tags``` follow replace semantics only when they are sent:\r\nomit them to keep the current collection, or send an empty array to clear them.\r\n```payors``` are incremental: each sent payor is added or updated, and omitted payors are left untouched.\r\nThe patient ```active``` flag is also updated here, so a dedicated status-only endpoint is not required.\r\nIf a brand-new payor relationship omits frequency, V3 uses the CompanyClient to CompanyPayor defaultFrequency or the legacy super-default.\r\nWhen a payor of type 2 receives an explicit frequency, the API silently normalizes it to every day.\r\nIf a payor omits active during patch, the current relationship state is preserved.",
        "parameters": [
          {
            "name": "companyIdentification",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "externalId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "X-EligiPro-Timestamp",
            "in": "header",
            "description": "UTC timestamp in round-trip format. Example: 2026-06-03T18:15:27.1234567Z",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Nonce",
            "in": "header",
            "description": "Client-generated unique nonce, typically a UUID, used for replay protection.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Signature",
            "in": "header",
            "description": "HMAC SHA-256 signature using format 'sha256=<hex>'.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-KeyId",
            "in": "header",
            "description": "Optional signing key identifier that helps with rotation and troubleshooting.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchPatientRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchPatientRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PatchPatientRequest"
              }
            }
          }
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiEnvelopeOfPatientResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v3/company/{companyIdentification}/patients/{externalId}/payors/{payorId}": {
      "delete": {
        "tags": [
          "Patients"
        ],
        "summary": "Removes one CompanyPayor relationship from a patient.",
        "description": "This operation removes only the targeted patient-to-payor relationship.\r\nV3 prevents deleting the last remaining payor relationship for a patient.",
        "parameters": [
          {
            "name": "companyIdentification",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "externalId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "payorId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "X-EligiPro-Timestamp",
            "in": "header",
            "description": "UTC timestamp in round-trip format. Example: 2026-06-03T18:15:27.1234567Z",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Nonce",
            "in": "header",
            "description": "Client-generated unique nonce, typically a UUID, used for replay protection.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Signature",
            "in": "header",
            "description": "HMAC SHA-256 signature using format 'sha256=<hex>'.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-KeyId",
            "in": "header",
            "description": "Optional signing key identifier that helps with rotation and troubleshooting.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiEnvelopeOfPatientResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v3/company/{companyIdentification}/patients/{externalId}/payors/{payorId}/check": {
      "post": {
        "tags": [
          "Patients"
        ],
        "summary": "Forces a fresh eligibility check for an existing patient-payor relationship.",
        "description": "This operation uses the patient and patient-to-payor relationship already stored in EligiPro.\r\nWithout Idempotency-Key each call requests a fresh check. With the optional header, retry the same\r\noperation with the same key and fresh signing headers. A completed result can be replayed for 24 hours\r\nwithout another payor check. A pending request or key used for another patient/payor returns 409;\r\nan unconfirmed outcome returns 503 and is never automatically dispatched again with that key.\r\nThe response ```statusCode``` explains the functional outcome:\r\n<list type=\"bullet\"><item><description>```REALTIME```: the payor responded immediately and EligiPro created a new eligibility record. In this case ```eligibilityId``` and ```statusCreateDate``` are populated.</description></item><item><description>```SFTP```: EligiPro queued an asynchronous raw eligibility request for file-based processing, so there is no immediate ```eligibilityId```.</description></item><item><description>```REQUEST_NOT_ALLOWED```: the stored patient/payor relationship is not currently eligible for a forced check.</description></item><item><description>```NO_RESPONSE_AVAILABLE```: no immediate result was produced and no asynchronous request was queued.</description></item><item><description>```INTERNAL_ERROR```: EligiPro encountered an internal error while attempting the force check.</description></item></list>\r\nUse ```GET /v3/company/{companyIdentification}/eligibility/{eligibilityId}``` when you need the full compact eligibility detail for a ```REALTIME``` response.",
        "parameters": [
          {
            "name": "companyIdentification",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "externalId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "payorId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Timestamp",
            "in": "header",
            "description": "UTC timestamp in round-trip format. Example: 2026-06-03T18:15:27.1234567Z",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Nonce",
            "in": "header",
            "description": "Client-generated unique nonce, typically a UUID, used for replay protection.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Signature",
            "in": "header",
            "description": "HMAC SHA-256 signature using format 'sha256=<hex>'.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-KeyId",
            "in": "header",
            "description": "Optional signing key identifier that helps with rotation and troubleshooting.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiEnvelopeOfPatientPayorForceCheckResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v3/company/{companyIdentification}/eligibility": {
      "get": {
        "tags": [
          "Eligibility"
        ],
        "summary": "Lists the latest eligibility snapshot per patient-payor relationship for the target CompanyClient.",
        "description": "This is the main operational listing endpoint of V3. It is intentionally eligibility-focused rather than a pure patient collection.",
        "parameters": [
          {
            "name": "companyIdentification",
            "in": "path",
            "description": "CompanyClient identifier used as the route scope for the request.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Page",
            "in": "query",
            "description": "1-based page number.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "description": "Requested page size. The API normalizes it into a supported range.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "SortBy",
            "in": "query",
            "description": "Public sort key. Defaults to fullName.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SortDirection",
            "in": "query",
            "description": "Sort direction. Supported values are asc and desc.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PatientExternalId",
            "in": "query",
            "description": "Optional patient external identifier filter.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "SearchText",
            "in": "query",
            "description": "Broad text search used for patient name and member ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PayorId",
            "in": "query",
            "description": "Optional CompanyPayor identifier filter.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "ActiveOnly",
            "in": "query",
            "description": "When true, returns only active patient-payor rows.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "HasTpl",
            "in": "query",
            "description": "When true, filters rows with TPL information.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "HasChangeAlert",
            "in": "query",
            "description": "Reserved for the upcoming change-alert filter.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "WithoutCoverage",
            "in": "query",
            "description": "When true, filters rows interpreted as without coverage.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "TagIds",
            "in": "query",
            "description": "Comma-separated tag identifiers.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Timestamp",
            "in": "header",
            "description": "UTC timestamp in round-trip format. Example: 2026-06-03T18:15:27.1234567Z",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Nonce",
            "in": "header",
            "description": "Client-generated unique nonce, typically a UUID, used for replay protection.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Signature",
            "in": "header",
            "description": "HMAC SHA-256 signature using format 'sha256=<hex>'.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-KeyId",
            "in": "header",
            "description": "Optional signing key identifier that helps with rotation and troubleshooting.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiEnvelopeOfEligibilityStatusListResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v3/company/{companyIdentification}/eligibility/{eligibilityId}": {
      "get": {
        "tags": [
          "Eligibility"
        ],
        "summary": "Retrieves a single eligibility detail by identifier.",
        "description": "The response intentionally combines a summary snapshot from InsuranceStatus plus a generic detail object built from the raw 271 message.\r\nThe detail object is compact, EDI-oriented, and avoids payor-specific parser logic.",
        "parameters": [
          {
            "name": "companyIdentification",
            "in": "path",
            "description": "CompanyClient identifier used as the route scope for the request.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "eligibilityId",
            "in": "path",
            "description": "Identifier of the eligibility result to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "X-EligiPro-Timestamp",
            "in": "header",
            "description": "UTC timestamp in round-trip format. Example: 2026-06-03T18:15:27.1234567Z",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Nonce",
            "in": "header",
            "description": "Client-generated unique nonce, typically a UUID, used for replay protection.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Signature",
            "in": "header",
            "description": "HMAC SHA-256 signature using format 'sha256=<hex>'.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-KeyId",
            "in": "header",
            "description": "Optional signing key identifier that helps with rotation and troubleshooting.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiEnvelopeOfEligibilityDetailResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "501": {
            "description": "Not Implemented",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v3/company/{companyIdentification}/eligibility/{eligibilityId}/view": {
      "post": {
        "tags": [
          "Eligibility"
        ],
        "summary": "Creates a temporary HTML viewer session for one stored eligibility result.",
        "description": "The returned viewerUrl is a short-lived, opaque URL that renders partner-facing HTML derived from the stored compact eligibility detail.\r\nDo not expose your API key in the browser. Create the viewer session from your backend, then pass the returned viewerUrl to your iframe or browser shell.",
        "parameters": [
          {
            "name": "companyIdentification",
            "in": "path",
            "description": "CompanyClient identifier used as the route scope for the request.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "eligibilityId",
            "in": "path",
            "description": "Identifier of the stored eligibility result to render.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "X-EligiPro-Timestamp",
            "in": "header",
            "description": "UTC timestamp in round-trip format. Example: 2026-06-03T18:15:27.1234567Z",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Nonce",
            "in": "header",
            "description": "Client-generated unique nonce, typically a UUID, used for replay protection.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Signature",
            "in": "header",
            "description": "HMAC SHA-256 signature using format 'sha256=<hex>'.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-KeyId",
            "in": "header",
            "description": "Optional signing key identifier that helps with rotation and troubleshooting.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Optional viewer session options. parentOrigin can be supplied to allow iframe embedding from one browser origin.\r\nWhen parentOrigin is omitted, the resulting viewer URL can still be opened directly in a browser window, but iframe embedding is blocked.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EligibilityViewerSessionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/EligibilityViewerSessionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/EligibilityViewerSessionRequest"
              }
            }
          }
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiEnvelopeOfEligibilityViewerSessionResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v3/company/{companyIdentification}/eligibility/history": {
      "get": {
        "tags": [
          "Eligibility"
        ],
        "summary": "Lists eligibility history records for the target CompanyClient.",
        "description": "Use includeArchive to extend the search into archived historical records. searchText is the broad text filter and can be used\r\nfor patient names and member IDs.",
        "parameters": [
          {
            "name": "companyIdentification",
            "in": "path",
            "description": "CompanyClient identifier used as the route scope for the request.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Page",
            "in": "query",
            "description": "1-based page number.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "description": "Requested page size. The API normalizes it into a supported range.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "SortBy",
            "in": "query",
            "description": "Public sort key. Defaults to effectiveDate.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SortDirection",
            "in": "query",
            "description": "Sort direction. Supported values are asc and desc.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PatientExternalId",
            "in": "query",
            "description": "Optional patient external identifier filter.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "SearchText",
            "in": "query",
            "description": "Broad text search used for patient name and member ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PayorId",
            "in": "query",
            "description": "Optional CompanyPayor identifier filter.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "HasChangeAlert",
            "in": "query",
            "description": "Reserved for the upcoming change-alert filter.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "StartDate",
            "in": "query",
            "description": "Optional inclusive start date filter.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "EndDate",
            "in": "query",
            "description": "Optional inclusive end date filter.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "IncludeArchive",
            "in": "query",
            "description": "When true, extends the search into archived historical records.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "X-EligiPro-Timestamp",
            "in": "header",
            "description": "UTC timestamp in round-trip format. Example: 2026-06-03T18:15:27.1234567Z",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Nonce",
            "in": "header",
            "description": "Client-generated unique nonce, typically a UUID, used for replay protection.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Signature",
            "in": "header",
            "description": "HMAC SHA-256 signature using format 'sha256=<hex>'.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-KeyId",
            "in": "header",
            "description": "Optional signing key identifier that helps with rotation and troubleshooting.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiEnvelopeOfEligibilityHistoryListResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v3/company/{companyIdentification}/webhooks/configuration": {
      "get": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Read this company's current webhook configuration.",
        "description": "No webhook is sent. callbackUrl is the saved address or null when no address is set.",
        "parameters": [
          {
            "name": "companyIdentification",
            "in": "path",
            "required": true,
            "schema": {
              "maxLength": 50,
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Timestamp",
            "in": "header",
            "description": "UTC timestamp in round-trip format. Example: 2026-06-03T18:15:27.1234567Z",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Nonce",
            "in": "header",
            "description": "Client-generated unique nonce, typically a UUID, used for replay protection.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Signature",
            "in": "header",
            "description": "HMAC SHA-256 signature using format 'sha256=<hex>'.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-KeyId",
            "in": "header",
            "description": "Optional signing key identifier that helps with rotation and troubleshooting.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiEnvelopeOfWebhookConfiguration"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Test and set this company's webhook callback URL in one request.",
        "description": "Sign the PUT and supply callbackUrl. Production requires a public HTTPS hostname on port 443.\r\n            All resolved IP addresses must be public. QA accepts only the operator-controlled receiver.\r\n            It receives one JSON POST with event \"webhook.test\" and a UTC timestamp, signed like a delivery when webhook signing is configured.\r\n            Any 2xx within five seconds accepts the URL; no response body, verification ID or second call is needed.\r\n            Redirects are not followed. A failed test leaves the old URL unchanged; no clinical data or delivery is sent.",
        "parameters": [
          {
            "name": "companyIdentification",
            "in": "path",
            "required": true,
            "schema": {
              "maxLength": 50,
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Timestamp",
            "in": "header",
            "description": "UTC timestamp in round-trip format. Example: 2026-06-03T18:15:27.1234567Z",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Nonce",
            "in": "header",
            "description": "Client-generated unique nonce, typically a UUID, used for replay protection.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Signature",
            "in": "header",
            "description": "HMAC SHA-256 signature using format 'sha256=<hex>'.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-KeyId",
            "in": "header",
            "description": "Optional signing key identifier that helps with rotation and troubleshooting.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWebhookConfiguration"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWebhookConfiguration"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWebhookConfiguration"
              }
            }
          }
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiEnvelopeOfWebhookConfiguration"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v3/company/{companyIdentification}/webhooks/deliveries": {
      "get": {
        "tags": [
          "Webhooks"
        ],
        "summary": "List this company's tracked V3 webhook batches, newest first.",
        "description": "Use nextCursor as cursor with unchanged filters; omit it on the first page. from is inclusive and until is exclusive (ISO 8601 UTC). status: pending, delivered or notDelivered. No clinical payloads are returned.",
        "parameters": [
          {
            "name": "companyIdentification",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "maximum": 100,
              "minimum": 1,
              "type": "integer",
              "format": "int32",
              "default": 25
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "maxLength": 100,
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "until",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Timestamp",
            "in": "header",
            "description": "UTC timestamp in round-trip format. Example: 2026-06-03T18:15:27.1234567Z",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Nonce",
            "in": "header",
            "description": "Client-generated unique nonce, typically a UUID, used for replay protection.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Signature",
            "in": "header",
            "description": "HMAC SHA-256 signature using format 'sha256=<hex>'.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-KeyId",
            "in": "header",
            "description": "Optional signing key identifier that helps with rotation and troubleshooting.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiEnvelopeOfWebhookDeliveriesPage"
                }
              }
            }
          }
        }
      }
    },
    "/v3/company/{companyIdentification}/webhooks/deliveries/{deliveryId}": {
      "get": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Get one delivery and a page of its attempts, newest first.",
        "description": "Use the deliveryId from the list or X-EligiPro-DeliveryId. Use the detail response's nextCursor for older attempts. A failed redelivery does not undo a previous delivery.",
        "parameters": [
          {
            "name": "companyIdentification",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "deliveryId",
            "in": "path",
            "required": true,
            "schema": {
              "maxLength": 100,
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "maximum": 100,
              "minimum": 1,
              "type": "integer",
              "format": "int32",
              "default": 25
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-EligiPro-Timestamp",
            "in": "header",
            "description": "UTC timestamp in round-trip format. Example: 2026-06-03T18:15:27.1234567Z",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Nonce",
            "in": "header",
            "description": "Client-generated unique nonce, typically a UUID, used for replay protection.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Signature",
            "in": "header",
            "description": "HMAC SHA-256 signature using format 'sha256=<hex>'.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-KeyId",
            "in": "header",
            "description": "Optional signing key identifier that helps with rotation and troubleshooting.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiEnvelopeOfWebhookDeliveryDetail"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v3/company/{companyIdentification}/webhooks/deliveries/{deliveryId}/redeliver": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Request asynchronous redelivery of the original batch.",
        "description": "No body or destination override. A 202 receipt is not proof of delivery. Reuse the optional Idempotency-Key for a retry of the same operation, but sign each API request with a new nonce and timestamp.",
        "parameters": [
          {
            "name": "companyIdentification",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "deliveryId",
            "in": "path",
            "required": true,
            "schema": {
              "maxLength": 100,
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Timestamp",
            "in": "header",
            "description": "UTC timestamp in round-trip format. Example: 2026-06-03T18:15:27.1234567Z",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Nonce",
            "in": "header",
            "description": "Client-generated unique nonce, typically a UUID, used for replay protection.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-Signature",
            "in": "header",
            "description": "HMAC SHA-256 signature using format 'sha256=<hex>'.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-EligiPro-KeyId",
            "in": "header",
            "description": "Optional signing key identifier that helps with rotation and troubleshooting.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiEnvelopeOfWebhookRedeliveryReceipt"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ApiEnvelopeOfAuthInfoResponse": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "description": "Trace identifier associated with the current HTTP request.",
            "nullable": true
          },
          "version": {
            "type": "string",
            "description": "Public API major version used to serve the response.",
            "nullable": true
          },
          "data": {
            "$ref": "#/components/schemas/AuthInfoResponse"
          }
        },
        "additionalProperties": false,
        "description": "Standard response envelope for V3 payloads."
      },
      "ApiEnvelopeOfCompanyPayorListResponse": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "description": "Trace identifier associated with the current HTTP request.",
            "nullable": true
          },
          "version": {
            "type": "string",
            "description": "Public API major version used to serve the response.",
            "nullable": true
          },
          "data": {
            "$ref": "#/components/schemas/CompanyPayorListResponse"
          }
        },
        "additionalProperties": false,
        "description": "Standard response envelope for V3 payloads."
      },
      "ApiEnvelopeOfCompanyProfileResponse": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "description": "Trace identifier associated with the current HTTP request.",
            "nullable": true
          },
          "version": {
            "type": "string",
            "description": "Public API major version used to serve the response.",
            "nullable": true
          },
          "data": {
            "$ref": "#/components/schemas/CompanyProfileResponse"
          }
        },
        "additionalProperties": false,
        "description": "Standard response envelope for V3 payloads."
      },
      "ApiEnvelopeOfCompanyTag": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "description": "Trace identifier associated with the current HTTP request.",
            "nullable": true
          },
          "version": {
            "type": "string",
            "description": "Public API major version used to serve the response.",
            "nullable": true
          },
          "data": {
            "$ref": "#/components/schemas/CompanyTag"
          }
        },
        "additionalProperties": false,
        "description": "Standard response envelope for V3 payloads."
      },
      "ApiEnvelopeOfCompanyTagsResponse": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "description": "Trace identifier associated with the current HTTP request.",
            "nullable": true
          },
          "version": {
            "type": "string",
            "description": "Public API major version used to serve the response.",
            "nullable": true
          },
          "data": {
            "$ref": "#/components/schemas/CompanyTagsResponse"
          }
        },
        "additionalProperties": false,
        "description": "Standard response envelope for V3 payloads."
      },
      "ApiEnvelopeOfCompanyUsageResponse": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "description": "Trace identifier associated with the current HTTP request.",
            "nullable": true
          },
          "version": {
            "type": "string",
            "description": "Public API major version used to serve the response.",
            "nullable": true
          },
          "data": {
            "$ref": "#/components/schemas/CompanyUsageResponse"
          }
        },
        "additionalProperties": false,
        "description": "Standard response envelope for V3 payloads."
      },
      "ApiEnvelopeOfEligibilityDetailResponse": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "description": "Trace identifier associated with the current HTTP request.",
            "nullable": true
          },
          "version": {
            "type": "string",
            "description": "Public API major version used to serve the response.",
            "nullable": true
          },
          "data": {
            "$ref": "#/components/schemas/EligibilityDetailResponse"
          }
        },
        "additionalProperties": false,
        "description": "Standard response envelope for V3 payloads."
      },
      "ApiEnvelopeOfEligibilityHistoryListResponse": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "description": "Trace identifier associated with the current HTTP request.",
            "nullable": true
          },
          "version": {
            "type": "string",
            "description": "Public API major version used to serve the response.",
            "nullable": true
          },
          "data": {
            "$ref": "#/components/schemas/EligibilityHistoryListResponse"
          }
        },
        "additionalProperties": false,
        "description": "Standard response envelope for V3 payloads."
      },
      "ApiEnvelopeOfEligibilityStatusListResponse": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "description": "Trace identifier associated with the current HTTP request.",
            "nullable": true
          },
          "version": {
            "type": "string",
            "description": "Public API major version used to serve the response.",
            "nullable": true
          },
          "data": {
            "$ref": "#/components/schemas/EligibilityStatusListResponse"
          }
        },
        "additionalProperties": false,
        "description": "Standard response envelope for V3 payloads."
      },
      "ApiEnvelopeOfEligibilityViewerSessionResponse": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "description": "Trace identifier associated with the current HTTP request.",
            "nullable": true
          },
          "version": {
            "type": "string",
            "description": "Public API major version used to serve the response.",
            "nullable": true
          },
          "data": {
            "$ref": "#/components/schemas/EligibilityViewerSessionResponse"
          }
        },
        "additionalProperties": false,
        "description": "Standard response envelope for V3 payloads."
      },
      "ApiEnvelopeOfPatientCreateReceipt": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "description": "Trace identifier associated with the current HTTP request.",
            "nullable": true
          },
          "version": {
            "type": "string",
            "description": "Public API major version used to serve the response.",
            "nullable": true
          },
          "data": {
            "$ref": "#/components/schemas/PatientCreateReceipt"
          }
        },
        "additionalProperties": false,
        "description": "Standard response envelope for V3 payloads."
      },
      "ApiEnvelopeOfPatientPayorForceCheckResponse": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "description": "Trace identifier associated with the current HTTP request.",
            "nullable": true
          },
          "version": {
            "type": "string",
            "description": "Public API major version used to serve the response.",
            "nullable": true
          },
          "data": {
            "$ref": "#/components/schemas/PatientPayorForceCheckResponse"
          }
        },
        "additionalProperties": false,
        "description": "Standard response envelope for V3 payloads."
      },
      "ApiEnvelopeOfPatientResponse": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "description": "Trace identifier associated with the current HTTP request.",
            "nullable": true
          },
          "version": {
            "type": "string",
            "description": "Public API major version used to serve the response.",
            "nullable": true
          },
          "data": {
            "$ref": "#/components/schemas/PatientResponse"
          }
        },
        "additionalProperties": false,
        "description": "Standard response envelope for V3 payloads."
      },
      "ApiEnvelopeOfPayorSummary": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "description": "Trace identifier associated with the current HTTP request.",
            "nullable": true
          },
          "version": {
            "type": "string",
            "description": "Public API major version used to serve the response.",
            "nullable": true
          },
          "data": {
            "$ref": "#/components/schemas/PayorSummary"
          }
        },
        "additionalProperties": false,
        "description": "Standard response envelope for V3 payloads."
      },
      "ApiEnvelopeOfRotateSigningSecretsResponse": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "description": "Trace identifier associated with the current HTTP request.",
            "nullable": true
          },
          "version": {
            "type": "string",
            "description": "Public API major version used to serve the response.",
            "nullable": true
          },
          "data": {
            "$ref": "#/components/schemas/RotateSigningSecretsResponse"
          }
        },
        "additionalProperties": false,
        "description": "Standard response envelope for V3 payloads."
      },
      "ApiEnvelopeOfWebhookConfiguration": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "description": "Trace identifier associated with the current HTTP request.",
            "nullable": true
          },
          "version": {
            "type": "string",
            "description": "Public API major version used to serve the response.",
            "nullable": true
          },
          "data": {
            "$ref": "#/components/schemas/WebhookConfiguration"
          }
        },
        "additionalProperties": false,
        "description": "Standard response envelope for V3 payloads."
      },
      "ApiEnvelopeOfWebhookDeliveriesPage": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "description": "Trace identifier associated with the current HTTP request.",
            "nullable": true
          },
          "version": {
            "type": "string",
            "description": "Public API major version used to serve the response.",
            "nullable": true
          },
          "data": {
            "$ref": "#/components/schemas/WebhookDeliveriesPage"
          }
        },
        "additionalProperties": false,
        "description": "Standard response envelope for V3 payloads."
      },
      "ApiEnvelopeOfWebhookDeliveryDetail": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "description": "Trace identifier associated with the current HTTP request.",
            "nullable": true
          },
          "version": {
            "type": "string",
            "description": "Public API major version used to serve the response.",
            "nullable": true
          },
          "data": {
            "$ref": "#/components/schemas/WebhookDeliveryDetail"
          }
        },
        "additionalProperties": false,
        "description": "Standard response envelope for V3 payloads."
      },
      "ApiEnvelopeOfWebhookRedeliveryReceipt": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "description": "Trace identifier associated with the current HTTP request.",
            "nullable": true
          },
          "version": {
            "type": "string",
            "description": "Public API major version used to serve the response.",
            "nullable": true
          },
          "data": {
            "$ref": "#/components/schemas/WebhookRedeliveryReceipt"
          }
        },
        "additionalProperties": false,
        "description": "Standard response envelope for V3 payloads."
      },
      "AuthInfoResponse": {
        "type": "object",
        "properties": {
          "headerName": {
            "type": "string",
            "description": "Expected request header name for the partner API key.",
            "nullable": true
          },
          "partnerId": {
            "type": "integer",
            "description": "Internal EligiPro identifier of the authenticated partner.",
            "format": "int32"
          },
          "partnerCode": {
            "type": "string",
            "description": "Optional partner code when available.",
            "nullable": true
          },
          "apiUserId": {
            "type": "integer",
            "description": "Internal EligiPro identifier of the API user associated with the key.",
            "format": "int32"
          },
          "companyIdentification": {
            "type": "string",
            "description": "Requested CompanyClient identification value.",
            "nullable": true
          },
          "companyDescription": {
            "type": "string",
            "description": "Display name of the resolved CompanyClient.",
            "nullable": true
          },
          "status": {
            "type": "string",
            "description": "High-level authorization result for the current key and company pair.",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "description": "Human-readable explanation of the authorization result.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Information resolved from the API key and the requested CompanyClient."
      },
      "CompactEligibilityAdditionalInformation": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "type": "string",
            "nullable": true
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "quantity": {
            "type": "string",
            "nullable": true
          },
          "measurements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CompactEligibilityMeasurement"
            },
            "nullable": true
          },
          "surfaceLayerPositions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "typeCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CompactEligibilityAddress": {
        "type": "object",
        "properties": {
          "additionalNameLine1": {
            "type": "string",
            "nullable": true
          },
          "additionalNameLine2": {
            "type": "string",
            "nullable": true
          },
          "addressLine1": {
            "type": "string",
            "nullable": true
          },
          "addressLine2": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "postalCode": {
            "type": "string",
            "nullable": true
          },
          "countryCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CompactEligibilityBenefit": {
        "type": "object",
        "properties": {
          "benefitType": {
            "type": "string",
            "nullable": true
          },
          "benefitTypeCode": {
            "type": "string",
            "nullable": true
          },
          "coverageLevel": {
            "type": "string",
            "nullable": true
          },
          "serviceTypes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "insuranceType": {
            "type": "string",
            "nullable": true
          },
          "planCoverage": {
            "type": "string",
            "nullable": true
          },
          "planCoverageDisplay": {
            "type": "string",
            "nullable": true
          },
          "timePeriod": {
            "type": "string",
            "nullable": true
          },
          "amount": {
            "type": "string",
            "nullable": true
          },
          "percentage": {
            "type": "string",
            "nullable": true
          },
          "quantity": {
            "$ref": "#/components/schemas/CompactEligibilityQuantity"
          },
          "authorization": {
            "type": "string",
            "nullable": true
          },
          "inPlanNetwork": {
            "type": "string",
            "nullable": true
          },
          "dates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CompactEligibilityDate"
            },
            "nullable": true
          },
          "references": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CompactEligibilityReference"
            },
            "nullable": true
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CompactEligibilityError"
            },
            "nullable": true
          },
          "messages": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "relatedEntities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CompactEligibilityRelatedEntity"
            },
            "nullable": true
          },
          "financialEntries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CompactEligibilityFinancialEntry"
            },
            "nullable": true
          },
          "serviceDelivery": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CompactEligibilityServiceDelivery"
            },
            "nullable": true
          },
          "additionalInformation": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CompactEligibilityAdditionalInformation"
            },
            "nullable": true
          },
          "procedure": {
            "$ref": "#/components/schemas/CompactEligibilityProcedure"
          },
          "diagnosisPointers": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "inPlanNetworkIndicatorCode": {
            "type": "string",
            "nullable": true
          },
          "coverageLevelCode": {
            "type": "string",
            "nullable": true
          },
          "insuranceTypeCode": {
            "type": "string",
            "nullable": true
          },
          "timePeriodQualifierCode": {
            "type": "string",
            "nullable": true
          },
          "quantityQualifierCode": {
            "type": "string",
            "nullable": true
          },
          "serviceTypeCodes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CompactEligibilityCommunication": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CompactEligibilityContact": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "communications": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CompactEligibilityCommunication"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CompactEligibilityDate": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "type": "string",
            "nullable": true
          },
          "from": {
            "type": "string",
            "nullable": true
          },
          "to": {
            "type": "string",
            "nullable": true
          },
          "typeCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CompactEligibilityDetail": {
        "type": "object",
        "properties": {
          "header": {
            "$ref": "#/components/schemas/CompactEligibilityHeader"
          },
          "recipient": {
            "$ref": "#/components/schemas/CompactEligibilityParty"
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CompactEligibilityError"
            },
            "nullable": true
          },
          "benefits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CompactEligibilityBenefit"
            },
            "nullable": true
          },
          "subscriber": {
            "$ref": "#/components/schemas/CompactEligibilityParty"
          }
        },
        "additionalProperties": false
      },
      "CompactEligibilityError": {
        "type": "object",
        "properties": {
          "response": {
            "type": "string",
            "nullable": true
          },
          "agency": {
            "type": "string",
            "nullable": true
          },
          "reason": {
            "type": "string",
            "nullable": true
          },
          "followUpAction": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CompactEligibilityFinancialEntry": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "inPlanNetwork": {
            "type": "string",
            "nullable": true
          },
          "coverageLevel": {
            "type": "string",
            "nullable": true
          },
          "amount": {
            "type": "string",
            "nullable": true
          },
          "units": {
            "type": "string",
            "nullable": true
          },
          "amountTimePeriod": {
            "type": "string",
            "nullable": true
          },
          "remaining": {
            "type": "string",
            "nullable": true
          },
          "remainingTimePeriod": {
            "type": "string",
            "nullable": true
          },
          "total": {
            "type": "string",
            "nullable": true
          },
          "totalTimePeriod": {
            "type": "string",
            "nullable": true
          },
          "messages": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CompactEligibilityHeader": {
        "type": "object",
        "properties": {
          "interchangeControlNumber": {
            "type": "string",
            "nullable": true
          },
          "referenceIdentification": {
            "type": "string",
            "nullable": true
          },
          "transactionDate": {
            "type": "string",
            "nullable": true
          },
          "transactionTime": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CompactEligibilityIdentification": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CompactEligibilityInfo": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "nullable": true
          },
          "organizationName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "middleName": {
            "type": "string",
            "nullable": true
          },
          "prefix": {
            "type": "string",
            "nullable": true
          },
          "suffix": {
            "type": "string",
            "nullable": true
          },
          "identification": {
            "$ref": "#/components/schemas/CompactEligibilityIdentification"
          },
          "relationship": {
            "type": "string",
            "nullable": true
          },
          "birthDate": {
            "type": "string",
            "nullable": true
          },
          "gender": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CompactEligibilityMeasurement": {
        "type": "object",
        "properties": {
          "unit": {
            "type": "string",
            "nullable": true
          },
          "exponent": {
            "type": "string",
            "nullable": true
          },
          "multiplier": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CompactEligibilityParty": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "relationshipToSubscriber": {
            "type": "string",
            "nullable": true
          },
          "info": {
            "$ref": "#/components/schemas/CompactEligibilityInfo"
          },
          "address": {
            "$ref": "#/components/schemas/CompactEligibilityAddress"
          },
          "additionalIdentifiers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CompactEligibilityReference"
            },
            "nullable": true
          },
          "contacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CompactEligibilityContact"
            },
            "nullable": true
          },
          "providerInformation": {
            "$ref": "#/components/schemas/CompactEligibilityProvider"
          }
        },
        "additionalProperties": false
      },
      "CompactEligibilityProcedure": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "productOrServiceId": {
            "type": "string",
            "nullable": true
          },
          "modifiers": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "endProductOrServiceId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CompactEligibilityProvider": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "identification": {
            "$ref": "#/components/schemas/CompactEligibilityIdentification"
          }
        },
        "additionalProperties": false
      },
      "CompactEligibilityQuantity": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CompactEligibilityReference": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "typeCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CompactEligibilityRelatedEntity": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "info": {
            "$ref": "#/components/schemas/CompactEligibilityInfo"
          },
          "address": {
            "$ref": "#/components/schemas/CompactEligibilityAddress"
          },
          "additionalIdentifiers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CompactEligibilityReference"
            },
            "nullable": true
          },
          "contacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CompactEligibilityContact"
            },
            "nullable": true
          },
          "providerInformation": {
            "$ref": "#/components/schemas/CompactEligibilityProvider"
          },
          "entityRoleCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CompactEligibilityServiceDelivery": {
        "type": "object",
        "properties": {
          "quantity": {
            "$ref": "#/components/schemas/CompactEligibilityQuantity"
          },
          "unit": {
            "$ref": "#/components/schemas/CompactEligibilityQuantity"
          },
          "period": {
            "$ref": "#/components/schemas/CompactEligibilityQuantity"
          },
          "deliveryPattern": {
            "type": "string",
            "nullable": true
          },
          "deliveryPatternTime": {
            "type": "string",
            "nullable": true
          },
          "quantityTypeCode": {
            "type": "string",
            "nullable": true
          },
          "measurementTypeCode": {
            "type": "string",
            "nullable": true
          },
          "periodTypeCode": {
            "type": "string",
            "nullable": true
          },
          "deliveryPatternCode": {
            "type": "string",
            "nullable": true
          },
          "deliveryPatternTimeCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CompanyPayorListResponse": {
        "type": "object",
        "properties": {
          "companyIdentification": {
            "type": "string",
            "nullable": true
          },
          "companyDescription": {
            "type": "string",
            "nullable": true
          },
          "payors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PayorSummary"
            },
            "nullable": true
          },
          "identifierCodes": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Payor list response scoped to a single CompanyClient."
      },
      "CompanyProfileResponse": {
        "type": "object",
        "properties": {
          "companyIdentification": {
            "type": "string",
            "description": "Partner-facing company identifier, preserved as text.",
            "nullable": true
          },
          "companyDescription": {
            "type": "string",
            "description": "Display name of the company.",
            "nullable": true
          },
          "active": {
            "type": "boolean",
            "description": "True for an accessible company. Inactive companies cannot be read."
          },
          "statePrefix": {
            "type": "string",
            "description": "Configured state abbreviation, or null if not configured.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Profile of the active company authorized for this partner."
      },
      "CompanyTag": {
        "type": "object",
        "properties": {
          "tagId": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "A company tag. Use tagId in eligibility tagIds filters and name in a patient's tags array."
      },
      "CompanyTagsResponse": {
        "type": "object",
        "properties": {
          "companyIdentification": {
            "type": "string",
            "nullable": true
          },
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CompanyTag"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The company's full tag catalog, including tags not currently assigned to patients."
      },
      "CompanyUsageResponse": {
        "type": "object",
        "properties": {
          "companyIdentification": {
            "type": "string",
            "description": "Partner-facing identifier, including leading zeros.",
            "nullable": true
          },
          "period": {
            "type": "string",
            "description": "Current UTC calendar month (YYYY-MM).",
            "nullable": true
          },
          "uniquePatientsChecked": {
            "type": "integer",
            "description": "Distinct patients with a recorded eligibility result effective this month to date, including file checks.",
            "format": "int64"
          },
          "activePatientsChecked": {
            "type": "integer",
            "description": "Subset of uniquePatientsChecked currently active and not deleted. Not plan utilization.",
            "format": "int64"
          },
          "successfulRealtimeChecks": {
            "$ref": "#/components/schemas/SuccessfulRealtimeChecks"
          }
        },
        "additionalProperties": false,
        "description": "Company-wide eligibility activity for the current UTC calendar month, not an invoice or API call count."
      },
      "CreatePatientRequest": {
        "type": "object",
        "properties": {
          "externalId": {
            "type": "integer",
            "format": "int32"
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "DOB": {
            "type": "string",
            "nullable": true
          },
          "gender": {
            "type": "string",
            "description": "Patient gender. Send M or F; male and female are also accepted case-insensitively and normalized to M or F.",
            "nullable": true,
            "example": "M"
          },
          "ssn": {
            "type": "string",
            "nullable": true
          },
          "cardControlId": {
            "type": "string",
            "nullable": true
          },
          "active": {
            "type": "boolean",
            "nullable": true
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "payors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PatientPayorRequest"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Planned request body for patient create operations. If Active is omitted, the API creates the patient as active.\r\nDemographic fields are not universally required at the HTTP contract level; the selected or inferred payor criteria decide which fields must be present."
      },
      "Criteria": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Public representation of a payor matching criteria entry."
      },
      "EligibilityDetailResponse": {
        "type": "object",
        "properties": {
          "companyIdentification": {
            "type": "string",
            "nullable": true
          },
          "patient": {
            "$ref": "#/components/schemas/EligibilityPatientDetail"
          },
          "payor": {
            "$ref": "#/components/schemas/EligibilityPayorDetail"
          },
          "summary": {
            "$ref": "#/components/schemas/EligibilitySummaryResponse"
          },
          "previous": {
            "$ref": "#/components/schemas/EligibilitySummaryResponse"
          },
          "detail": {
            "$ref": "#/components/schemas/CompactEligibilityDetail"
          }
        },
        "additionalProperties": false,
        "description": "Eligibility detail payload combining summary and generic X12 detail."
      },
      "EligibilityHistoryItem": {
        "type": "object",
        "properties": {
          "eligibilityId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "patient": {
            "$ref": "#/components/schemas/EligibilityHistoryPatientSummary"
          },
          "payor": {
            "$ref": "#/components/schemas/EligibilityHistoryPayorSummary"
          },
          "effectiveDate": {
            "type": "string",
            "nullable": true
          },
          "benefitPlan": {
            "type": "string",
            "nullable": true
          },
          "managedCare": {
            "type": "string",
            "nullable": true
          },
          "planName": {
            "type": "string",
            "nullable": true
          },
          "tpl": {
            "type": "string",
            "nullable": true
          },
          "hasChangeAlert": {
            "type": "boolean"
          },
          "source": {
            "$ref": "#/components/schemas/EligibilitySourceInfo"
          },
          "lastUpdateDate": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Single row in the eligibility history response."
      },
      "EligibilityHistoryListResponse": {
        "type": "object",
        "properties": {
          "companyIdentification": {
            "type": "string",
            "nullable": true
          },
          "companyDescription": {
            "type": "string",
            "nullable": true
          },
          "results": {
            "$ref": "#/components/schemas/PagedResponseOfEligibilityHistoryItem"
          }
        },
        "additionalProperties": false,
        "description": "Paged historical eligibility response scoped to one CompanyClient."
      },
      "EligibilityHistoryPatientSummary": {
        "type": "object",
        "properties": {
          "externalId": {
            "type": "integer",
            "format": "int32"
          },
          "fullName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EligibilityHistoryPayorSummary": {
        "type": "object",
        "properties": {
          "payorId": {
            "type": "integer",
            "format": "int32"
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EligibilityPatientDetail": {
        "type": "object",
        "properties": {
          "externalId": {
            "type": "integer",
            "format": "int32"
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "fullName": {
            "type": "string",
            "nullable": true
          },
          "DOB": {
            "type": "string",
            "nullable": true
          },
          "gender": {
            "type": "string",
            "nullable": true
          },
          "ssn": {
            "type": "string",
            "nullable": true
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Detailed patient block used by the eligibility detail endpoint."
      },
      "EligibilityPatientSummary": {
        "type": "object",
        "properties": {
          "externalId": {
            "type": "integer",
            "format": "int32"
          },
          "fullName": {
            "type": "string",
            "nullable": true
          },
          "DOB": {
            "type": "string",
            "nullable": true
          },
          "gender": {
            "type": "string",
            "nullable": true
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Compact patient information used by eligibility list endpoints."
      },
      "EligibilityPayorDetail": {
        "type": "object",
        "properties": {
          "payorId": {
            "type": "integer",
            "format": "int32"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "statePrefix": {
            "type": "string",
            "nullable": true
          },
          "active": {
            "type": "boolean"
          },
          "memberID": {
            "type": "string",
            "nullable": true
          },
          "criteriaId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "criteriaDescription": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Detailed payor block used by the eligibility detail endpoint."
      },
      "EligibilityPayorSummary": {
        "type": "object",
        "properties": {
          "payorId": {
            "type": "integer",
            "format": "int32"
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Compact payor information used by eligibility list endpoints."
      },
      "EligibilitySourceInfo": {
        "type": "object",
        "properties": {
          "requestMethod": {
            "type": "string",
            "nullable": true
          },
          "requestType": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Current representation of the source classification returned by eligibility history."
      },
      "EligibilityStatusInfo": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Operational status associated with one eligibility row."
      },
      "EligibilityStatusItem": {
        "type": "object",
        "properties": {
          "patient": {
            "$ref": "#/components/schemas/EligibilityPatientSummary"
          },
          "payor": {
            "$ref": "#/components/schemas/EligibilityPayorSummary"
          },
          "memberID": {
            "type": "string",
            "nullable": true
          },
          "eligibility": {
            "$ref": "#/components/schemas/EligibilitySummary"
          }
        },
        "additionalProperties": false,
        "description": "Single row in the latest eligibility grid."
      },
      "EligibilityStatusListResponse": {
        "type": "object",
        "properties": {
          "companyIdentification": {
            "type": "string",
            "nullable": true
          },
          "companyDescription": {
            "type": "string",
            "nullable": true
          },
          "results": {
            "$ref": "#/components/schemas/PagedResponseOfEligibilityStatusItem"
          }
        },
        "additionalProperties": false,
        "description": "Paged latest eligibility response scoped to one CompanyClient."
      },
      "EligibilitySummary": {
        "type": "object",
        "properties": {
          "eligibilityId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/EligibilityStatusInfo"
          },
          "effectiveDate": {
            "type": "string",
            "nullable": true
          },
          "benefitPlan": {
            "type": "string",
            "nullable": true
          },
          "managedCare": {
            "type": "string",
            "nullable": true
          },
          "planName": {
            "type": "string",
            "nullable": true
          },
          "tpl": {
            "type": "string",
            "nullable": true
          },
          "hasChangeAlert": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "Operational eligibility snapshot used in list endpoints."
      },
      "EligibilitySummaryResponse": {
        "type": "object",
        "properties": {
          "eligibilityId": {
            "type": "integer",
            "format": "int32"
          },
          "effectiveDate": {
            "type": "string",
            "nullable": true
          },
          "benefitPlan": {
            "type": "string",
            "nullable": true
          },
          "managedCare": {
            "type": "string",
            "nullable": true
          },
          "planName": {
            "type": "string",
            "nullable": true
          },
          "tpl": {
            "type": "string",
            "nullable": true
          },
          "hasTpl": {
            "type": "boolean"
          },
          "hasChanged": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "Summary snapshot returned by the eligibility detail endpoint."
      },
      "EligibilityViewerSessionRequest": {
        "type": "object",
        "properties": {
          "parentOrigin": {
            "type": "string",
            "description": "Optional browser origin that will be allowed to embed the resulting viewer URL inside an iframe.\r\nWhen omitted, the viewer URL can still be opened directly in a browser window, but embedding is blocked.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Request used to create a temporary HTML viewer session for one stored eligibility result."
      },
      "EligibilityViewerSessionResponse": {
        "type": "object",
        "properties": {
          "companyIdentification": {
            "type": "string",
            "nullable": true
          },
          "eligibilityId": {
            "type": "integer",
            "format": "int32"
          },
          "viewerUrl": {
            "type": "string",
            "nullable": true
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          },
          "parentOrigin": {
            "type": "string",
            "nullable": true
          },
          "iframeAllowed": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "Response returned after creating a temporary HTML viewer session."
      },
      "Frequency": {
        "type": "object",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/FrequencyType"
          },
          "daysOfWeek": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "daysOfMonth": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "includeLastDayOfMonth": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FrequencyType": {
        "enum": [
          "Everyday",
          "DaysOfWeek",
          "DaysOfMonth",
          "FirstAndLastDayOfMonth",
          "Custom"
        ],
        "type": "string",
        "description": "Semantic patient-payor schedule type. Custom combines daysOfWeek, daysOfMonth and includeLastDayOfMonth with OR; at least one condition is required. Send the string value, not a legacy numeric frequency identifier."
      },
      "HealthResponse": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "Current health status of the host.",
            "nullable": true
          },
          "service": {
            "type": "string",
            "description": "Service name reported by the host.",
            "nullable": true
          },
          "utcNow": {
            "type": "string",
            "description": "Current server time in UTC.",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "Simple health payload for the public V3 host."
      },
      "PagedResponseOfEligibilityHistoryItem": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EligibilityHistoryItem"
            },
            "description": "Collection of items in the current page.",
            "nullable": true
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationMetadata"
          }
        },
        "additionalProperties": false,
        "description": "Standard paged result wrapper for V3 list endpoints."
      },
      "PagedResponseOfEligibilityStatusItem": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EligibilityStatusItem"
            },
            "description": "Collection of items in the current page.",
            "nullable": true
          },
          "pagination": {
            "$ref": "#/components/schemas/PaginationMetadata"
          }
        },
        "additionalProperties": false,
        "description": "Standard paged result wrapper for V3 list endpoints."
      },
      "PaginationMetadata": {
        "type": "object",
        "properties": {
          "page": {
            "type": "integer",
            "description": "Current 1-based page number.",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "description": "Requested page size after normalization.",
            "format": "int32"
          },
          "totalItems": {
            "type": "integer",
            "description": "Total number of items matching the query.",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "description": "Total page count for the current query.",
            "format": "int32"
          },
          "hasPreviousPage": {
            "type": "boolean",
            "description": "Indicates whether a previous page exists."
          },
          "hasNextPage": {
            "type": "boolean",
            "description": "Indicates whether a next page exists."
          },
          "sortBy": {
            "type": "string",
            "description": "Public sort key applied to the query.",
            "nullable": true
          },
          "sortDirection": {
            "type": "string",
            "description": "Public sort direction applied to the query.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Paging metadata returned with list endpoints."
      },
      "PatchPatientRequest": {
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "DOB": {
            "type": "string",
            "nullable": true
          },
          "gender": {
            "type": "string",
            "description": "Patient gender. Send M or F; male and female are also accepted case-insensitively and normalized to M or F.",
            "nullable": true,
            "example": "M"
          },
          "ssn": {
            "type": "string",
            "nullable": true
          },
          "cardControlId": {
            "type": "string",
            "nullable": true
          },
          "active": {
            "type": "boolean",
            "nullable": true
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "payors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PatientPayorRequest"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Partial request body for updating an existing patient."
      },
      "PatientCreateReceipt": {
        "type": "object",
        "properties": {
          "companyIdentification": {
            "type": "string",
            "nullable": true
          },
          "externalId": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Creation confirmation, not a snapshot of the patient's current demographics."
      },
      "PatientPayorForceCheckResponse": {
        "type": "object",
        "properties": {
          "companyIdentification": {
            "type": "string",
            "nullable": true
          },
          "externalId": {
            "type": "integer",
            "format": "int32"
          },
          "payorId": {
            "type": "integer",
            "format": "int32"
          },
          "statusCode": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "eligibilityId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "statusCreateDate": {
            "type": "string",
            "nullable": true
          },
          "benefitPlan": {
            "type": "string",
            "nullable": true
          },
          "planName": {
            "type": "string",
            "nullable": true
          },
          "providerName": {
            "type": "string",
            "nullable": true
          },
          "carrierName": {
            "type": "string",
            "nullable": true
          },
          "hasTPL": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Response returned by the dedicated patient-payor force check endpoint."
      },
      "PatientPayorRequest": {
        "type": "object",
        "properties": {
          "payorId": {
            "type": "integer",
            "format": "int32"
          },
          "active": {
            "type": "boolean",
            "nullable": true
          },
          "memberID": {
            "type": "string",
            "nullable": true
          },
          "criteriaId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "frequency": {
            "$ref": "#/components/schemas/Frequency"
          }
        },
        "additionalProperties": false,
        "description": "Planned request body for a patient-payor relationship in write operations."
      },
      "PatientPayorResponse": {
        "type": "object",
        "properties": {
          "payorId": {
            "type": "integer",
            "format": "int32"
          },
          "payorDescription": {
            "type": "string",
            "nullable": true
          },
          "active": {
            "type": "boolean"
          },
          "memberID": {
            "type": "string",
            "nullable": true
          },
          "criteriaId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "criteriaDescription": {
            "type": "string",
            "nullable": true
          },
          "frequency": {
            "$ref": "#/components/schemas/Frequency"
          }
        },
        "additionalProperties": false,
        "description": "Public representation of a patient-payor relationship in read responses."
      },
      "PatientResponse": {
        "type": "object",
        "properties": {
          "companyIdentification": {
            "type": "string",
            "nullable": true
          },
          "externalId": {
            "type": "integer",
            "format": "int32"
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "DOB": {
            "type": "string",
            "nullable": true
          },
          "gender": {
            "type": "string",
            "nullable": true
          },
          "ssn": {
            "type": "string",
            "nullable": true
          },
          "cardControlId": {
            "type": "string",
            "nullable": true
          },
          "active": {
            "type": "boolean"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "payors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PatientPayorResponse"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Read response for a patient owned by a CompanyClient."
      },
      "PayorRelationship": {
        "type": "object",
        "properties": {
          "active": {
            "type": "boolean",
            "description": "Indicates whether the CompanyClient to CompanyPayor relationship is active."
          },
          "identifierCode": {
            "type": "string",
            "description": "Provider identifier qualifier configured for the relationship.",
            "nullable": true
          },
          "identifierNumber": {
            "type": "string",
            "description": "Provider identifier configured for the relationship.",
            "nullable": true
          },
          "defaultFrequency": {
            "$ref": "#/components/schemas/Frequency"
          }
        },
        "additionalProperties": false,
        "description": "Relationship-specific details for a CompanyClient to CompanyPayor link."
      },
      "PayorSummary": {
        "type": "object",
        "properties": {
          "payorId": {
            "type": "integer",
            "description": "Internal EligiPro identifier of the payor.",
            "format": "int32"
          },
          "description": {
            "type": "string",
            "description": "Display name of the payor.",
            "nullable": true
          },
          "category": {
            "type": "string",
            "description": "Current payor category label from the legacy source.",
            "nullable": true
          },
          "related": {
            "type": "boolean",
            "description": "Indicates whether the payor is already related to the CompanyClient."
          },
          "allowRealtime": {
            "type": "boolean",
            "description": "Indicates whether the payor allows real-time eligibility requests."
          },
          "criteria": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Criteria"
            },
            "description": "Supported patient matching criteria for this payor.",
            "nullable": true
          },
          "relationship": {
            "$ref": "#/components/schemas/PayorRelationship"
          }
        },
        "additionalProperties": false,
        "description": "Public representation of a CompanyPayor entry in the CompanyClient catalog."
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": { }
      },
      "RotateSigningSecretsRequest": {
        "type": "object",
        "properties": {
          "rotateRequestSigningSecret": {
            "type": "boolean",
            "description": "When true, EligiPro replaces the inbound request signing secret and key identifier for this partner."
          },
          "rotateWebhookSigningSecret": {
            "type": "boolean",
            "description": "When true, EligiPro replaces the outbound webhook signing secret and key identifier for this partner."
          }
        },
        "additionalProperties": false,
        "description": "Request payload used to replace one or both partner signing secrets."
      },
      "RotateSigningSecretsResponse": {
        "type": "object",
        "properties": {
          "partnerId": {
            "type": "integer",
            "description": "Internal EligiPro identifier of the authenticated partner.",
            "format": "int32"
          },
          "partnerCode": {
            "type": "string",
            "description": "Optional partner code when available.",
            "nullable": true
          },
          "requestSigning": {
            "$ref": "#/components/schemas/RotatedSigningSecretResponse"
          },
          "webhookSigning": {
            "$ref": "#/components/schemas/RotatedSigningSecretResponse"
          },
          "notes": {
            "type": "string",
            "description": "Operational note that the returned secret values must be stored immediately.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Result returned after a partner rotates one or both signing secrets."
      },
      "RotatedSigningSecretResponse": {
        "type": "object",
        "properties": {
          "operation": {
            "type": "string",
            "description": "Whether EligiPro created a secret for the first time or rotated an existing one.",
            "nullable": true
          },
          "keyId": {
            "type": "string",
            "description": "Active key identifier associated with this secret.",
            "nullable": true
          },
          "secret": {
            "type": "string",
            "description": "New shared secret. EligiPro does not expose it again after this response.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "One newly issued signing secret returned exactly once at rotation time."
      },
      "SuccessfulRealtimeChecks": {
        "type": "object",
        "properties": {
          "directConnection": {
            "type": "integer",
            "description": "Checks made through a direct payor connection, including Medicare.",
            "format": "int64"
          },
          "texasMedicaid": {
            "type": "integer",
            "description": "Texas Medicaid only.",
            "format": "int64"
          },
          "stateClearinghouse": {
            "type": "integer",
            "description": "State payors reached through a clearinghouse, whether PAR or non-PAR.",
            "format": "int64"
          },
          "commercialParClearinghouse": {
            "type": "integer",
            "description": "Non-state clearinghouse payors classified as participating.",
            "format": "int64"
          },
          "commercialNonParClearinghouse": {
            "type": "integer",
            "description": "Non-state clearinghouse payors classified as non-participating.",
            "format": "int64"
          }
        },
        "additionalProperties": false,
        "description": "Mutually exclusive categories of realtime requests (not unique patients)."
      },
      "TagNameRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Required. Up to 255 Windows-1252 bytes after trimming, without loss. Unique per company (case-insensitive, accent-sensitive).",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Name to create or assign to an existing tag."
      },
      "UpdateWebhookConfiguration": {
        "required": [
          "callbackUrl"
        ],
        "type": "object",
        "properties": {
          "callbackUrl": {
            "maxLength": 250,
            "minLength": 0,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "UpsertCompanyPayorRequest": {
        "type": "object",
        "properties": {
          "identifierCode": {
            "type": "string",
            "description": "Provider identifier qualifier supported by the selected payor.",
            "nullable": true
          },
          "identifierNumber": {
            "type": "string",
            "description": "Provider identifier value for the CompanyClient.",
            "nullable": true
          },
          "active": {
            "type": "boolean",
            "description": "Whether the CompanyClient to CompanyPayor relationship is operational."
          },
          "defaultFrequency": {
            "$ref": "#/components/schemas/Frequency"
          }
        },
        "additionalProperties": false,
        "description": "Planned request body for creating or updating a CompanyClient to CompanyPayor relationship, including its default patient frequency."
      },
      "WebhookAttempt": {
        "type": "object",
        "properties": {
          "attemptId": {
            "type": "string",
            "format": "uuid"
          },
          "origin": {
            "type": "string",
            "nullable": true
          },
          "queuedAt": {
            "type": "string",
            "format": "date-time"
          },
          "startedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "finishedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "httpStatus": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WebhookConfiguration": {
        "type": "object",
        "properties": {
          "companyIdentification": {
            "type": "string",
            "nullable": true
          },
          "callbackUrl": {
            "type": "string",
            "description": "Current callback address for this partner and company, or null if not set. GET never contacts the receiver.",
            "nullable": true,
            "example": "https://receiver.example.org/eligibility"
          }
        },
        "additionalProperties": false
      },
      "WebhookDeliveriesPage": {
        "type": "object",
        "properties": {
          "deliveries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebhookDelivery"
            },
            "nullable": true
          },
          "nextCursor": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WebhookDelivery": {
        "type": "object",
        "properties": {
          "deliveryId": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "itemCount": {
            "type": "integer",
            "format": "int32"
          },
          "deliveredAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "latestAttemptStatus": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WebhookDeliveryDetail": {
        "type": "object",
        "properties": {
          "delivery": {
            "$ref": "#/components/schemas/WebhookDelivery"
          },
          "attempts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebhookAttempt"
            },
            "nullable": true
          },
          "nextCursor": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WebhookRedeliveryReceipt": {
        "type": "object",
        "properties": {
          "deliveryId": {
            "type": "string",
            "nullable": true
          },
          "attemptId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "PartnerApiKey": {
        "type": "apiKey",
        "description": "Partner API key header used by EligiPro integrations. Some partners also require request signing headers on authenticated routes; GET /v3/auth/info remains the unsigned diagnostic exception.",
        "name": "EPAPIKey",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "PartnerApiKey": [ ]
    }
  ],
  "tags": [
    {
      "name": "EligiPro.Api.V3"
    },
    {
      "name": "Company"
    },
    {
      "name": "Tags"
    },
    {
      "name": "Payors"
    },
    {
      "name": "Patients"
    },
    {
      "name": "Eligibility"
    },
    {
      "name": "Webhooks"
    }
  ]
}