Returns the deposits of one patient, with the applications and refunds made against them and the current remaining balance of each deposit. The fields are the same as GET Deposits.
Use cases
Show a patient’s deposit balance at the front desk.
List the invoices a patient’s deposits were applied to.
Check whether a patient has an unused deposit before raising an invoice.
Parameters
patient_id
| integer | Required, in the path. Patient identifier, 1 to 999,999,999. |
receipt_id
| integer | Optional. Limit the results to one deposit receipt. 1 to 999,999,999. |
from_date
| string (date) | Optional. Start of the deposit date range, YYYY-MM-DD. |
to_date
| string (date) | Optional. End of the deposit date range, YYYY-MM-DD. |
location_id
| integer | Optional. Limit the results to one location. Use -1 or omit for all locations. 0 returns 422. |
page
| integer | Page number. Optional. Default 1. |
per_page
| integer | Records per page. Optional. Default 10. Maximum 500. |
Response fields
receipt_id
| integer | The deposit's own receipt identifier. |
patient_id
| integer | Patient the deposit belongs to. |
provider_id
| integer | Practitioner the deposit is attributed to. Decode it with GET Practitioners. |
transaction_type
| string | DEPOSIT for the deposit itself, APPLICATION for an invoice that a later payment paid from the deposit, REFUND for a refund paid out of the deposit, or OTHER.
|
transaction_date
| string (date) | The deposit date on a DEPOSIT row. The date of the application or refund on other rows. |
amount
| number | Amount of the deposit, application or refund. Always positive. Calculated to 4 decimal places; round to 2 for display. |
application_receipt_id
| integer or null | On an APPLICATION row, the receipt of the later payment that used the deposit. On a REFUND row, the receipt of the refund payment. null on a DEPOSIT row. |
invoice_id
| integer or null | Invoice that the application paid. null on DEPOSIT and REFUND rows. Use GET Invoice Details to read its lines. |
remaining_amount
| number | What is left of the deposit now. This is the current balance, not a running balance, and is repeated on every row of the deposit. |
location_id
| integer | Location of the deposit. Decode it with GET Locations. |
Example response
{
"status": true,
"message": "Success",
"data": [
{
"receipt_id": 32091,
"patient_id": 19573,
"provider_id": 249,
"transaction_type": "DEPOSIT",
"transaction_date": "2026-01-01",
"amount": 350.0,
"application_receipt_id": null,
"invoice_id": null,
"remaining_amount": 0.0,
"location_id": 4
},
{
"receipt_id": 32091,
"patient_id": 19573,
"provider_id": 249,
"transaction_type": "APPLICATION",
"transaction_date": "2026-01-12",
"amount": 350.0,
"application_receipt_id": 32501,
"invoice_id": 40966,
"remaining_amount": 0.0,
"location_id": 4
}
],
"pagination": {
"page": 1,
"per_page": 10,
"total_rows": 2,
"total_pages": 1
}
}
Error responses
See Validation, Limits & Character Handling for the full support code catalogue.
400 | None | A query parameter that this endpoint does not accept was sent (Unexpected parameters: ...). |
400 | MOD-4265
| The practice database does not yet support this endpoint: it is on a data model older than V19, or on an early V19 release that has not received the later V19 update. When the practice is older than V19 the message names the version it is on. Retrying does not help; the practice needs an upgrade. |
400 | RP-4000
| from_date is after to_date. Correct the range; an inverted range returns 400, not an empty result.
|
401 | None | The API key is valid but is not linked to an integration account. |
403 | None | Missing or invalid x-api-key. |
422 | None | A parameter value is invalid, for example out of range or not an integer. |
429 | RL-001, D4W-RL-MIN-001 or D4W-RL-DAY-001
| A rate limit was exceeded. Wait for the number of seconds in the Retry-After header before retrying. |
502 | SVC-502
| The practice database service could not be reached. Safe to retry. |
503 | SVC-503 or a more specific code
| The service or the practice is temporarily unavailable. When a Retry-After header is present, wait that long before retrying. |
504 | SVC-504
| The API timed out waiting for the practice database. Safe to retry a read. |
Important notes
Data model: requires data model V19 or later. A practice on an older data model receives 400 with support_codeMOD-4265.
Row order: rows are ordered by receipt_id, then patient_id. Each deposit has one DEPOSIT row, followed by its APPLICATION and REFUND rows.
Amounts:amount is always positive. remaining_amount is the current balance of the deposit, not a running balance.
Paging: a deposit and its applications can fall on different pages. To rebuild a deposit, group rows by receipt_id across all pages.
Receipts that cover several patients: if a deposit receipt ever holds several patients, its APPLICATION and REFUND rows appear only under the lowest patient_id on the receipt. The other patients get just their DEPOSIT row. To get the balance of a receipt, add up remaining_amount by receipt_id.
No deposits: a patient with no deposits, or a patient_id that does not exist, returns 200 with an empty data array and the message No records found.
All patients: use GET Deposits to read deposits across patients by date range.
Quick example
curl "https://api-uat.dental4web.com.au/api/v1/patients/19573/deposits" \
-H "x-api-key: $API_KEY" \
-H "org-id: $ORG_ID" \
-H "Accept: application/json"