Reports
Generate a report
Generate the report as the app shows it, amounts in CHF. pnl and vat are period reports (dateFrom, dateTo); balance-sheet is a point-in-time report (asOfDate); trial-balance (Saldenliste) takes fiscalYearId and / or asOfDate (clamped into the year; one of them is required, 400 INVALID_FISCAL_YEAR_ID for a malformed id, 404 for a year that does not exist) and needs a double-entry profile (403 DOUBLE_ENTRY_REQUIRED otherwise).
get/reports/{type}
Request
- Base URL: https://api.lumabill.ch/v1
- URL: https://api.lumabill.ch/v1/reports/{type}
- Auth: HTTP bearer
Query parameters
dateFromstring date
pnl / vat - start of the period (inclusive)
dateTostring date
pnl / vat - end of the period (inclusive)
asOfDatestring date
balance-sheet / trial-balance - the as-of date
fiscalYearIdstring uuid
trial-balance - the fiscal year (see /fiscal-years)
Response
Generated report
Example response
{
"fxResult": {
"other": -0.01,
"accounts": [
{
"code": "6960"
}
]
},
"fxNote": {
"accounts": [
{
"code": "1021",
"currency": "CHF",
"rateSource": "BAZG"
}
],
"ratesUsed": [
{
"currency": "CHF",
"rateSource": "BAZG"
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.