List invoice payable details
https://api.light.inc/v1/invoice-payables
Returns a paginated list of invoice payables. Defaults to createdAt:desc when sort is omitted. updatedAt, approverUserId, userId and hasWithholding can be filtered on but are not returned in the response, and updatedAt cannot be sorted by. Resolve vendorId against GET /v1/vendors/{vendorId} for the vendor's details beyond vendorName. Filter on documentStatus:in:POSTED|PARTIALLY_CLEARED to list the bills that still owe money; a state filter cannot express that, because the scheduled and payment-pending bills owe money too. There is no partial-match operator, so a filter on a text field such as vendorName, description or invoiceNumber matches the stored value exactly and returns an empty page when nothing matches.
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:
amount,canceledAt,createdAt,description,dueDate,invoiceNumber,issuedDate,ocrCompletedAt,paymentAt,senderEmail,state,vendorName. -
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:
amount,approverUserId,companyEntityId,createdAt,description,documentStatus,dueDate,hasWithholding,id,invoiceNumber,issuedDate,paymentAt,senderBankAccountId,state,type,updatedAt,userId,vendorId,vendorName.These fields accept only a subset of the operators:
hasWithholding(eq,ne). - 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
-
idstring · uuidExternal ID of the invoice payable object.
-
typestringType of the invoice payable (e.g. vendor invoice or reimbursement).
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
REIMBURSEMENTSELF_BILLEDVENDOR_INVOICE -
metadataobjectMetadata specific to the invoice payable type (e.g. reimbursement- or vendor-specific fields).
-
typestringType of metadata attached to the invoice payable, depending on its kind (vendor invoice or reimbursement).
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
SELF_BILLED_METADATAVENDOR_INVOICE_METADATAREIMBURSEMENT_METADATA
-
-
statestringCurrent state of the invoice payable in its lifecycle (from ingestion to payment/completion).
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
INITCREATEDIN_DRAFTAPPROVAL_REQUESTEDAPPROVAL_PENDINGAPPROVED_ACCOUNTING_ENTRY_PENDINGDECLINEDREADY_FOR_PAYMENT_RELEASEPENDING_PAYMENT_APPROVALPAYMENT_PAUSEDSCHEDULEDPAYMENT_PENDINGPARTIALLY_PAIDUNPAIDPAIDCOMPLETEDRESET_PENDINGCANCELLATION_PENDINGCANCELLEDDUPLICATEDIMPORT_PENDING -
documentStatusstringStatus of the accounting document the invoice payable is booked as. Filter on
documentStatus:in:POSTED|PARTIALLY_CLEAREDto list the bills that still owe money.⚠️ This enum is not exhaustive; new values may be added in the future.
One of
DRAFTAPPROVAL_PENDINGAPPROVEDPOSTEDPARTIALLY_CLEAREDCLEAREDARCHIVED -
companyIdstring · uuidID of the company this invoice payable belongs to.
-
companyEntityIdstring · uuidID of the company entity this invoice payable is booked under.
-
vendorIdstring · uuidID of the vendor entity this invoice payable is linked to, if any.
-
vendorNamestringName of the vendor the invoice payable is for, as stored on the vendor record. Resolve
vendorIdagainstGET /v1/vendors/{vendorId}for the vendor's other details. -
invoiceNumberstringInvoice number provided on the vendor invoice.
-
documentNamestringName of the original document file associated with this invoice payable.
-
descriptionstringDescription or memo for the invoice payable.
-
amountinteger · int64Total invoice amount in cents, expressed in the invoice currency.
-
netAmountinteger · int64Net amount in cents, excluding tax. Unlike
amount, this is not a header value: it is derived by summing this invoice payable's persisted line items (debit-positive, credit-negative), so it is null when the bill has no coded lines even thoughamountis set, and it is not guaranteed to sum toamount. -
outstandingBalanceinteger · int64Outstanding invoice balance to be paid in cents, expressed in the invoice currency.
0means the bill is settled.nullmeans Light derived no balance for it — for instance the bill has no amount yet, its state isCANCELLED,DECLINEDorDUPLICATED, or the company does not keep its ledger in Light — so do not readnullas fully paid. -
amountPaidinteger · int64Amount paid against the invoice in cents, expressed in the invoice currency. Credit notes and reversed payments are not counted.
nullmeans Light derived no balance for the bill, as foroutstandingBalance. -
currencystring -
issuedDatestring · dateIssue date of the original vendor invoice.
-
postingDatestring · dateDate the invoice payable is posted to the ledger, which sets its accounting period.
-
dueDatestring · datePayment due date of the invoice payable.
-
paymentAtstring · date-timeDate/time when payment is scheduled or was executed for this invoice payable.
-
invoiceCreatedAtstring · date-timeTimestamp when the invoice payable record was created.
-
updatedAtstring · date-timeTimestamp when the invoice payable record was last updated.
-
ocrCompletedAtstring · date-timeTimestamp when OCR processing for this invoice payable was completed.
-
canceledAtstring · date-timeTimestamp when this invoice payable was cancelled.
-
cancellationReasonstringReason why the invoice payable was cancelled, if applicable.
-
approvalNotestringApproval note associated with the invoice payable (e.g. approver comments).
-
failureReasonstringHigh-level reason why processing the invoice payable failed, if any.
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
EMAIL_NOT_ALLOWEDERP_ENTRY_FAILEDOCR_FAILEDDOCUMENT_PROCESSING_FAILEDPAYMENT_APPROVAL_DECLINEDPAYMENT_FAILEDRESETTING_INVOICE_FAILEDCANCELLING_INVOICE_FAILEDAPPROVAL_SUBMISSION_FAILEDPAYMENT_VALIDATION_FAILEDUSER_INPUT_VALIDATION_FAILEDDUPLICATE_INVOICEPAYMENT_REJECTEDPAYMENT_REVERSED -
failureContextobjectFailure context when vendor onboarding fails.
-
namestringThe error name
-
typestringThe error type
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
BAD_REQUESTUNAUTHORIZEDFORBIDDENNOT_FOUNDCONFLICTUNPROCESSABLE_CONTENT -
errorsarray of objectList of errors providing details about what went wrong
-
typestringA string code identifying the error type
-
messagestringA human-readable message providing more details about the error
-
patharray of stringOptional path of the error when the error is for a specific field. Used mostly on BAD_REQUEST errors, that path will match the field name on the request object
-
contextobjectOptional context providing additional information about the error. This can include any relevant data that might help in understanding or resolving the error
-
-
-
warningContextobjectFailure context when vendor onboarding fails.
-
namestringThe error name
-
typestringThe error type
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
BAD_REQUESTUNAUTHORIZEDFORBIDDENNOT_FOUNDCONFLICTUNPROCESSABLE_CONTENT -
errorsarray of objectList of errors providing details about what went wrong
-
typestringA string code identifying the error type
-
messagestringA human-readable message providing more details about the error
-
patharray of stringOptional path of the error when the error is for a specific field. Used mostly on BAD_REQUEST errors, that path will match the field name on the request object
-
contextobjectOptional context providing additional information about the error. This can include any relevant data that might help in understanding or resolving the error
-
-
-
fiNumberstringFI (Finnish reference) number associated with this invoice payable, if applicable.
-
senderEmailstringEmail address from which the invoice payable was received, if known.
-
senderBankAccountIdstring · uuidID of the sender bank account from which this invoice payable will be paid.
-
paymentPausedBystring · uuidID of the user who paused payment for this invoice payable, if payment is paused.
-
paymentPausedAtstring · date-timeTimestamp when payment for this invoice payable was paused, if applicable.
-
payeeNamestringName of the payee for this invoice payable.
-
payeeIbanstringPayee IBAN used for payment of this invoice payable.
-
payeeBbanstringPayee BBAN (Basic Bank Account Number) used for local payments.
-
payeeBicstringPayee bank BIC/SWIFT code.
-
payeeBankCodestringPayee bank/branch code used for local payments.
-
payeeBankNamestringName of the payee's bank.
-
payeeBankCountrystringCountry of the payee's bank.
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
ACADAEAFAGAIALAMANAOAQARASATAUAWAXAZBABBBDBEBFBGBHBIBJBLBMBNBOBQBRBSBTBUBVBWBYBZCACCCDCFCGCHCICKCLCMCNCOCPCRCSCUCVCWCXCYCZDEDGDJDKDMDODZEAECEEEGEHERESETEUEZFIFJFKFMFOFRFXGAGBGDGEGFGGGHGIGLGMGNGPGQGRGSGTGUGWGYHKHMHNHRHTHUICIDIEILIMINIOIQIRISITJEJMJOJPKEKGKHKIKMKNKPKRKWKYKZLALBLCLILKLRLSLTLULVLYMAMCMDMEMFMGMHMKMLMMMNMOMPMQMRMSMTMUMVMWMXMYMZNANCNENFNGNINLNONPNRNTNUNZOMPAPEPFPGPHPKPLPMPNPRPSPTPWPYQARERORSRURWSASBSCSDSESFSGSHSISJSKSLSMSNSOSRSSSTSUSVSXSYSZTATCTDTFTGTHTJTKTLTMTNTOTPTRTTTVTWTZUAUGUKUMUSUYUZVAVCVEVGVIVNVUWFWSXIXUXKYEYTYUZAZMZRZW -
payeeBankAddressstringStreet address of the payee's bank.
-
payeeBankCitystringCity of the payee's bank.
-
payeeBankZipcodestringZIP/postal code of the payee's bank.
-
payeeCountrystringCountry of the payee.
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
ACADAEAFAGAIALAMANAOAQARASATAUAWAXAZBABBBDBEBFBGBHBIBJBLBMBNBOBQBRBSBTBUBVBWBYBZCACCCDCFCGCHCICKCLCMCNCOCPCRCSCUCVCWCXCYCZDEDGDJDKDMDODZEAECEEEGEHERESETEUEZFIFJFKFMFOFRFXGAGBGDGEGFGGGHGIGLGMGNGPGQGRGSGTGUGWGYHKHMHNHRHTHUICIDIEILIMINIOIQIRISITJEJMJOJPKEKGKHKIKMKNKPKRKWKYKZLALBLCLILKLRLSLTLULVLYMAMCMDMEMFMGMHMKMLMMMNMOMPMQMRMSMTMUMVMWMXMYMZNANCNENFNGNINLNONPNRNTNUNZOMPAPEPFPGPHPKPLPMPNPRPSPTPWPYQARERORSRURWSASBSCSDSESFSGSHSISJSKSLSMSNSOSRSSSTSUSVSXSYSZTATCTDTFTGTHTJTKTLTMTNTOTPTRTTTVTWTZUAUGUKUMUSUYUZVAVCVEVGVIVNVUWFWSXIXUXKYEYTYUZAZMZRZW -
payeeAddressstringStreet address of the payee.
-
payeeCitystringCity of the payee.
-
payeeZipcodestringZIP/postal code of the payee.
-
-
hasMorebooleanBoolean flag indicating if there are more records available
-
nextCursorstringCursor for fetching the next page
-
prevCursorstringCursor for fetching the previous page