API reference
Every operation in the Open TA API, version 0.9.0, generated from the platform’s OpenAPI document when this site is built. Nothing on this page is written by hand except the example requests, and the build checks those against the document.
You cannot call it yet. Authentication is not built, so every operation that needs an access token is refused, and there is no sandbox. The version has not been released and may change without notice. Where the API stands
Conventions
Examples read the API’s address from $OPEN_TA_API and an access token from $OPEN_TA_TOKEN. Neither exists yet: there is no public address, and no way to obtain a token. The worked example throughout is a $1,234.56 receipt into trust for matter M-1042.
Amounts are strings of whole cents: "123456" is $1,234.56. Never send or parse an amount as a JSON number.
Errors are RFC 9457 problem details, with a stable machine-readable code:
| Field | Type | Required | Description |
|---|---|---|---|
type | string | Yes | URI identifying the problem type. |
title | string | Yes | Short, human-readable summary. Stable across occurrences. |
status | integer | Yes | HTTP status code. |
code | string | Yes | Stable machine-readable error code, e.g. MONEY_MALFORMED. |
detail | string | No | Explanation specific to this occurrence. |
correlationId | string | Yes | Correlates this response with server logs and audit events. |
errors | array | No | Field-level validation failures. |
errors[].path | string | Yes | JSON Pointer to the offending member. |
errors[].message | string | Yes |
Ledger
Posting to the trust ledger. Every movement of trust money goes through POST /transactions; there is no other route, and the Open TA web application uses this one. Reversals and dishonours are sub-resources of the transaction they correct, because their entries are derived from it rather than supplied.
POST /transactions
Post one balanced transaction to the trust ledger.
Requires an access token. Operation ID postTransaction.
Debits must equal credits. Amounts are strings of whole cents. The tenant is taken from the authenticated principal and cannot be supplied in the body.
Idempotency. Every request carries an idempotency key. A retry with the same key returns the original result; the same key with a different body is refused rather than answered with the earlier outcome.
Outward payments. A machine client cannot authorise a Payment or a CostsTransfer and receives 403. Authorising money leaving a trust account requires a human authenticated inside Open TA with step-up authentication. No scope grants this, by design.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
idempotencyKey | string, 1–128 characters | Yes | Unique per logical operation. A retry after a network timeout carries the same key and returns the original result; the same key with a different body is refused rather than answered with the earlier outcome. |
trustAccountId | string, UUID | Yes | |
type | one of: Receipt, Payment, JournalTransfer, CostsTransfer, Adjustment, OpeningBalance | Yes | |
businessDate | string, YYYY-MM-DD | Yes | The accounting date in the practice’s jurisdictional timezone. Month-end, the reconciliation period and the statutory deadlines all run off this, never off the UTC instant of recording. |
narration | string, 1–512 characters | Yes | |
reversesTransactionId | string, UUID or null | Yes | The transaction this one corrects. Permitted only on an Adjustment, and optional even there: some adjustments correct one transaction, others are period-level and correct no single one. Reversals and dishonours are not posted here — see POST /transactions/{transactionId}/reversal. |
entries | array, at least 2 | Yes | Debits must equal credits. A transaction that does not balance is refused. |
entries[].ledgerAccountId | string, UUID | Yes | The trust ledger or control account this entry moves. |
entries[].direction | one of: Debit, Credit | Yes | Double-entry direction. Amounts are always positive; the direction carries the sign. A signed amount whose sign implies direction is a classic source of sign-flip defects. |
entries[].amount | string, whole cents | Yes | An amount of Australian currency, in whole cents, as a decimal string. Example: "123456" is $1,234.56. Never a JSON number — see the API guide on money. |
entries[].sourceDocumentType | one of: Receipt, Cheque, ElectronicFundsTransfer, Bpay, JournalTransfer, Deposit, Adjustment | Yes | |
entries[].matterReference | string, up to 64 characters or null | Yes | Null for control accounts, which are not attached to a matter. |
entries[].description | string, 1–512 characters | Yes | Refers to the law; withheld. |
Example request
curl -X POST "$OPEN_TA_API/transactions" \
-H "Authorization: Bearer $OPEN_TA_TOKEN" \
-H 'Content-Type: application/json' \
--data '{
"idempotencyKey": "receipt-2026-11-09-M-1042-0001",
"trustAccountId": "3f6c1a52-8d4e-4b7a-9c21-5e0f2a7b8c90",
"type": "Receipt",
"businessDate": "2026-11-09",
"narration": "Deposit on purchase, 14 Example Street",
"reversesTransactionId": null,
"entries": [
{
"ledgerAccountId": "7a2d9e14-1b3c-4f5a-8e6d-0c9b8a7f6e51",
"direction": "Debit",
"amount": "123456",
"sourceDocumentType": "Receipt",
"matterReference": null,
"description": "Deposit received by EFT from the purchaser"
},
{
"ledgerAccountId": "c4e8b2a6-9f1d-4c3e-b5a7-2d6f8e0a1b39",
"direction": "Credit",
"amount": "123456",
"sourceDocumentType": "Receipt",
"matterReference": "M-1042",
"description": "Deposit received by EFT from the purchaser"
}
]
}'Response 201
The transaction was posted, or an identical earlier request was replayed.
| Field | Type | Required | Description |
|---|---|---|---|
transactionId | string, UUID | Yes | |
entries | array | Yes | |
entries[].id | string, UUID | Yes | |
entries[].ledgerAccountId | string, UUID | Yes | |
entries[].sequenceNo | string | Yes | Per-tenant chain position, as a string: it is a 64-bit value. |
entries[].entryHash | string, 64 characters | Yes | |
entries[].balanceAfter | string, whole cents | Yes | An amount of Australian currency, in whole cents, as a decimal string. Example: "123456" is $1,234.56. Never a JSON number — see the API guide on money. |
chainHead | string, 64 characters | Yes | |
replayed | boolean | Yes | True when this returned the result of an earlier, identical request. |
Other responses
401Not authenticated.403A machine client attempted to authorise an outward payment. Re-authenticating will not help; no scope grants this.409The ledger refused the posting — for example it would leave a trust ledger account in debit, or the idempotency key was reused for a different body.422The transaction is not postable — for example it does not balance.
POST /transactions/{transactionId}/reversal
Reverse a transaction.
Requires an access token. Operation ID reverseTransaction.
The entries are not yours to supply. They are derived from the original. A caller-supplied reversal could fail to offset the thing it names, and a reversal that does not exactly offset is not a reversal — it is a second mistake carrying the first one’s audit trail. This is why type: "Reversal" is not accepted at POST /transactions.
A reversal may not overdraw a trust ledger account and returns 409 if it would. If reversing a payment would take the account into debit then the payment should never have been made, and a reversal is not the remedy for that. Use the dishonour route only for what the bank actually did.
One paragraph of this description refers to the law and is withheld until reviewed. Why
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
transactionId | path | string, UUID | Yes | The transaction to reverse or dishonour. Must belong to the caller’s tenant. |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
idempotencyKey | string, 1–128 characters | Yes | Unique per logical operation. Reversing twice is refused on its own merits, but a retried request must not be mistaken for a second reversal. |
businessDate | string, YYYY-MM-DD | Yes | The accounting date of the reversal — the date it is recorded, not the date of the transaction being reversed. A correction posted in June to a May receipt belongs in June, or the reconciled May figures would change after the fact. |
reason | string, 1–400 characters | Yes | Refers to the law; withheld. |
Example request
curl -X POST "$OPEN_TA_API/transactions/9b1f4c7e-2a5d-4e8b-a3c6-7d0e9f2b5a18/reversal" \
-H "Authorization: Bearer $OPEN_TA_TOKEN" \
-H 'Content-Type: application/json' \
--data '{
"idempotencyKey": "reverse-9b1f4c7e-0001",
"businessDate": "2026-11-10",
"reason": "Posted to the wrong matter; reposted to M-1043"
}'Response 201
The reversal was posted, or an identical earlier request was replayed.
| Field | Type | Required | Description |
|---|---|---|---|
transactionId | string, UUID | Yes | |
entries | array | Yes | |
entries[].id | string, UUID | Yes | |
entries[].ledgerAccountId | string, UUID | Yes | |
entries[].sequenceNo | string | Yes | Per-tenant chain position, as a string: it is a 64-bit value. |
entries[].entryHash | string, 64 characters | Yes | |
entries[].balanceAfter | string, whole cents | Yes | An amount of Australian currency, in whole cents, as a decimal string. Example: "123456" is $1,234.56. Never a JSON number — see the API guide on money. |
chainHead | string, 64 characters | Yes | |
replayed | boolean | Yes | True when this returned the result of an earlier, identical request. |
Other responses
401Not authenticated.403A machine client attempted to reverse a transaction. Reversing is a decision that a trust transaction should be undone, and that judgement belongs to a person. Re-authenticating will not help; no scope grants it. Recording a bank dishonour is a different thing and is not restricted.404No such transaction for this tenant. A transaction belonging to another tenant is reported as not found rather than forbidden: replying "forbidden" would confirm the id exists somewhere, which is itself a cross-tenant disclosure.409The ledger refused it given its current state — the transaction has already been reversed, or the reversal would leave a trust ledger account in debit.422The transaction cannot be reversed — a reversal cannot itself be reversed, for example. Repost the original movement instead.
POST /transactions/{transactionId}/dishonour
Record that a receipt was dishonoured by the bank.
Requires an access token. Operation ID dishonourReceipt.
A cheque banked earlier has bounced. Only a Receipt can be dishonoured; anything else returns 422, because a payment that fails is a different event with a different remedy and calling it a dishonour would misdescribe it on the client’s statement.
One paragraph of this description refers to the law and is withheld until reviewed. Why
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
transactionId | path | string, UUID | Yes | The transaction to reverse or dishonour. Must belong to the caller’s tenant. |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
idempotencyKey | string, 1–128 characters | Yes | Unique per logical operation. Reversing twice is refused on its own merits, but a retried request must not be mistaken for a second reversal. |
businessDate | string, YYYY-MM-DD | Yes | The accounting date of the reversal — the date it is recorded, not the date of the transaction being reversed. A correction posted in June to a May receipt belongs in June, or the reconciled May figures would change after the fact. |
reason | string, 1–400 characters | Yes | Refers to the law; withheld. |
Example request
curl -X POST "$OPEN_TA_API/transactions/9b1f4c7e-2a5d-4e8b-a3c6-7d0e9f2b5a18/dishonour" \
-H "Authorization: Bearer $OPEN_TA_TOKEN" \
-H 'Content-Type: application/json' \
--data '{
"idempotencyKey": "dishonour-9b1f4c7e-0001",
"businessDate": "2026-11-12",
"reason": "Cheque returned unpaid by the drawer’s bank"
}'Response 201
The dishonour was recorded, or an identical earlier request was replayed.
| Field | Type | Required | Description |
|---|---|---|---|
transactionId | string, UUID | Yes | |
entries | array | Yes | |
entries[].id | string, UUID | Yes | |
entries[].ledgerAccountId | string, UUID | Yes | |
entries[].sequenceNo | string | Yes | Per-tenant chain position, as a string: it is a 64-bit value. |
entries[].entryHash | string, 64 characters | Yes | |
entries[].balanceAfter | string, whole cents | Yes | An amount of Australian currency, in whole cents, as a decimal string. Example: "123456" is $1,234.56. Never a JSON number — see the API guide on money. |
chainHead | string, 64 characters | Yes | |
replayed | boolean | Yes | True when this returned the result of an earlier, identical request. |
Other responses
401Not authenticated.404No such transaction for this tenant. A transaction belonging to another tenant is reported as not found rather than forbidden: replying "forbidden" would confirm the id exists somewhere, which is itself a cross-tenant disclosure.409The ledger refused it given its current state — the transaction has already been reversed, or the reversal would leave a trust ledger account in debit.422The transaction is not a Receipt and so cannot be dishonoured.
Reports
Statutory reports, produced on demand from the contemporaneous records rather than from accumulated summaries that could drift from them.
GET /reports/debit-balance-occurrences
Requires an access token. Operation ID getDebitBalanceOccurrences.
Completeness is the caller’s responsibility and the response gives you what you need to check it. totalInRange counts every occurrence in the requested range, independent of the page, and is counted in the same transaction as the rows. Follow nextCursor until it is null. A partial report is worse than no report, because it looks complete.
3 paragraphs of this description refer to the law and are withheld until reviewed. Why
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
fromBusinessDate | query | string, YYYY-MM-DD | No | Inclusive. Omit for the beginning of the practice’s records. |
toBusinessDate | query | string, YYYY-MM-DD | No | Inclusive. Omit for the most recent. |
cursor | query | string, up to 256 characters | No | From a previous response’s nextCursor. Opaque — pass it back verbatim rather than parsing or constructing one. |
limit | query | integer, 1–500, default 100 | No | Occurrences per page. Defaults to 100. |
Example request
curl "$OPEN_TA_API/reports/debit-balance-occurrences?fromBusinessDate=2026-07-01&toBusinessDate=2026-09-30&limit=100" \
-H "Authorization: Bearer $OPEN_TA_TOKEN"Response 200
One page of the report, in chronological sequence.
| Field | Type | Required | Description |
|---|---|---|---|
occurrences | array | Yes | Refers to the law; withheld. |
occurrences[].id | string, UUID | Yes | |
occurrences[].businessDate | string, YYYY-MM-DD | Yes | An accounting date in the practice’s jurisdictional timezone, ISO 8601. |
occurrences[].recordedAt | string | Yes | When the occurrence was recorded, to the millisecond. Distinct from businessDate: a dishonour arriving in July against a June receipt is recorded in July and accounted for in July. |
occurrences[].ledgerAccountId | string, UUID | Yes | |
occurrences[].identifyingReference | string | Yes | The account’s statutory identifying reference. |
occurrences[].partyName | string or null | Yes | |
occurrences[].matterDescription | string or null | Yes | |
occurrences[].transactionId | string, UUID | Yes | The transaction that caused the debit balance. |
occurrences[].balance | string, whole cents | Yes | The resulting balance, in whole cents, as a string. Always negative — that is what makes it an occurrence. |
occurrences[].cause | string | Yes | What caused it, in the ledger’s own words — for example a dishonour. |
totalInRange | integer | Yes | Refers to the law; withheld. |
nextCursor | string, 1–256 characters or null | Yes | Null when this page ends the sequence. Otherwise there is more to fetch. |
Other responses
401Not authenticated.422The request cannot be answered — for example fromBusinessDate is after toBusinessDate, which would silently report nothing and be indistinguishable from a clean period.
GET /reports/debit-balance-occurrences/permanent-form
The same report, produced in permanent form.
Requires an access token. Operation ID getDebitBalanceOccurrencesPermanentForm.
A separate route rather than content negotiation, deliberately. These are not one thing in two encodings. The JSON endpoint returns a page; a permanent-form record that returned a page would satisfy nothing. This route always contains every occurrence in the period, or it fails — a period holding more occurrences than one document carries returns 422 rather than a document that stops early while saying "end of report".
The document is byte-deterministic. The same occurrences produced at the same instant render to identical bytes, so the file can be hashed and a practitioner can show that the document they hold is the one Open TA produced. The content hash is also returned in the x-openta-content-hash header, so a caller can record it without opening the file.
2 paragraphs of this description refer to the law and are withheld until reviewed. Why
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
fromBusinessDate | query | string, YYYY-MM-DD | No | Inclusive. Omit for the beginning of the practice’s records. |
toBusinessDate | query | string, YYYY-MM-DD | No | Inclusive. Omit for the most recent. |
Example request
curl "$OPEN_TA_API/reports/debit-balance-occurrences/permanent-form?fromBusinessDate=2026-07-01&toBusinessDate=2026-09-30" \
-H "Authorization: Bearer $OPEN_TA_TOKEN" \
--output debit-balance-report.pdf --dump-header -Response 200
One paragraph of this description refers to the law and is withheld until reviewed. Why
x-openta-content-hashSHA-256 of the report content, as RFC 8785 canonical JSON. The same value printed on every page. Not the hash of the PDF bytes, which could not be printed inside them.x-openta-page-countPages in the document — the M in "Page N of M".x-openta-occurrence-countOccurrences the document contains.
Other responses
401Not authenticated.422The document cannot be produced as asked — an inverted date range, or a period holding more occurrences than one document carries.
Platform
Health, readiness and version.
GET /health
Liveness probe.
No authentication. Operation ID getHealth.
Example request
curl "$OPEN_TA_API/health"Response 200
The process is running.
| Field | Type | Required | Description |
|---|---|---|---|
status | always "ok" | Yes |
GET /health/ready
Readiness probe.
No authentication. Operation ID getReadiness.
Example request
curl "$OPEN_TA_API/health/ready"Response 200
Dependencies required to serve traffic are available.
| Field | Type | Required | Description |
|---|---|---|---|
status | one of: ok, degraded | Yes | |
checks | array | Yes | |
checks[].name | string | Yes | Identifier of the dependency checked. |
checks[].status | one of: ok, failed | Yes | |
checks[].detail | string | No | Non-sensitive diagnostic detail. |
Other responses
503One or more dependencies are unavailable.
GET /version
Identify the running version.
No authentication. Operation ID getVersion.
One paragraph of this description refers to the law and is withheld until reviewed. Why
Example request
curl "$OPEN_TA_API/version"Response 200
Version information.
| Field | Type | Required | Description |
|---|---|---|---|
complianceManifestVersion | string | Yes | Refers to the law; withheld. |
gitSha | string | Yes | Exact commit deployed. |
rulePacks | array | Yes | Rule packs loaded by this instance, with their activation status. |
rulePacks[].id | string | Yes | |
rulePacks[].version | string | Yes | |
rulePacks[].status | one of: draft, active, superseded | Yes |
Why some paragraphs are withheld
In places the platform’s descriptions explain what the Legal Profession Uniform General Rules require, or what a practitioner or client is obliged or entitled to. Those explanations are ours, have not been reviewed by anyone qualified, and were written from a copy of the Rules current from 20 August 2021. We do not publish an explanation of the law until it has been reviewed, so every such paragraph is left out here and marked where it was. The behaviour each operation describes is unaffected. Road to certification