Skills › Reports
Prepare a Tax Return Artifact
POST/api/v1/skills/reports.tax-return.prepare/invoke
Prepares a tax return for a period from the client's books, with supporting files if you send them. Send client_id, jurisdiction and tax_year; the return type and entity type default to income and company. The answer holds the return summary by box or line, the workpapers, an estimated liability and a download link.
Body parameters
client_idstring · uuidRequired
UUID of the taxpayer entity the return is for.
jurisdictionenumRequired
Tax jurisdiction code: AU, GB, CA, US or NZ.
AUGBCAUSNZ
entity_typeenum · default company
Type of taxpayer: individual, company, partnership or trust; company when omitted.
individualcompanypartnershiptrust
return_typeenum · default income
Kind of return: income, bas, ias, vat, corp, payroll or self_assessment; income when omitted.
incomebasiasvatcorppayrollself_assessment
tax_yearstringRequired
Tax period as YYYY, FY{YYYY} or Q{1-4}-{YYYY} for a quarterly return such as VAT or BAS.
file_idsarray of strings
UUIDs of uploaded supporting files to use.
Returns
Skill executed successfully
skillstringRequired
Example prepare_tax_return
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.return_typestring · default
output.jurisdictionstring · default
output.tax_yearstring · default
output.tax_summaryobject
Structured per-return-type summary (e.g. BAS: G1/1A/1B/net; VAT: box_1/3/4/5/6/7). Pre-PR-D3 this was named
summary and stayed dict-typed; the rename was forced by the BaseArtifactOutput shell which carries summary: str for the short narrative line.output.workpapersarray of objects
output.estimated_liabilitynumber or string · default 0
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.tax-return.prepare/invoke \ -X POST \ -H "Authorization: Bearer sk_..." \ -H "Content-Type: application/json" \ -d '{ "client_id": "00000000-0000-0000-0000-000000000000", "jurisdiction": "AU", "entity_type": "individual", "return_type": "income", "tax_year": "string", "file_ids": [ "00000000-0000-0000-0000-000000000000" ] }'
from heyarchie import Archie archie = Archie(api_key="sk_...") result = archie.skills.invoke( "reports.tax-return.prepare", client_id="00000000-0000-0000-0000-000000000000", jurisdiction="AU", entity_type="individual", return_type="income", tax_year="string", file_ids=["00000000-0000-0000-0000-000000000000"], ) print(result)
import { Archie } from "heyarchie";
const archie = new Archie({ apiKey: "sk_..." });
const result = await archie.skills.invoke("reports.tax-return.prepare", {
"client_id": "00000000-0000-0000-0000-000000000000",
"jurisdiction": "AU",
"entity_type": "individual",
"return_type": "income",
"tax_year": "string",
"file_ids": [
"00000000-0000-0000-0000-000000000000"
]
});
console.log(result);Response
{
"skill": "prepare_tax_return",
"output": {
"artifact_id": "7bc2b995-0e2b-431b-950c-50ca80d8f5be",
"citations": [
{
"confidence": 0.9,
"section": "Section 25",
"standard": "VAT Act 1994"
}
],
"download_url": "https://files.example.com/tax/7bc2b995-0e2b-431b-950c-50ca80d8f5be.pdf",
"estimated_liability": 12240,
"jurisdiction": "GB",
"return_type": "vat",
"stub_fields": [],
"summary": "VAT return for Northwind Trading Ltd for the quarter, with £12,240 payable.",
"tax_summary": {
"box_1": 18450,
"box_2": 0,
"box_3": 18450,
"box_4": 6210,
"box_5": 12240,
"box_6": 92250,
"box_7": 31050
},
"tax_year": "Q2-2026",
"warnings": [],
"workpapers": [
{
"name": "VAT control account reconciliation",
"status": "complete"
}
]
},
"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.