# Generate a Financial Report

> Produces a PDF and, if asked, an Excel financial report from the client's books for the period you name. Send clientid, reporttype and period; the…

POST /api/v1/skills/reports.financial.prepare/invoke

Produces a PDF and, if asked, an Excel financial report from the client's books for the period you name. Send client_id, report_type and period; the optional inputs add comparison periods, an industry for context, an output format and a cap on how old the source data may be. The answer holds download links, a short summary, the sections and rows written, and any warnings.

Body parameters

client_id string · uuid Required

UUID of the client entity the report is for.

report_type enum Required

Kind of report to produce: trial_balance, profit_loss, balance_sheet, management_accounts, monthly_management, leave_provision, soce, payroll_summary or financial_statements.

trial_balance profit_loss balance_sheet management_accounts monthly_management leave_provision soce payroll_summary financial_statements

period string Required

Reporting period as YYYY, YYYY-MM, FY{YYYY}, Q{1-4}-{YYYY} or an ISO 8601 range YYYY-MM-DD/YYYY-MM-DD.

comparison_periods array of strings

Periods to show beside the main period, in the same formats as period.

industry string

Industry of the client, used as context only and never required.

output_format enum · default pdf

File format to produce: pdf, xlsx or both.

pdf xlsx both

max_age_hours number

Maximum age in hours of the source data before it is refreshed; 24 when omitted.

Returns

Skill executed successfully

skill string Required

Example prepare_financial_report

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

output.period string · default

output.sections array of strings

output.rows_written integer · 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 an M&A Due-Diligence / Quality-Of-Earnings Report](https://heyarchie.com/en-gb/developers/api-reference/reports/prepare-an-m-a-due-diligence-quality-of-earnings-report/)[Next Prepare a Financial Forecast →](https://heyarchie.com/en-gb/developers/api-reference/reports/prepare-a-financial-forecast/)

```
curl https://uk.heyarchie.com/api/v1/skills/reports.financial.prepare/invoke \
  -X POST \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -d '{
       "client_id": "00000000-0000-0000-0000-000000000000",
       "report_type": "trial_balance",
       "period": "string",
       "comparison_periods": [
         "string"
       ],
       "industry": null,
       "output_format": "pdf",
       "max_age_hours": null
     }'
```

```
from heyarchie import Archie
archie = Archie(api_key="sk_...")
result = archie.skills.invoke(
    "reports.financial.prepare",
    client_id="00000000-0000-0000-0000-000000000000",
    report_type="trial_balance",
    period="string",
    comparison_periods=["string"],
    industry=None,
    output_format="pdf",
    max_age_hours=None,
)
print(result)
```

```
import { Archie } from "heyarchie";

const archie = new Archie({ apiKey: "sk_..." });
const result = await archie.skills.invoke("reports.financial.prepare", {
  "client_id": "00000000-0000-0000-0000-000000000000",
  "report_type": "trial_balance",
  "period": "string",
  "comparison_periods": [
    "string"
  ],
  "industry": null,
  "output_format": "pdf",
  "max_age_hours": null
});
console.log(result);
```

Response

```
{
  "skill": "prepare_financial_report",
  "output": {
    "artifact_id": "c7319e97-9c6f-488b-98cb-b01fbaa74279",
    "citations": [
      {
        "confidence": 0.92,
        "section": "Section 4",
        "standard": "FRS 102"
      }
    ],
    "download_url": "https://files.example.com/reports/c7319e97-9c6f-488b-98cb-b01fbaa74279.pdf",
    "period": "2026-09",
    "report_type": "management_accounts",
    "rows_written": 148,
    "sections": [
      "Profit and loss",
      "Balance sheet",
      "Cash flow",
      "Variance commentary"
    ],
    "stub_fields": [],
    "summary": "September 2026 management accounts for Northwind Trading Ltd: revenue £412,300 and net profit £38,900.",
    "warnings": [],
    "xlsx_download_url": "https://files.example.com/reports/c7319e97-9c6f-488b-98cb-b01fbaa74279.xlsx"
  },
  "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.
