Payment Plans

View payment plans

GET
/payment_plans

This endpoint returns payment plans for the specified location; at least one of guarantor_id, patient_id, or updated_since 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
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
patient_id?integer

Filter by patient

Formatint32
guarantor_id?integer

Filter by guarantor

Formatint32
updated_since?string

Filter for payment plans updated since a specific time

Formatdate-time

Header Parameters

Nex-Api-Version*string

The NexHealth API version

Default"v3.0.0"

Response Body

application/vnd.Nexhealth+json;version=2

application/vnd.Nexhealth+json;version=2

application/vnd.Nexhealth+json;version=2

application/vnd.Nexhealth+json;version=2

application/vnd.Nexhealth+json;version=2

curl -X GET "https://example.com/payment_plans?subdomain=string&location_id=0" \  -H "Nex-Api-Version: v3.0.0"
{  "code": false,  "description": "Description",  "error": [    "Error message"  ],  "data": [    {      "id": 113,      "patient_id": 115,      "guarantor_id": 115,      "first_payment_due_date": "2020-06-05",      "created_date": "2020-06-05",      "active": true    }  ],  "page_info": {    "has_previous_page": false,    "has_next_page": false,    "start_cursor": "AAAAA",    "end_cursor": "BBBBBB"  }}