Balances

View guarantor balances

GET
/guarantor_balances

This endpoint returns the guarantor balances for the specified location. At least one of the guarantor_id or updated_since filters must be provided

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
guarantor_id?integer

Filter by the ID of the associated guarantor

Formatint32
updated_since?string

Guarantor balances updated after the specified time (UTC)

Formatdate-time
show_zero_balances?boolean

Show guarantor balances with zero total balance

Defaultfalse
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/guarantor_balances?subdomain=string&location_id=0&guarantor_id=115&updated_since=2024-04-12T10%3A30%3A00Z&show_zero_balances=false" \  -H "Nex-Api-Version: v3.0.0"
{  "code": false,  "description": "Description",  "error": [    "Error message"  ],  "data": [    {      "id": 113,      "foreign_id": "1",      "guarantor_id": 115,      "location_id": 115,      "updated_at": "2020-06-05T20:16:57.007Z",      "write_off_estimate": {        "amount": "62.00",        "currency": "USD"      },      "total_balance": {        "amount": "62.00",        "currency": "USD"      },      "insurance_estimate": {        "amount": "62.00",        "currency": "USD"      },      "guarantor_portion": {        "amount": "62.00",        "currency": "USD"      },      "total_balance_under_30": {        "amount": "62.00",        "currency": "USD"      },      "total_balance_31_60": {        "amount": "62.00",        "currency": "USD"      },      "total_balance_61_90": {        "amount": "62.00",        "currency": "USD"      },      "total_balance_over_90": {        "amount": "62.00",        "currency": "USD"      }    }  ],  "page_info": {    "has_previous_page": false,    "has_next_page": false,    "start_cursor": "AAAAA",    "end_cursor": "BBBBBB"  }}