# Prepare Trust Accounts

> Prepares year-end trust accounts for an accountant's trust client from its trial balance, covering the trust-level income computation, beneficiary income…

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_id string · uuid Required

UUID of the trust client the accounts are prepared for.

period string Required

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.

output_format enum · default both

Format of the accounts: pdf, xlsx or both.

pdf xlsx both

include_beneficiary_statements boolean · default true

Whether to include a statement for each beneficiary.

Returns

Skill executed successfully

skill string Required

Example prepare_trust_accounts

output object Required

output.artifact_id string · uuid

output.download_url string · default

output.summary string · default

output.citations array of values

output.warnings array of strings

output.stub_fields array of strings

output.xlsx_download_url string

output.period string · default

output.income_allocation object

output.distributions array of objects

output.beneficiary_statements array of objects

output.capital_accounts object

correlation_id string Required

Errors

Status Type When

401 AUTH.TOKEN_INVALID Authentication required

403 PERMISSION.CAPABILITY_DENIED Insufficient permissions

404 SKILL.NOT_FOUND Skill not found

422 VALIDATION.INVALID_FORMAT Validation error

429 RATE_LIMIT.USER Rate limit exceeded

5XX INTERNAL.UNKNOWN Internal server error

[Previous ← Prepare a Tax Return Artifact](https://heyarchie.com/en-gb/developers/api-reference/reports/prepare-a-tax-return-artifact/)[Next Prepare a Business Valuation Report →](https://heyarchie.com/en-gb/developers/api-reference/reports/prepare-a-business-valuation-report/)

```
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>"
  }
}
```

Every response also carries X-Request-ID. Quote it if you write to us about a call.
