API / Reference / General Ledger Summary
Get general ledger summary
GET
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.
The cursor description below is wrong for this endpoint. Sending cursor=0 is rejected with {"name": "InvalidCursorException", "errors": [{"type": "INVALID_CURSOR"}]}. Omit cursor on the first request and follow nextCursor from each response, or use offset instead.
Balances here are debit-positive, the opposite polarity to the signed amounts on GET /v1/ledger-transaction-lines.
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. To opt-in into cursor-based pagination, provide
0for the initial request. For subsequent requests, usenextCursorandprevCursorfrom the previous response to navigate. Cursor values are opaque and should not be constructed manually.
Response
-
recordsarray of objectList of records for the current page
-
accountIdstring · uuid -
accountCodeinteger · int32 -
accountLabelstring -
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 · uuid -
companyEntityCodestring -
companyEntityNamestring -
localCurrencystring -
amountsobjectBalance carried into the period, the period's own net, and the two added together
-
openingBalanceobjectA signed, debit-positive figure in the group currency, and in the entity's local currency when the figure belongs to one entity
-
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
-
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
-
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
-
openingBalanceobjectA signed, debit-positive figure in the group currency, and in the entity's local currency when the figure belongs to one entity
-
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
-
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
-
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
-
openingBalanceobjectA signed, debit-positive figure in the group currency, and in the entity's local currency when the figure belongs to one entity
-
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
-
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
-
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
-
openingBalanceobjectA signed, debit-positive figure in the group currency, and in the entity's local currency when the figure belongs to one entity
-
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
-
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
-
groupAmountinteger · int64Amount in currency of base company
-
localAmountinteger · int64Amount in local currency of entity, null on figures that cover more than one entity
-
-
-
groupCurrencystring
-
-
hasMorebooleanBoolean flag indicating if there are more records available
-
nextCursorstringCursor for fetching the next page
-
prevCursorstringCursor for fetching the previous page