Get general ledger summary
https://api.light.inc/v1/general-ledger-summary
Returns the opening balance, net movement and closing balance of every account over a date range. Each account carries one figure per entity in scope, the subtotal of those entities' own books, the intercompany elimination the selection is entitled to, and their total. Without a company entity filter the scope is every entity of the company, including inactive ones. 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
Query parameters
-
fromstring · dateFirst day included in the movement figures, inclusive. A UTC calendar date in
YYYY-MM-DDformat. -
tostring · dateLast day included in the movement figures, inclusive. A UTC calendar date in
YYYY-MM-DDformat. -
sortstringSort string in the format
field:direction. To provide multiple sort fields, separate them with commas.Available directions:
asc,desc.Available fields:
accountCode. -
filterstringFilter string in the format
field:operator:value. To provide multiple filters, separate them with commas.Available operators:
eq,ne,in,not_in,gt,gte,lt,lte.- For
inandnot_inoperators, provide multiple values separated by the pipe character (|).
Available fields:
accountCode,accountId,accountType,companyEntityCode,companyEntityId. - For
-
limitinteger · int32Maximum number of items to return. Default is 50, maximum is 200.
-
cursorstringThe cursor position to start returning results from. Omit it, or provide
0, for the initial request. For subsequent requests, usenextCursorfrom the previous response to navigate. Cursor values are opaque and should not be constructed manually. This endpoint paginates by cursor only and has nooffsetparameter.
Response
-
recordsarray of objectList of records for the current page
-
accountIdstring · uuidNote
The ledger account.
-
accountCodeinteger · int32Note
Its numeric code in the chart of accounts.
-
accountLabelstringNote
Its name.
-
accountTypestring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
BANKCARDCASH_AND_EQUIVALENTSACCOUNTS_RECEIVABLEINVENTORYCORPORATE_TAX_RECEIVABLEOTHER_CURRENT_ASSETINTANGIBLE_NON_CURRENT_ASSETTANGIBLE_NON_CURRENT_ASSETFINANCIAL_NON_CURRENT_ASSETCORPORATE_TAX_DEFERRED_ASSETOTHER_NON_CURRENT_ASSETACCOUNTS_PAYABLEOVERDRAFT_FACILITYCORPORATE_TAX_PAYABLEOTHER_CURRENT_LIABILITYLONG_TERM_LOANCORPORATE_TAX_DEFERRED_LIABILITYOTHER_LONG_TERM_LIABILITYCONTRIBUTED_CAPITALRETAINED_EARNINGSACCUMULATED_OTHER_COMPREHENSIVE_INCOMEOTHER_EQUITYCOST_OF_SALESDISTRIBUTION_COSTGENERAL_AND_ADMINISTRATIVE_EXPENSEPERSONNEL_COSTOTHER_OPERATING_EXPENSEINCOME_TAXDEPRECIATION_AND_AMORTIZATIONNON_OPERATING_EXPENSEINTEREST_EXPENSEEXCHANGE_RATE_LOSS_REALIZEDEXCHANGE_RATE_LOSS_UNREALIZEDOTHER_FINANCIAL_EXPENSEREVENUEDISCOUNTNON_OPERATING_INCOMEINTEREST_INCOMEEXCHANGE_RATE_GAIN_REALIZEDEXCHANGE_RATE_GAIN_UNREALIZEDOTHER_FINANCIAL_INCOME -
entitiesarray of objectOne result per entity in scope, whether or not it posted to this account
-
companyEntityIdstring · uuidNote
The entity.
-
companyEntityCodestringNote
Its three-digit code.
-
companyEntityNamestringNote
Its name.
-
localCurrencystringNote
The entity's local currency, which its
localAmountfigures are in. -
amountsobjectBalance carried into the period, the period's own net, and the two added together
Note
Opening balance, movement and closing balance for this entity alone.
-
openingBalanceobjectA signed, debit-positive figure in the group currency, and in the entity's local currency when the figure belongs to one entity
Note
Balance carried into the period, from inception.
-
groupAmountinteger · int64Amount in currency of base company
-
localAmountinteger · int64Amount in local currency of entity, null on figures that cover more than one entity
-
-
movementobjectA signed, debit-positive figure in the group currency, and in the entity's local currency when the figure belongs to one entity
Note
Net of the period's postings.
-
groupAmountinteger · int64Amount in currency of base company
-
localAmountinteger · int64Amount in local currency of entity, null on figures that cover more than one entity
-
-
closingBalanceobjectA signed, debit-positive figure in the group currency, and in the entity's local currency when the figure belongs to one entity
Note
Balance at the end of the period: opening balance plus movement.
-
groupAmountinteger · int64Amount in currency of base company
-
localAmountinteger · int64Amount in local currency of entity, null on figures that cover more than one entity
-
-
-
-
subtotalobjectBalance carried into the period, the period's own net, and the two added together
Note
The entities' own books added together, before elimination.
-
openingBalanceobjectA signed, debit-positive figure in the group currency, and in the entity's local currency when the figure belongs to one entity
Note
Balance carried into the period, from inception.
-
groupAmountinteger · int64Amount in currency of base company
-
localAmountinteger · int64Amount in local currency of entity, null on figures that cover more than one entity
-
-
movementobjectA signed, debit-positive figure in the group currency, and in the entity's local currency when the figure belongs to one entity
Note
Net of the period's postings.
-
groupAmountinteger · int64Amount in currency of base company
-
localAmountinteger · int64Amount in local currency of entity, null on figures that cover more than one entity
-
-
closingBalanceobjectA signed, debit-positive figure in the group currency, and in the entity's local currency when the figure belongs to one entity
Note
Balance at the end of the period: opening balance plus movement.
-
groupAmountinteger · int64Amount in currency of base company
-
localAmountinteger · int64Amount in local currency of entity, null on figures that cover more than one entity
-
-
-
eliminationobjectBalance carried into the period, the period's own net, and the two added together
Note
Postings on the elimination ledger for this account.
-
openingBalanceobjectA signed, debit-positive figure in the group currency, and in the entity's local currency when the figure belongs to one entity
Note
Balance carried into the period, from inception.
-
groupAmountinteger · int64Amount in currency of base company
-
localAmountinteger · int64Amount in local currency of entity, null on figures that cover more than one entity
-
-
movementobjectA signed, debit-positive figure in the group currency, and in the entity's local currency when the figure belongs to one entity
Note
Net of the period's postings.
-
groupAmountinteger · int64Amount in currency of base company
-
localAmountinteger · int64Amount in local currency of entity, null on figures that cover more than one entity
-
-
closingBalanceobjectA signed, debit-positive figure in the group currency, and in the entity's local currency when the figure belongs to one entity
Note
Balance at the end of the period: opening balance plus movement.
-
groupAmountinteger · int64Amount in currency of base company
-
localAmountinteger · int64Amount in local currency of entity, null on figures that cover more than one entity
-
-
-
totalobjectBalance carried into the period, the period's own net, and the two added together
Note
subtotalpluselimination: the consolidated figure.-
openingBalanceobjectA signed, debit-positive figure in the group currency, and in the entity's local currency when the figure belongs to one entity
Note
Balance carried into the period, from inception.
-
groupAmountinteger · int64Amount in currency of base company
-
localAmountinteger · int64Amount in local currency of entity, null on figures that cover more than one entity
-
-
movementobjectA signed, debit-positive figure in the group currency, and in the entity's local currency when the figure belongs to one entity
Note
Net of the period's postings.
-
groupAmountinteger · int64Amount in currency of base company
-
localAmountinteger · int64Amount in local currency of entity, null on figures that cover more than one entity
-
-
closingBalanceobjectA signed, debit-positive figure in the group currency, and in the entity's local currency when the figure belongs to one entity
Note
Balance at the end of the period: opening balance plus movement.
-
groupAmountinteger · int64Amount in currency of base company
-
localAmountinteger · int64Amount in local currency of entity, null on figures that cover more than one entity
-
-
-
groupCurrencystringNote
The currency of every
groupAmountin the row.
-
-
hasMorebooleanBoolean flag indicating if there are more records available
-
nextCursorstringCursor for fetching the next page
-
prevCursorstringCursor for fetching the previous page