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 pass nextCursor back verbatim; there is no offset parameter, no total, and prevCursor is always null. Only accountCode is sortable, and limit cannot exceed 200.
Balances are debit-positive (a credit balance is negative), the opposite polarity to the signed amounts on GET /v1/ledger-transaction-lines. from and to are both required (MISSING_PARAMETER), from must not be after to, the opening balance covers every posting before from, and the movement covers from to to inclusive. Entity filters (companyEntityId, companyEntityCode) accept only eq, ne, in and not_in (UNSUPPORTED_GENERAL_LEDGER_SUMMARY_FILTER_OPERATOR); an entity filter that matches nothing returns rows with empty entities and zero figures. At most two concurrent calls per credential (429 beyond that). Reading amounts sets out the polarity rules.
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 · uuidThe ledger account.
-
accountCodeinteger · int32Its numeric code in the chart of accounts.
-
accountLabelstringIts 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 · uuidThe entity.
-
companyEntityCodestringIts three-digit code.
-
companyEntityNamestringIts name.
-
localCurrencystringThe entity's local currency, which its
localAmountfigures are in. -
amountsobjectBalance carried into the period, the period's own net, and the two added together
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-
-
-
groupCurrencystringThe 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