Returns the provider splits of one receipt. The fields are the same as GET Receipt Provider Splits.
Use cases
Parameters
receipt_id
| integer | Required, in the path. Receipt identifier, 1 to 999,999,999. This is the receipt identifier from GET Receipts, not a detail_id. |
practitioner_id
| integer | Optional. Limit the splits to one provider. Use -1 or omit for all providers. 0 returns 422. |
location_id
| integer | Optional. Limit the splits 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
detail_id
| integer | Identifier of the receipt payment line that was split. This is a line identifier, not a receipt identifier. |
receipt_id
| integer | Receipt identifier. Matches the receipt in GET Receipts. |
provider_id
| integer | Practitioner the amount is attributed to. Decode it with GET Practitioners. |
provider_amount
| number | The part of the payment line attributed to this provider. Negative for refunds. Calculated to 4 decimal places; round to 2 for display. |
split_source
| string | BANKED when the provider's share has a bank deposit record. DERIVED when it does not.
|
bank_acc_id
| integer or null | Bank account the payment was banked to. |
bank_deposit_slip_id
| integer or null | Bank deposit slip the provider's share was banked on. null when it has not been banked to a deposit slip. |
hold_from_banking
| string | Whether the payment line is marked to be held from banking. N when it is not held. |
location_id
| integer | Location of the payment. Decode it with GET Locations. |
Example response
{
"status": true,
"message": "Success",
"data": [
{
"detail_id": 44696,
"receipt_id": 37932,
"provider_id": 16,
"provider_amount": -60.0,
"split_source": "BANKED",
"bank_acc_id": 1,
"bank_deposit_slip_id": null,
"hold_from_banking": "N",
"location_id": 1
}
],
"pagination": {
"page": 1,
"per_page": 10,
"total_rows": 1,
"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. |
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.
Receipt id:receipt_id is the receipt identifier that GET Receipts uses in its path. It is not a detail_id. Passing a detail_id as receipt_id returns a different receipt without an error.
Matches the practice software: the splits match the practice management system’s receipts by provider report, to the cent. One row is returned for each payment line and provider.
Left out on purpose: deposit applications (use GET Deposits), unallocated remainders, lines banked to a provider who is not on the treatment, and lines that pay treatment with no normal provider.
Refunds: refunds are returned as negative amounts.
Unknown receipt: a receipt_id that does not exist, or a receipt with no provider lines, returns 200 with an empty data array and the message No records found.
Date ranges: use GET Receipt Provider Splits to read the splits for a date range.
Quick example
curl "https://api-uat.dental4web.com.au/api/v1/receipts/37932/provider-splits" \
-H "x-api-key: $API_KEY" \
-H "org-id: $ORG_ID" \
-H "Accept: application/json"