Payments

View payments

GET
/payments

This endpoint returns the ledger payments for the specified location. At least one of the patient_id, provider_id, guarantor_id, claim_id, transaction_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
patient_id?integer

Filter by the ID of the associated patient

Formatint32
provider_id?integer

Filter by the ID of the associated provider

Formatint32
guarantor_id?integer

Filter by the ID of the associated guarantor

Formatint32
charge_id?integer

Filter by the ID of the associated charge

Formatint32
claim_id?integer

Filter by the ID of the associated claim

Formatint32
transaction_id?string

Filter by transaction ID

updated_since?string

Filter for payments updated since a specific time (UTC)

Formatdate-time
include_deleted?boolean

Include deleted payments

Defaultfalse
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

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

application/json

curl -X GET "https://example.com/payments?subdomain=string&location_id=0&patient_id=3&provider_id=15&guarantor_id=5&charge_id=1111&claim_id=2222&transaction_id=NHP%3AJXZEQ1234&updated_since=2024-04-12T10%3A30%3A00Z&include_deleted=false" \  -H "Nex-Api-Version: v3.0.0"
{  "code": false,  "description": "Description",  "error": [    "Error message"  ],  "data": [    {      "id": 113,      "foreign_id": "1234-5678",      "location_id": 10,      "patient_id": 3,      "guarantor_id": 5,      "provider_id": 15,      "updated_at": "2024-09-05T20:31:17.007Z",      "description": "This is a description",      "deleted_at": "2024-09-15T11:21:26.003Z",      "payment_amount": {        "amount": "62.00",        "currency": "USD"      },      "paid_at": "2024-10-01",      "transaction_id": "NHP:JXZEQ1234",      "charge_id": 1111,      "claim_id": 2222,      "payment_plan_id": 3,      "insurance_plan_id": 4,      "payment_type_id": 5    }  ],  "page_info": {    "has_previous_page": false,    "has_next_page": false,    "start_cursor": "AAAAA",    "end_cursor": "BBBBBB"  }}