Generate a ledger report
https://api.light.inc/v1/ledger-reports/{reportDefinitionId}
Runs a table report definition, such as the balance sheet, the income statement, the trial balance or a VAT return, and returns the same figures the report shows in Light. Find the report definition with listReportDefinitions. A SINGLE report covers exactly one company entity. A CONSOLIDATED report carries one result per company entity in scope, their subtotal, the intercompany eliminations and the total. An elimination between two entities applies only when both are in scope; one belonging to the group as a whole applies only when the scope covers the whole company.
Authorization
Send one of these on every request. See Authentication for how to get credentials.
- API key
Basic authentication header of the form Basic <api_key>, where <api_key> is your api key.
- Bearer token
Path parameters
-
reportDefinitionIdstring · uuidrequired
Query parameters
-
companyEntityIdsarrayCompany entities the report covers. A
SINGLEreport needs exactly one. Without it aCONSOLIDATEDreport covers every company entity the caller can reach, including inactive ones -
fromstring · dateFirst day of the report, inclusive. Required when the report definition's
periodisRANGE; leave it out for a balance as ofto. A UTC calendar date inYYYY-MM-DDformat. -
tostring · daterequiredLast day of the report, inclusive. A UTC calendar date in
YYYY-MM-DDformat. -
customPropertyValueIdsarrayOnly include postings tagged with these custom property values
-
currencyTypestringrequiredLOCAL- The local currency of the company entities, which must all share oneGROUP- The group currency of the company
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
LOCALGROUP -
reportTypestringrequiredSINGLE- One company entity's own books, without eliminations.companyEntityIdsmust hold exactly one company entityCONSOLIDATED- Several company entities added together, with the intercompany eliminations the selection is entitled to
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
SINGLECONSOLIDATED
Response
-
labelstringDisplay name of the report
-
countrystringCountry of the report definition
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
ACADAEAFAGAIALAMANAOAQARASATAUAWAXAZBABBBDBEBFBGBHBIBJBLBMBNBOBQBRBSBTBUBVBWBYBZCACCCDCFCGCHCICKCLCMCNCOCPCRCSCUCVCWCXCYCZDEDGDJDKDMDODZEAECEEEGEHERESETEUEZFIFJFKFMFOFRFXGAGBGDGEGFGGGHGIGLGMGNGPGQGRGSGTGUGWGYHKHMHNHRHTHUICIDIEILIMINIOIQIRISITJEJMJOJPKEKGKHKIKMKNKPKRKWKYKZLALBLCLILKLRLSLTLULVLYMAMCMDMEMFMGMHMKMLMMMNMOMPMQMRMSMTMUMVMWMXMYMZNANCNENFNGNINLNONPNRNTNUNZOMPAPEPFPGPHPKPLPMPNPRPSPTPWPYQARERORSRURWSASBSCSDSESFSGSHSISJSKSLSMSNSOSRSSSTSUSVSXSYSZTATCTDTFTGTHTJTKTLTMTNTOTPTRTTTVTWTZUAUGUKUMUSUYUZVAVCVEVGVIVNVUWFWSXIXUXKYEYTYUZAZMZRZW -
reportDefinitionIdstring · uuid -
fromstring · dateFirst day of the report, inclusive. Null when the request gave no
from -
tostring · dateLast day of the report, inclusive
-
currencystringCurrency of the report's amounts
-
companyEntityIdsarray of string · uuidCompany entities the report covers
-
columnLabelsobjectHeading of each column
-
linesarray of object-
labelstring -
rowNumberinteger · int32Row of the report definition. Null on a ledger account's line
-
parentRowNumberinteger · int32Row this line is nested under
-
typestringTEMPLATE- A row of the report definitionDYNAMIC- A ledger account listed under the row it contributes to
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
TEMPLATEDYNAMIC -
accountCategorystringCategory of the ledger account, on a ledger account's line
STANDARD_ACCOUNT- An account that holds postingsHEADER_ACCOUNT- An account that only groups other accountsSUM_ACCOUNT- An account that totals other accounts
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
STANDARD_ACCOUNTHEADER_ACCOUNTSUM_ACCOUNT -
resultsByCompanyEntityIdobject -
subtotalResultobjectThe value of each column that has one, keyed by column
-
columnBoxesobject
-
-
eliminationResultobjectThe value of each column that has one, keyed by column
-
columnBoxesobject
-
-
totalResultobjectThe value of each column that has one, keyed by column
-
columnBoxesobject
-
-