Skip to Content
Clinic APIInsurances

Clinic Insurances API

Endpoints for managing insurance information within the clinic system.

Person Information

List Person Information

Get a list of person information records for insurance purposes.

Endpoint: GET /v1/clinic/insurances/person_informations
Authentication: Required

Query Parameters

ParameterTypeRequiredDescription
pageintegerNoPage number for pagination
page_sizeintegerNoNumber of items per page
patient_idintegerNoFilter by patient ID

Get Person Information Details

Endpoint: GET /v1/clinic/insurances/person_informations/{id}
Authentication: Required

Path Parameters

ParameterTypeRequiredDescription
idintegerYesPerson information ID

Create Person Information

Endpoint: POST /v1/clinic/insurances/person_informations
Authentication: Required

Request Body Parameters

ParameterTypeRequiredDescription
person_informationobjectYesPerson information data object
person_information.ownable_idintegerYesID of the ownable entity (usually patient)
person_information.ownable_typestringYesType of ownable entity (e.g., “Patient”)
person_information.first_namestringYesFirst name
person_information.last_namestringYesLast name
person_information.date_of_birthstringYesDate of birth (YYYY-MM-DD)
person_information.ssnstringNoSocial Security Number
person_information.phonestringNoPhone number
person_information.emailstringNoEmail address

Example Request

POST /v1/clinic/insurances/person_informations HTTP/1.1 Content-Type: application/json X-User-Token: your_token_here { "person_information": { "ownable_id": 1049, "ownable_type": "Patient", "first_name": "John", "last_name": "Doe", "date_of_birth": "1990-05-15", "ssn": "123-45-6789", "phone": "+1-555-123-4567", "email": "[email protected]" } }

Dependents

List Dependents

Get a list of dependents for insurance coverage.

Endpoint: GET /v1/clinic/insurances/dependents
Authentication: Required

Query Parameters

ParameterTypeRequiredDescription
pageintegerNoPage number for pagination
page_sizeintegerNoNumber of items per page
primary_holder_idintegerNoFilter by primary insurance holder ID

Create Dependent

Endpoint: POST /v1/clinic/insurances/dependents
Authentication: Required

Request Body Parameters

ParameterTypeRequiredDescription
dependentobjectYesDependent data object
dependent.primary_holder_idintegerYesID of the primary insurance holder
dependent.first_namestringYesDependent’s first name
dependent.last_namestringYesDependent’s last name
dependent.date_of_birthstringYesDependent’s date of birth (YYYY-MM-DD)
dependent.relationshipstringYesRelationship to primary holder
dependent.ssnstringNoDependent’s Social Security Number

Example Request

POST /v1/clinic/insurances/dependents HTTP/1.1 Content-Type: application/json X-User-Token: your_token_here { "dependent": { "primary_holder_id": 1049, "first_name": "Jane", "last_name": "Doe", "date_of_birth": "2010-03-20", "relationship": "child", "ssn": "987-65-4321" } }

Insurance Plans

List Insurance Plans

Get a list of available insurance plans.

Endpoint: GET /v1/clinic/insurances/plans
Authentication: Required

Query Parameters

ParameterTypeRequiredDescription
pageintegerNoPage number for pagination
page_sizeintegerNoNumber of items per page
plan_typestringNoFilter by plan type
carrierstringNoFilter by insurance carrier
activebooleanNoFilter by active status

Response Format

Person Information Response

{ "id": 123, "ownable_id": 1049, "ownable_type": "Patient", "first_name": "John", "last_name": "Doe", "date_of_birth": "1990-05-15", "ssn": "***-**-6789", "phone": "+1-555-123-4567", "email": "[email protected]", "created_at": "2023-10-20T10:00:00.000Z", "updated_at": "2023-10-20T10:00:00.000Z" }

Dependent Response

{ "id": 456, "primary_holder_id": 1049, "first_name": "Jane", "last_name": "Doe", "date_of_birth": "2010-03-20", "relationship": "child", "ssn": "***-**-4321", "created_at": "2023-10-20T10:00:00.000Z", "updated_at": "2023-10-20T10:00:00.000Z" }

Insurance Plan Response

{ "id": 789, "plan_name": "Premium Health Plan", "carrier": "Health Insurance Co.", "plan_type": "PPO", "coverage_details": { "deductible": 1000, "copay": 25, "out_of_pocket_max": 5000 }, "active": true, "created_at": "2023-10-20T10:00:00.000Z", "updated_at": "2023-10-20T10:00:00.000Z" }

Error Responses

422 Unprocessable Entity

{ "errors": { "first_name": ["can't be blank"], "date_of_birth": ["is invalid"], "ownable_id": ["must exist"] } }

404 Not Found

{ "errors": "Person information not found" }

Notes

  • SSN fields are masked in responses for security purposes
  • Date fields should be provided in YYYY-MM-DD format
  • The ownable_type is typically “Patient” but may support other entity types
  • Relationship values for dependents include: “spouse”, “child”, “parent”, “other”
  • Insurance plan details may vary based on carrier and plan type