---
title: "View insurance balances"
method: GET
path: "/insurance_balances"
tags: ["Balances"]
---

# View insurance balances

`GET /insurance_balances`

## Request

- Base URL: `https://nexhealth.info`
- URL: `https://nexhealth.info/insurance_balances`
- Auth: API key in header `Authorization`

This endpoint returns a list of insurance balances for a location: the amounts insurance is expected to pay, broken into aging buckets. You can filter by patient_id, guarantor_id or updated_since, and must provide at least one of these filters. location_id is always required, but does not satisfy the at-least-one-filter requirement on its own.

## Query parameters

- `subdomain` string, required
- `location_id` integer, required
- `sort` string
- `patient_id` integer
- `guarantor_id` integer
- `updated_since` string, date-time
- `start_cursor` string
- `end_cursor` string
- `per_page` integer

## Headers

- `Nex-Api-Version` string, required

## Response `200`

Successful

- APIV20240412EntitiesLedgerInsuranceBalanceCollectionResponseWithCursor: API_V20240412_Entities_Ledger_InsuranceBalance_Collection_Response_WithCursor model
  - `code` boolean: Indicates the success or failure of the request
  - `description` string: Additional context on the request to help with debugging.
  - `error` string[]: Any errors that occur during the execution of the request.
  - `data` APIV20240412EntitiesLedgerInsuranceBalance[]
    - `id` integer: Insurance balance id
    - `patient_id` integer, nullable: The ID of the patient this balance is assigned to
    - `guarantor_id` integer, nullable: The ID of the person responsible for paying this balance
    - `location_id` integer, nullable: The ID of the location this balance belongs to
    - `updated_at` string, date-time: Insurance Balance update date in UTC
    - `estimated_amount_under_30` APIV2EntitiesPrice
      - `amount` string: The currency value, in whole units (e.g. dollars)
      - `currency` string: The ISO currency code
    - `estimated_amount_31_60` APIV2EntitiesPrice
      - `amount` string: The currency value, in whole units (e.g. dollars)
      - `currency` string: The ISO currency code
    - `estimated_amount_61_90` APIV2EntitiesPrice
      - `amount` string: The currency value, in whole units (e.g. dollars)
      - `currency` string: The ISO currency code
    - `estimated_amount_over_90` APIV2EntitiesPrice
      - `amount` string: The currency value, in whole units (e.g. dollars)
      - `currency` string: The ISO currency code
    - `billed_amount_under_30` APIV2EntitiesPrice
      - `amount` string: The currency value, in whole units (e.g. dollars)
      - `currency` string: The ISO currency code
    - `billed_amount_31_60` APIV2EntitiesPrice
      - `amount` string: The currency value, in whole units (e.g. dollars)
      - `currency` string: The ISO currency code
    - `billed_amount_61_90` APIV2EntitiesPrice
      - `amount` string: The currency value, in whole units (e.g. dollars)
      - `currency` string: The ISO currency code
    - `billed_amount_over_90` APIV2EntitiesPrice
      - `amount` string: The currency value, in whole units (e.g. dollars)
      - `currency` string: The ISO currency code
  - `page_info` object: Pagination information that can be used for fetching previous and next pages.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `500`: Internal Server Error

---

[API](https://skmtc.dev/nexhealth/apis/nexhealth-api.md) - [All operations](https://skmtc.dev/nexhealth/apis/nexhealth-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nexhealth/apis/nexhealth-api/revisions/a180e830b672?raw)
