Balances

View insurance balances

GET
/insurance_balances

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.

Authorization

Authorization
Authorization<token>

In: header

Query Parameters

subdomain*string

Used to scope the request to the specified institution

location_id*integer

Used to scope the request to the specified location

Formatint32
sort?string

Optional comma-separated string of fields to sort on. Include a leading dash for descending order.

Available fields:

  • updated_at
  • -updated_at
patient_id?integer

Filter for balances of a specific patient

Formatint32
guarantor_id?integer

Filter for balances of a specific guarantor

Formatint32
updated_since?string

Insurance balances updated at or after the specified time (UTC). The comparison is inclusive, so a record whose updated_at exactly equals the given value is returned

Formatdate-time
start_cursor?string

First item of the current page. Starts empty

end_cursor?string

Last item of the current page. Starts empty

per_page?integer

Number of results to return per page. Maximum allowed amount is 1000.

Formatint32
Default5

Header Parameters

Nex-Api-Version*string

The NexHealth API version

Default"v3.0.0"

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/insurance_balances?subdomain=string&location_id=0&patient_id=162&guarantor_id=1001&updated_since=2024-04-12T10%3A30%3A00Z" \  -H "Nex-Api-Version: v3.0.0"
{  "code": false,  "description": "Description",  "error": [    "Error message"  ],  "data": [    {      "id": 113,      "patient_id": 115,      "guarantor_id": 116,      "location_id": 21,      "updated_at": "2020-06-05T20:16:57.007Z",      "estimated_amount_under_30": {        "amount": "62.00",        "currency": "USD"      },      "estimated_amount_31_60": {        "amount": "62.00",        "currency": "USD"      },      "estimated_amount_61_90": {        "amount": "62.00",        "currency": "USD"      },      "estimated_amount_over_90": {        "amount": "62.00",        "currency": "USD"      },      "billed_amount_under_30": {        "amount": "62.00",        "currency": "USD"      },      "billed_amount_31_60": {        "amount": "62.00",        "currency": "USD"      },      "billed_amount_61_90": {        "amount": "62.00",        "currency": "USD"      },      "billed_amount_over_90": {        "amount": "62.00",        "currency": "USD"      }    }  ],  "page_info": {    "has_previous_page": false,    "has_next_page": false,    "start_cursor": "AAAAA",    "end_cursor": "BBBBBB"  }}