Operating system set to macOS
Documentation jurisdiction set to United States
Sign inConnect Claude

Invoke Skill Reports Financial Prepare

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

Generate a financial report (TB, P&L, balance sheet, mgmt accounts, or financial statements).

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.

Request bodyapplication/json

FieldTypeDescription
client_idrequiredstring (uuid)UUID of the client entity the report is for.
report_typerequired"trial_balance" | "profit_loss" | "balance_sheet" | "management_accounts" | "monthly_management" | "leave_provision" | "soce" | "payroll_summary" | "financial_statements"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
periodrequiredstringReporting period as YYYY, YYYY-MM, FY{YYYY}, Q{1-4}-{YYYY} or an ISO 8601 range YYYY-MM-DD/YYYY-MM-DD.
comparison_periodsstring[]Periods to show beside the main period, in the same formats as period.
industrystring | nullIndustry of the client, used as context only and never required.
output_format"pdf" | "xlsx" | "both"File format to produce: pdf, xlsx or both.
pdfxlsxboth
max_age_hoursnumber | nullMaximum age in hours of the source data before it is refreshed; 24 when omitted.

Responses

200Skill executed successfully
FieldTypeDescription
skillrequiredstringβ€”
outputrequiredobjectβ€”
show nested
FieldTypeDescription
artifact_idstring (uuid) | nullβ€”
download_urlstringβ€”
summarystringβ€”
citationsany[]β€”
warningsstring[]β€”
stub_fieldsstring[]β€”
xlsx_download_urlstring | nullβ€”
report_typestringβ€”
periodstringβ€”
sectionsstring[]β€”
rows_writtenintegerβ€”
correlation_idrequiredstringβ€”
401Authentication required
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
403Insufficient permissions
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
404Skill not found
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
429Rate limit exceeded
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
5XXInternal server error
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
curl https://api.dev.arch.ie/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
     }'