Skills › Reports
Prepare Trust Accounts
POST/api/v1/skills/reports.trust-accounts.prepare/invoke
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.
Body parameters
client_idstring · uuidRequired
UUID of the trust client the accounts are prepared for.
periodstringRequired
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_resolutionobject
The trustees' distribution resolution as an object, used to steer how income is allocated.
output_formatenum · default both
Format of the accounts: pdf, xlsx or both.
pdfxlsxboth
include_beneficiary_statementsboolean · default true
Whether to include a statement for each beneficiary.
Returns
Skill executed successfully
skillstringRequired
Example prepare_trust_accounts
outputobjectRequired
output.artifact_idstring · uuid
output.download_urlstring · default
output.summarystring · default
output.citationsarray of values
output.warningsarray of strings
output.stub_fieldsarray of strings
output.xlsx_download_urlstring
output.periodstring · default
output.income_allocationobject
output.distributionsarray of objects
output.beneficiary_statementsarray of objects
output.capital_accountsobject
correlation_idstringRequired
Errors
StatusTypeWhen
401AUTH.TOKEN_INVALID Authentication required
403PERMISSION.CAPABILITY_DENIED Insufficient permissions
404SKILL.NOT_FOUND Skill not found
422VALIDATION.INVALID_FORMAT Validation error
429RATE_LIMIT.USER Rate limit exceeded
5XXINTERNAL.UNKNOWN Internal server error
curl https://uk.heyarchie.com/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 }'
from heyarchie import Archie archie = Archie(api_key="sk_...") result = archie.skills.invoke( "reports.trust-accounts.prepare", client_id="00000000-0000-0000-0000-000000000000", period="string", distribution_resolution={}, output_format="pdf", include_beneficiary_statements=False, ) print(result)
import { Archie } from "heyarchie";
const archie = new Archie({ apiKey: "sk_..." });
const result = await archie.skills.invoke("reports.trust-accounts.prepare", {
"client_id": "00000000-0000-0000-0000-000000000000",
"period": "string",
"distribution_resolution": {},
"output_format": "pdf",
"include_beneficiary_statements": false
});
console.log(result);Response
{
"skill": "prepare_trust_accounts",
"output": {
"artifact_id": "e61b0c94-7a2f-4d35-b8c9-1f4a6d2e8073",
"download_url": "/artifacts/e61b0c94-7a2f-4d35-b8c9-1f4a6d2e8073/download",
"period": "2025-04-06/2026-04-05",
"stub_fields": [
"income_allocation",
"distributions",
"beneficiary_statements",
"capital_accounts"
],
"warnings": [
"Reasonableness of the distribution should be confirmed against the trust deed."
]
},
"correlation_id": "<string>"
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"retry_after_seconds": "<integer>"
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"retry_after_seconds": "<integer>"
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"retry_after_seconds": "<integer>"
}
}Every response also carries X-Request-ID. Quote it if you write to us about a call.