Returns deposits together with the applications and refunds made against them, and the current remaining balance of each deposit.
Use cases
List the deposits a practice is holding for patients.
Show which invoices a deposit was applied to.
Reconcile deposit liabilities for a period.
Parameters
patient_id
| integer | Limit the results to one patient. 1 to 999,999,999. At least one of patient_id, receipt_id or both dates is required. |
receipt_id
| integer | The deposit's own receipt identifier. 1 to 999,999,999. |
from_date
| string (date) | Start of the deposit date range, YYYY-MM-DD. Without patient_id or receipt_id, send it together with to_date; with either, you can send one or both dates. The dates filter on the deposit date. |
to_date
| string (date) | End of the deposit date range, YYYY-MM-DD. Send together with from_date. |
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.
Scope is required: send patient_id, receipt_id, or both from_date and to_date. Otherwise the request returns 422 with the message Provide 'patient_id', 'receipt_id', or both 'from_date' and 'to_date'.
Receipts that cover several patients: the practice management system creates one patient for each deposit receipt, so this does not affect existing data. If a deposit receipt ever holds several patients, its APPLICATION and REFUND rows appear once, under the lowest patient_id on the receipt. A patient_id query for another patient on that receipt returns only its DEPOSIT row. To get the balance of a receipt, add up remaining_amount by receipt_id.
One patient: GET Patient Deposits returns the same fields for one patient.
No matches: a request that matches no deposits returns 200 with an empty data array and the message No records found.
Quick example
curl "https://api-uat.dental4web.com.au/api/v1/deposits?from_date=2026-01-01&to_date=2026-10-27&per_page=100" \
-H "x-api-key: $API_KEY" \
-H "org-id: $ORG_ID" \
-H "Accept: application/json"