Skills › Reports
Generate a Financial Report
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_idstring · uuidRequired
UUID of the client entity the report is for.
report_typeenumRequired
Kind of report to produce: trial_balance, profit_loss, balance_sheet, management_accounts, monthly_management, leave_provision, soce, payroll_summary or financial_statements.
trial_balanceprofit_lossbalance_sheetmanagement_accountsmonthly_managementleave_provisionsocepayroll_summaryfinancial_statements
periodstringRequired
Reporting period as YYYY, YYYY-MM, FY{YYYY}, Q{1-4}-{YYYY} or an ISO 8601 range YYYY-MM-DD/YYYY-MM-DD.
comparison_periodsarray of strings
Periods to show beside the main period, in the same formats as period.
industrystring
Industry of the client, used as context only and never required.
output_formatenum · default pdf
File format to produce: pdf, xlsx or both.
pdfxlsxboth
max_age_hoursnumber
Maximum age in hours of the source data before it is refreshed; 24 when omitted.
Returns
Skill executed successfully
skillstringRequired
Example prepare_financial_report
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.report_typestring · default
output.periodstring · default
output.sectionsarray of strings
output.rows_writteninteger · 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.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>"
}
}{
"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.