Validation, Limits & Character Handling
This page is the single source of truth for how the Dental API validates input, the limits it enforces, how it handles special characters, and every support_code you may encounter. It applies across all read and write endpoints.
Error envelope
Error responses use the standard envelope with status: false and an empty data array. Where the cause can be attributed, a stable support_code is included:
{
"data": [],
"status": false,
"message": "postcode must be a valid Australian postcode (4 digits, range 0200-9999; got 'ABCD').",
"support_code": "PW-6020"
}
messageis human-readable and field-specific where possible.support_codeis a stable identifier you can quote to support. It is optional: many ordinary 4xx responses are message-only (see Responses with no support_code). Always fall back tomessage.
HTTP status code conventions
200 | Success. |
400 | Business-rule or input validation failure (for example invalid postcode, non-positive duration, missing required parameter, organisation not associated). |
401 | A valid API key that is not mapped to an integration account. The message is |
403 | Authentication failure (missing or invalid |
404 | A single-record lookup by id found nothing, or a referenced ID (patient, book, practitioner, class) was not found. List endpoints that match no records return |
409 | Conflict: for example a time slot already taken, a locked day, or an idempotency collision. |
422 | Request-schema validation failure (wrong type, value out of the schema's range), or an |
429 | Rate limit exceeded. Every |
500 | Unexpected internal error. For reads, retry after a short delay. For creates, check whether the record was saved, or use an |
502 / 503 / 504 | Gateway, service-unavailable, or timeout condition. Retryable for reads. A |
Field-level validation
Validation errors are returned per field with a descriptive message. Some endpoints enforce required parameters in business logic rather than the request schema, returning 400 RP-4000 (for example GET /api/v1/patients_lite with no query parameters). A few illustrations of the 422 request-schema case follow:
Required field missing:
{ "data": [], "status": false, "message": "'surname': field required; 'date_of_birth': field required" }
Wrong type:
{ "data": [], "status": false, "message": "'force_create': value is not a valid integer" }
Value too long:
{ "data": [], "status": false, "message": "'firstname': ensure this value has at most 30 characters" }
Input limits
Patient fields
| 1 to 30 characters, counted after accented letters are converted to plain letters (see Character handling) |
| 1 to 30 characters, counted after accented letters are converted to plain letters (see Character handling) |
| up to 15 characters |
| up to 6 characters |
| up to 60 characters |
| up to 20 characters |
| up to 30 characters |
| up to 100 characters |
| up to 300 characters |
| up to 40 characters |
| up to 80 characters |
| up to 5 characters (AU state code) |
| 4 digits, range 0200 to 9999 |
|
|
|
|
Appointment fields
|
|
|
|
| integer ≥ 1 |
| valid appointment class ID |
|
|
| up to 450 characters |
| up to 256 characters; a smaller, separate column from create/update's |
Pagination and range limits
| 500 |
Appointment-slot search range | 90 days when you search one appointment book; 14 days when you search all books or give a list of two or more books. A longer window is trimmed to the limit and answered with |
Character handling
Some practice-management storage cannot represent characters outside a narrow Latin set. The API normalises input so your data is stored cleanly and predictably:
- Accent folding (writes). Accented characters in write string fields are transliterated to their plain-letter equivalent before storage: for example
ZoëbecomesZoe,FrançoisbecomesFrancois. Each transformation is disclosed in awarnings[]entry on the (successful) response. - Unsupported characters. Characters with no accepted plain-letter equivalent (CJK, emoji, Cyrillic) are rejected with
400and a precise code (PW-6025/AW-6025). - Length after folding. If folding pushes a value past its column limit, it is rejected with
400(PW-6026/AW-6026). - HTML and script content. HTML/script-shaped content in text fields is rejected outright with
400: markup-shaped content returnsPW-6023/AW-6023; script or event-handler-shaped content (<script>tags,javascript:URIs, and similar) returns a400with nosupport_code. Nothing is saved in either case, and no sanitisation orwarnings[]disclosure occurs. - Postcode. Must be a 4-digit Australian postcode in the range 0200 to 9999 (
PW-6020). - State/territory. Must be a valid Australian state or territory code:
ACT,NSW,NT,QLD,SA,TAS,VIC,WA(PW-6027).
Time zone
All date and time values, in both requests and responses, are Australian Eastern time (AEST/AEDT): appointment_date, start_time, finish_time, appointment book operating hours, and appointment-slot search results are all local-time values and are never UTC. created_date and updated_date are also Australian Eastern time; neither carries a Z or an explicit UTC offset suffix (created_date is returned as YYYY-MM-DD HH:MM:SS; updated_date as an ISO-8601-shaped string with microseconds, representing the same local-time instant). Clients performing mode=1 sync/delta comparisons should treat these fields as unqualified local time, not UTC. FHIR responses are the exception: their date-times carry an explicit time zone (see FHIR Capabilities).
Parameter type validation
Most type errors are caught when the request is read and returned as 422 with a field-specific message, for example 'query -> patient_id': value is not a valid integer. If a value reaches the practice database layer with the wrong type, the request is rejected with 400 and one of these codes rather than an opaque error:
| Integer parameter received a non-integer value |
| String parameter failed validation (for example over length) |
| Date parameter is not a valid date |
| Datetime parameter is not a valid datetime |
| Time parameter is not a valid time |
| Boolean/bit parameter is not |
Reliability and error classification
- Retryable (
429,500,502,503,504): transient. Back off and retry, honouringRetry-Afterwhere present. For create requests, read the Idempotency section of API Response Formats first: a500,502,503or504on a create can mean the record was saved. - Not retryable (
400,403,404,422, and409unless the code says otherwise): fix the request before resending. Retrying without changes will fail the same way. A409withRetry-After, or withRP-4091,AW-6020,TN-6020orTN-6021, is a temporary conflict: wait and retry (with the sameIdempotency-Keyfor a create).
Support code catalogue
Codes are grouped by family. Every code below can appear in a real response to an API consumer. Codes are stable; quote them to Centaur Software support.
RP: general request validation (reads and writes)
Cross-cutting conditions that can appear on any /api/v1/* operation, regardless of the specific endpoint.
| 400 | Request rejected: an invalid or missing |
| 404 | The organisation was not found or is not yet enabled. Check the organisation id. A newly enabled organisation can take up to a few hours to become available. Do not retry automatically; contact us if it should already be enabled |
| 400 | Request shape or value rejected (for example a blank note on POST Append Treatment Note) |
| 403 | Forbidden (operation not permitted for the org/key) |
| 409 |
|
| 422 |
|
| 429 | Processing allowance for this organisation exceeded. Wait for the time in the |
| 429 | Processing allowance for this organisation exceeded (the same limit as |
| 500 | Unexpected internal error |
| 502 | Bad gateway (storage/gateway failure) |
| 503 | Practice temporarily unavailable (for example the practice connection is offline). For an on-premise practice the message can read "The service is currently busy with requests for practice databases. Please retry in a few seconds.", which means the service is handling many long requests for practice databases at the same time; this is not specific to your organisation. Retry after the time in |
| 503 | Duplicate protection for creates is temporarily unavailable. Nothing was created. Retry with the same |
| 503 | The practice database has reached its connection limit. Retry after the time in |
| 503 | Not currently returned. Reserved for an on-premise practice that already has the maximum number of requests in progress. If you receive it, retry after the time in |
| 503 | Scheduled nightly maintenance for cloud-hosted practices, 15:40 to 16:00 UTC (not on Saturday UTC dates). Retry after the time in |
| 503 | The Halo Connect daily request allowance for this practice is used up. The reset time and |
| 504 | Timeout |
| 504 | Data-pipeline queue timeout (on-premise database slow to respond) |
SLT: appointment slot search
From GET /api/v1/appointment-slots pre-execute validation. All 400.
| 400 | Slot range cap (90 days for a single book, 14 days for all books or a list of two or more books). Returned only when the window cannot be trimmed: |
| 400 | End of requested window is in the past |
| 400 | Intraday |
TYP: parameter type validation
See Parameter type validation above. All 400. Codes: TYP-INT, TYP-VARCHAR, TYP-DATE, TYP-DATETIME, TYP-TIME, TYP-BIT.
RL / HST: rate limiting and host load
| 429 | Request rate limit exceeded for this organisation. Carries |
| 429 | Per-minute request limit for your integration account exceeded. Carries |
| 429 | Daily request limit for your integration account exceeded. Carries |
| 503 | The practice database host is heavily loaded. Retry after the time in |
| 503 | The practice database host is briefly overloaded by a short spike in load. Retry after the time in |
FAN: patient fan-out / extended detail
| 400 | Returned when |
PW: patient writes
From POST /api/v1/patients and PATCH /api/v1/patients/{id}.
| 409 | Duplicate patient (name and date of birth match). The response carries |
| 400 | A required patient field is missing |
| 400 | The |
| 500 | Patient could not be created |
| 200 | Patient created, but some contact or address details were not saved. The response carries |
| 500 | Create reported no row |
| 403 | Permission denied for this patient write |
| 400 |
|
| 404 |
|
| 404 |
|
| 500 | Patient could not be updated |
| 200 | Patient updated, but the address was not saved. The response carries |
| 500 | The patient was not saved. Retry. |
| 500 | The outcome could not be confirmed. If you sent an |
| 400 |
|
| 400 | Unsafe text (control/unicode) on a narrow-character field |
| 400 |
|
| 400 | Script/HTML-shaped payload rejected |
| 400 | Field contains characters with no accepted plain-letter equivalent |
| 400 | Field exceeds its maximum length after character folding |
| 400 | Unexpected internal validation error |
| 500 | Unrecognised database error on a patient write |
| 500 | Unrecognised failure on a patient write |
AW: appointment writes
From POST /api/v1/appointments, …/{id}/reschedule, …/{id}/cancel, and PATCH …/{id}.
| 403 | Access denied |
| 400 | Required parameters null |
| 400 | Incorrect start/finish |
| 422 | Date out of range |
| 422 | Time outside the book's operating hours |
| 404 | Appointment book not found |
| 404 | Practitioner not found (create/reschedule) |
| 404 | Patient not found |
| 404 | Source appointment not found (or cancelled) |
| 404 | Destination appointment book not found (reschedule) |
| 409 | Target day or source appointment is locked |
| 409 | Time slot is no longer available |
| 400 | Script/HTML-shaped payload rejected |
| 400 | Unexpected internal validation error |
| 400 |
|
| 400 |
|
| 422 |
|
| 400 | Duration not positive ( |
| 404 | Appointment not found |
| 404 | Appointment class not found |
| 404 | Practitioner not found (update) |
| 400 | No update fields provided. Specify at least one field to change. Returned by PATCH Appointment when the only field sent is |
| 400 | Incorrect finish time (at or before start) |
| 500 | Confirm status not found (internal state) |
| 409 | No place to confirm status |
| 409 | Practices on data models before V18 only: the update failed and the appointment was restored |
| 409 | Appointment already attended (cannot cancel) |
| 409 | Ambiguous appointment ID |
| 409 | This appointment was changed by another user. Please reload it and try again. Returned by PATCH Appointment when someone changes the appointment while the update is running. Read it again and resend the update. |
| 422 | Appointed By user N was not found. The |
| 500 | Practices on data models before V18 only: fatal internal error |
| 500 | Unrecognised failure on an appointment write. If you sent an |
| 500 | Database (SQL) exception. On data model V19 nothing was saved |
MWP: MediaWeb PACS imaging
From the imaging endpoints (GET /api/v1/mwp/images, …/{image_id}, …/patient/{patient_id}).
| 400 | User-input validation failure |
| 400 | GET Image Search called without both |
| 400 | System-originated bad request |
| 403 | Forbidden |
| 404 | Image or object not found |
| 429 | Imaging limit reached for this organisation. Carries |
| 500 | Unexpected internal error |
| 502 | Bad gateway (storage failure) |
| 503 | The imaging service is unavailable or busy. Carries |
| 504 | Timeout |
| 504 | Data-pipeline queue timeout |
TN: treatment note append
From POST /api/v1/treatments/{treatment_id}/notes.
| 403 | Access denied |
| 422 | A required value (patient, treatment or note) is missing |
| 404 | Patient not found |
| 409 | The notes for this treatment are being edited by another user, or the treatment is being changed. Nothing was written. Retry with the same |
| 409 | The treatment or its note changed while the note was being saved. Nothing was saved. Retry with the same |
| 400 | The note contains control or other characters that cannot be stored |
| 400 | Script or HTML-shaped content rejected |
| 400 | Unexpected internal validation error |
| 400 | The note contains characters with no accepted plain-letter equivalent |
| 400 | The note is longer than 40,000 characters |
| 400 | The note has a line that looks like an author stamp (for example "<05/11/2026 10:00 Dr Test>"). The system adds author stamps itself. Remove the stamp-style line and send the note again |
| 503 | Appending notes is temporarily unavailable. No note was added |
| 503 | The notes could not be locked for the treatment. Nothing was written. Retry with the same |
| 404 | Treatment not found for this patient |
| 409 | The treatment has been deleted |
| 422 | The treatment is a lab work item, so a note cannot be appended |
| 422 | The treatment is planned, not completed, so a note cannot be appended |
| 409 | The note for this treatment has been deleted |
| 422 | Nothing is left of the note after trimming |
| 422 | The note is longer than 20,000 characters once stored (trailing spaces trimmed, each line break counted as two characters). Notes over 40,000 characters are refused earlier with |
| 422 | The existing note leaves no room for the new text within the 20,000 character limit |
| 500 | The outcome could not be confirmed. The response carries the hold fields described on API Response Formats. Check the treatment's notes before appending again |
| 500 | Database error. Nothing was saved |
UPL: uploads
From the upload endpoints.
| 400 | The upload request was rejected (for example an invalid file name, type, size, patient or upload id) |
| 400 | The file name, together with the patient's document folder name, is too long to store. Use a shorter file name |
| 404 | Upload not found |
| 429 | Upload rate limit exceeded for this organisation. Carries |
| 502 | The upload could not be prepared. It is safe to retry: a retry starts a new upload |
| 503 | The upload service is temporarily unavailable. Retry after the time in |
| 503 | The practice database has reached its connection limit. Retry after the time in |
| 503 | Scheduled nightly maintenance for cloud-hosted practices. Retry after the time in |
TIER: subscription tier
Returned when the integration account does not include the capability an endpoint needs.
| 403 | The integration account does not have the required access (for example clinical write access for POST Append Treatment Note). Contact Centaur Software |
MOD: data model version
The practice’s database is on a data model older than the endpoint needs. Upgrade the practice, then retry; retrying without an upgrade fails in the same way. Check a practice’s version with GET Data Model Version. All are 400.
| 400 | Write endpoints need data model V13 or later |
| 400 | GET Debtors, GET Patient Balance, GET Third Parties and GET Invoice Details need data model V16 or later |
| 400 | GET Patients Lite needs data model V18 or later |
| 400 | The |
| 400 | The endpoint or parameter needs data model V19 or later (for example the receipt provider split, deposit, health fund and recall type endpoints, and |
| 400 | POST Upload Initiate needs data model V13 or later |
| 400 | POST Append Treatment Note needs the October 2026 update (data model V19) |
| 400 | The practice's data model does not include this operation |
SVC: service availability
Returned when the API itself could not get an answer from the practice database and no more specific code applies.
| 502 | The practice database service could not be reached. The message is "The database service is currently unreachable. Please try again." |
| 503 | Service temporarily unavailable, when no more specific code applies. Also the fallback for an imaging |
| 504 | The API timed out waiting for the practice database. A |
| 502 | GET Deployment Type could not be retrieved. Retry |
| 503 | GET Data Model Version is temporarily unavailable. Retry after the time in |
| 504 | GET Deployment Type or GET Data Model Version timed out. Retry |
Responses with no support_code
Several common responses are deliberately message-only. Clients that key off support_code must tolerate its absence and fall back to message:
400 | "Given Organisation |
|
400 | "Missing Organisation ID. Please try again." | The |
400 | "Request rejected by security policy. Check your input does not contain HTML or script content." | Request blocked by the security policy |
401 | "Missing or invalid token. Please try again." | The API key is not mapped to an integration account |
403 |
| Missing or invalid |
404 | "No records found." | A single-record lookup by id matched nothing. List endpoints that match nothing return |
422 | per_page over the maximum of 500 | Query-parameter validation |
On this page
- Validation, Limits & Character Handling