API / Reference / Ledger Transactions
List ledger transaction lines
GET
https://api.light.inc/v1/ledger-transaction-lines
Returns a paginated list of ledger transaction lines
Signed amounts on these lines are credit-positive — the opposite polarity to the balances GET /v1/general-ledger-summary returns. debit, credit and dcSign are declared on the amounts model but are not returned, so the sign of signedLocalAmount is the direction.
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
-
sortstringSort string in the format
field:direction. To provide multiple sort fields, separate them with commas.Available directions:
asc,desc.Available fields:
accountingDocumentNumber,transactionSequenceId,documentSequenceId,documentType,accountCode,accountLabel,postingDate,accountType,taxTagLabel,createdAt. -
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,accDocId,businessPartnerId,businessPartnerName,companyEntityCode,companyEntityId,createdAt,customPropertyValueId,documentSequenceId,documentType,eliminationOffset,groupAmount,groupCurrency,id,ledgerName,lineType,localAmount,localCurrency,postingDate,taxTagLabel,transactionCurrency,transactionId,transactionSequenceId.These fields accept only a subset of the operators:
customPropertyValueId(eq,in). - For
-
limitinteger · int32Maximum number of items to return. Default is 50, maximum is 200.
-
offsetinteger · int64deprecatedNumber of items to skip before starting to collect the result set. Deprecated, use 'cursor' instead.
-
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. -
includeCustomPropertiesboolean -
includeMaxLineAmountbooleandeprecatedIf true, includes the maximum line amount in the response. This field is deprecated and will be removed, please fetch all lines and compute this locally if needed
Response
-
maxTransactionAmountinteger · int64deprecatedMaximum line amount in transaction currency across all records. This field is deprecated and will be removed, please fetch all lines and compute this locally if needed
-
recordsarray of objectList of records for the current page
-
idstring · uuid -
ledgerTransactionIdstring · uuid -
transactionSequenceIdstring -
companyIdstring · uuid -
companyEntityIdstring · uuid -
companyEntityCodestring -
companyEntityNamestring -
ledgerNamestring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
PRIMARYELIMINATION -
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 -
accountingDocumentLineIdstring · uuid -
documentSequenceIdstring -
accountingDocumentIdstring · uuid -
accountingDocumentNumberstring -
documentTypestring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
APARBPCCCNCTDEFXJEYC -
postingDatestring · date -
valuationDatestring · date -
descriptionstring -
documentDescriptionstring -
amountsobject-
dcSignstring⚠️ This enum is not exhaustive; new values may be added in the future.
Declared in the schema but not returned by this endpoint in practice. Take the direction from the sign of
signedLocalAmountinstead.One of
DC -
transactionAmountinteger · int64Unsigned magnitude. The direction lives in the sign of
signedTransactionAmount, not here. -
transactionAmountInMajorsnumber -
signedTransactionAmountinteger · int64Credit-positive: a credit is positive, a debit is negative, in minor units. This is the opposite polarity to the balances
GET /v1/general-ledger-summaryreturns, which are debit-positive — reconciling one against the other means flipping the sign on one side. There is noInMajorscounterpart to this field; the unsigned*InMajorsvalue beside it carries the magnitude only. -
transactionCurrencystring -
localAmountinteger · int64Unsigned magnitude. The direction lives in the sign of
signedLocalAmount, not here. -
localAmountInMajorsnumber -
signedLocalAmountinteger · int64Credit-positive: a credit is positive, a debit is negative, in minor units. This is the opposite polarity to the balances
GET /v1/general-ledger-summaryreturns, which are debit-positive — reconciling one against the other means flipping the sign on one side. There is noInMajorscounterpart to this field; the unsigned*InMajorsvalue beside it carries the magnitude only. -
localCurrencystring -
groupAmountinteger · int64Unsigned magnitude. The direction lives in the sign of
signedGroupAmount, not here. -
groupAmountInMajorsnumber -
signedGroupAmountinteger · int64Credit-positive: a credit is positive, a debit is negative, in minor units. This is the opposite polarity to the balances
GET /v1/general-ledger-summaryreturns, which are debit-positive — reconciling one against the other means flipping the sign on one side. There is noInMajorscounterpart to this field; the unsigned*InMajorsvalue beside it carries the magnitude only. -
groupCurrencystring -
debitbooleanDeclared in the schema but not returned by this endpoint in practice. Take the direction from the sign of
signedLocalAmountinstead. -
creditbooleanDeclared in the schema but not returned by this endpoint in practice. Take the direction from the sign of
signedLocalAmountinstead.
-
-
taxIdstring · uuid -
taxTagLabelstring -
taxCodestring -
businessPartnerNamestring -
businessPartnerIdstring · uuid -
costCenterIdstring · uuid -
accruedLedgerTransactionLineIdstring · uuid -
ledgerTransactionTypestring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
DEFAULTAMORTIZATIONFXCTABANK_CLEARING -
isAmortizedboolean -
accountingReleaseStartDatestring · date -
accountingReleaseEndDatestring · date -
createdAtstring · date-time -
createdBystring · uuid -
customPropertiesarray of object-
groupIdstring · uuidID of the custom property group
-
groupInternalNamestringInternal name of the custom property group
-
valuesarray of objectList of values. Note that this will be a single value unless the group input type supports multiple values
-
idstring · uuidUnique identifier for the object
-
groupIdstring · uuidID of the custom property group
-
groupInternalNamestringInternal name of the custom property group
-
companyIdstring · uuidID of the company
-
internalNamestringInternal name of the custom property value
-
labelstringLabel of the custom property value
-
contextstringContext/description of the custom property value
-
createdAtstring · date-timeTimestamp when the custom property value was created
-
updatedAtstring · date-timeTimestamp when the custom property value was last updated
-
-
-
-
hasMorebooleanBoolean flag indicating if there are more records available
-
totalinteger · int64deprecatedTotal number of records (only for offset pagination). This field is not guaranteed to be returned and only available for offset pagination, please do not rely on it and migrate to cursor pagination.
-
nextCursorstringCursor for fetching the next page (only for cursor pagination)
-
prevCursorstringCursor for fetching the previous page (only for cursor pagination)