Reports

Export a financial report

Downloads a branded PDF or XLSX report. Core reports, P&L comparison, comparative balance sheet, cash flow, and financial ratios support both formats. Management Financials is a PDF-only packet.

get/reports/export

Request

  • Base URL: https://ledgerhq.pro/api/v1
  • URL: https://ledgerhq.pro/api/v1/reports/export
  • Auth: one of:
    • HTTP bearer and API key in header x-organization-id
    • HTTP bearer and API key in header x-organization-id

Query parameters

report'income-statement' | 'balance-sheet' | 'trial-balance' | 'general-ledger' | 'pnl-comparison' | 'pnl-by-class' | 'comparative-balance-sheet' | 'cash-flow' | 'financial-ratios' | 'management-financials' required
format'pdf' | 'xlsx'

management-financials supports pdf only.

hideZeroRowsboolean
startDatestring date

Used by Income Statement, General Ledger, and the Management Financials packet.

endDatestring date

Used by Income Statement, General Ledger, and the Management Financials packet.

asOfstring date

Used by Balance Sheet, Trial Balance, and the Management Financials packet.

compare'monthly' | 'quarterly' | 'yearly'

Column cadence for P&L or balance sheet by period.

periodsinteger

Number of periods for P&L or balance sheet comparison.

anchorDatestring date

Final date for a P&L or balance sheet period series.

basis'accrual' | 'cash'

Financial reporting basis. Omit to use the company's default_report_basis. Cash responses include coverage metadata and structured issues; amounts remain integer cents.

Response

Report export file

Changes

No recorded changes to this operation across all 5 revisions of this API.