Invoke Skill Reports Trust Accounts Prepare
post
/api/v1/skills/reports.trust-accounts.prepare/invokePrepare trust accounts β distributions, beneficiary statements, capital accounts, income allocation, trustee reporting.
Prepares year-end trust accounts for an accountant's trust client from its trial balance, covering the trust-level income computation, beneficiary income allocation, capital-account roll-forward and any reasonableness warnings. Send client_id, the UUID of the trust, and period; a distribution resolution can steer the allocation. It returns a download link for the accounts, the period and warnings, and names in stub_fields any structured allocation field it has not filled.
Request bodyapplication/json
| Field | Type | Description |
|---|---|---|
client_idrequired | string (uuid) | UUID of the trust client the accounts are prepared for. |
periodrequired | string | Accounting period of the trust: a year such as 2026, a financial year such as FY2026, or an ISO 8601 date range written start/end. |
distribution_resolution | object | The trustees' distribution resolution as an object, used to steer how income is allocated.show nestedEmpty object. |
output_format | "pdf" | "xlsx" | "both" | Format of the accounts: pdf, xlsx or both.pdfxlsxboth |
include_beneficiary_statements | boolean | Whether to include a statement for each beneficiary. |
Responses
200Skill executed successfully
| Field | Type | Description | |||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
skillrequired | string | β | |||||||||||||||||||||||||||||||||||||||
outputrequired | object | βshow nested
| |||||||||||||||||||||||||||||||||||||||
correlation_idrequired | string | β |
401Authentication required
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
403Insufficient permissions
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
404Skill not found
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
429Rate limit exceeded
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
5XXInternal server error
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
curl https://api.dev.arch.ie/api/v1/skills/reports.trust-accounts.prepare/invoke \
-X POST \
-H "Authorization: Bearer sk_..." \
-H "Content-Type: application/json" \
-d '{
"client_id": "00000000-0000-0000-0000-000000000000",
"period": "string",
"distribution_resolution": {},
"output_format": "pdf",
"include_beneficiary_statements": false
}'