# Prepare a Tax Return Artifact

> Prepares a tax return for a period from the client's books, with supporting files if you send them. Send clientid, jurisdiction and taxyear; the return…

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

UUID of the taxpayer entity the return is for.

jurisdiction enum Required

Tax jurisdiction code: AU, GB, CA, US or NZ.

AU GB CA US NZ

entity_type enum · default company

Type of taxpayer: individual, company, partnership or trust; company when omitted.

individual company partnership trust

return_type enum · default income

Kind of return: income, bas, ias, vat, corp, payroll or self_assessment; income when omitted.

income bas ias vat corp payroll self_assessment

tax_year string Required

Tax period as YYYY, FY{YYYY} or Q{1-4}-{YYYY} for a quarterly return such as VAT or BAS.

file_ids array of strings

UUIDs of uploaded supporting files to use.

Returns

Skill executed successfully

skill string Required

Example prepare_tax_return

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.return_type string · default

output.jurisdiction string · default

output.tax_year string · default

output.tax_summary object

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.workpapers array of objects

output.estimated_liability number or string · default 0

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 Financial Forecast](https://heyarchie.com/en-gb/developers/api-reference/reports/prepare-a-financial-forecast/)[Next Prepare Trust Accounts →](https://heyarchie.com/en-gb/developers/api-reference/reports/prepare-trust-accounts/)

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

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