API / Reference / Invoice Payables
List invoice payables
GET
https://api.light.inc/v1/bff/invoice-payables
Returns a paginated list of invoice payables
This is the only list operation for invoice payables — /v1/invoice-payables has no GET. The single-record read is GET /v1/invoice-payables/{invoicePayableId}, and it returns a different shape: list rows have no lineItems, customProperties, outstandingBalance, purchaseOrderId, FX rates or payment references, and instead carry vendor, user, nextApprover, companyEntityName and documentKey. nextApprover is null when the next approver is a user group. include accepts only REIMBURSEMENT. The documentNumber filter matches the invoice number. A credential without the company-admin, AP-preparation or auditor role must filter on its own user id (approverUserId:eq:<id> for an approver, userId:eq:<id> for reimbursements) or it receives 403. No searchTerm.
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,companyEntityName,description,dueDate,fromAccountName,createdAt,invoiceNumber,issuedDate,ocrCompletedAt,paymentAt,senderEmail,state,vendorName,businessPartnerName,nextApproverName. -
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:
approverUserId,id,vendorId,userId,companyEntityId,senderBankAccountId,amount,description,documentNumber,dueDate,issuedDate,paymentAt,createdAt,updatedAt,state,vendorName,userFirstName,userLastName,type,selfBilledEinvoiceDueAt,selfBilledEinvoiceStatus. - 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. -
includearray
Response
-
recordsarray of objectList of records for the current page
-
idstring · uuidThe bill id, also its accounting document id.
-
typestring⚠️ 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).
How the bill came to exist:
typeisVENDOR_INVOICE_METADATA,SELF_BILLED_METADATAorREIMBURSEMENT_METADATA; a reimbursement also carriesreimbursementIdanduserId.-
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
-
-
documentKeystringStorage key of the invoice file. Download it through the bill's document endpoint, not with this key.
-
documentNamestringFile name of the uploaded invoice.
-
senderEmailstringThe address the invoice arrived from, when it came in by email.
-
companyIdstring · uuidYour company id.
-
failureReasonstring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
EMAIL_NOT_ALLOWEDERP_ENTRY_FAILEDOCR_FAILEDPAYMENT_APPROVAL_DECLINEDPAYMENT_FAILEDRESETTING_INVOICE_FAILEDAPPROVAL_SUBMISSION_FAILEDUSER_INPUT_VALIDATION_FAILEDDUPLICATE_INVOICEPAYMENT_REJECTEDPAYMENT_REVERSED -
failureContextobjectFailure context when vendor onboarding fails.
The error of the last failed processing or posting step, if any; cleared on the next success.
-
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
-
-
-
statestring⚠️ 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 -
versioninteger · int32Revision counter, incremented on every change to the bill.
-
approvalNotestringNote left with the approval decision.
-
payeeNamestringWho gets paid, as it will appear on the payment: from the invoice or the vendor's bank details.
-
payeeIbanstringPayee IBAN used for the payment.
-
payeeBbanstringPayee domestic account number, where IBAN is not used.
-
payeeBicstringPayee bank BIC.
-
payeeBankCodestringPayee domestic bank code (sort code, routing number, Bankleitzahl).
-
payeeCountrystringPayee's country.
-
payeeAddressstringPayee's street address.
-
payeeZipcodestringPayee's postal code.
-
payeeBankNamestringName of the payee's bank.
-
payeeBankCountrystring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
UNDEFINEDACADAEAFAGAIALAMANAOAQARASATAUAWAXAZBABBBDBEBFBGBHBIBJBLBMBNBOBQBRBSBTBUBVBWBYBZCACCCDCFCGCHCICKCLCMCNCOCPCRCSCUCVCWCXCYCZDEDGDJDKDMDODZEAECEEEGEHERESETEUEZFIFJFKFMFOFRFXGAGBGDGEGFGGGHGIGLGMGNGPGQGRGSGTGUGWGYHKHMHNHRHTHUICIDIEILIMINIOIQIRISITJEJMJOJPKEKGKHKIKMKNKPKRKWKYKZLALBLCLILKLRLSLTLULVLYMAMCMDMEMFMGMHMKMLMMMNMOMPMQMRMSMTMUMVMWMXMYMZNANCNENFNGNINLNONPNRNTNUNZOMPAPEPFPGPHPKPLPMPNPRPSPTPWPYQARERORSRURWSASBSCSDSESFSGSHSISJSKSLSMSNSOSRSSSTSUSVSXSYSZTATCTDTFTGTHTJTKTLTMTNTOTPTRTTTVTWTZUAUGUKUMUSUYUZVAVCVEVGVIVNVUWFWSXIXUXKYEYTYUZAZMZRZW -
payeeBankAddressstringStreet address of the payee's bank.
-
payeeBankZipcodestringPostal code of the payee's bank.
-
payeeCitystringPayee's city.
-
payeeBankCitystringCity of the payee's bank.
-
fiNumberstringDanish FIK/GIRO payment reference read from the invoice, when it carries one.
-
invoiceNumberstringThe vendor's invoice number.
-
companyEntityIdstring · uuidThe entity the bill belongs to;
nullon a draft with no entity yet. -
companyEntityNamestringThat entity's name.
-
amountinteger · int64Gross total in minor units.
-
currencystringThe bill's currency.
-
issuedDatestring · dateThe invoice date.
-
dueDatestring · dateThe payment due date.
-
paymentAtstring · date-timeWhen the payment is scheduled for, or was made.
-
ocrCompletedAtstring · date-timeWhen Light finished reading the invoice file.
-
canceledAtstring · date-timeWhen the bill was cancelled;
nullotherwise. -
descriptionstringThe bill's description.
-
senderBankAccountIdstring · uuidThe company bank account the bill is paid from.
-
cancellationReasonstringWhy the bill was cancelled.
-
vendorobjectThe vendor and the defaults taken from it.
-
vendorIdstring · uuidThe vendor's id.
-
vatIdstringThe vendor's VAT number.
-
vendorAccountIdstring · uuidThe vendor's default expense account, used for its bills' lines.
-
vendorTaxCodeIdstring · uuidThe vendor's default tax code.
-
vendorCostCenterIdstring · uuidThe vendor's default cost center.
-
vendorSenderBankAccountIdstring · uuidThe company bank account the vendor is paid from by default.
-
vendorIdentifierstringYour own supplier number for the vendor.
-
vendorNamestringThe vendor's name.
-
vendorAvatarUrlstringLogo URL.
-
vendorEmailstringThe vendor's email address.
-
vendorWebsitestringThe vendor's website.
-
vendorCountrystring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
UNDEFINEDACADAEAFAGAIALAMANAOAQARASATAUAWAXAZBABBBDBEBFBGBHBIBJBLBMBNBOBQBRBSBTBUBVBWBYBZCACCCDCFCGCHCICKCLCMCNCOCPCRCSCUCVCWCXCYCZDEDGDJDKDMDODZEAECEEEGEHERESETEUEZFIFJFKFMFOFRFXGAGBGDGEGFGGGHGIGLGMGNGPGQGRGSGTGUGWGYHKHMHNHRHTHUICIDIEILIMINIOIQIRISITJEJMJOJPKEKGKHKIKMKNKPKRKWKYKZLALBLCLILKLRLSLTLULVLYMAMCMDMEMFMGMHMKMLMMMNMOMPMQMRMSMTMUMVMWMXMYMZNANCNENFNGNINLNONPNRNTNUNZOMPAPEPFPGPHPKPLPMPNPRPSPTPWPYQARERORSRURWSASBSCSDSESFSGSHSISJSKSLSMSNSOSRSSSTSUSVSXSYSZTATCTDTFTGTHTJTKTLTMTNTOTPTRTTTVTWTZUAUGUKUMUSUYUZVAVCVEVGVIVNVUWFWSXIXUXKYEYTYUZAZMZRZW -
vendorCitystringCity of the vendor's address.
-
vendorAddressstringStreet address.
-
vendorZipcodestringPostal code.
-
vendorCurrencystringThe vendor's invoicing currency.
-
vendorContractValueinteger · int64Contract value in minor units, as recorded on the vendor.
-
vendorCreatedBystring · uuidThe principal that created the vendor.
-
-
userobjectOn a reimbursement, the employee being repaid.
nullon vendor invoices.-
userIdstring · uuidThe employee's user id.
-
userFirstNamestringFirst name.
-
userLastNamestringLast name.
-
userAvatarUrlstringAvatar URL.
-
-
nextApproverobjectWho the approval is currently waiting on;
nullwhen nothing is pending.-
userIdstring · uuidThe approver's user id.
-
firstNamestringFirst name.
-
lastNamestringLast name.
-
fullNamestringFull name.
-
approvalSentAtstring · date-timeWhen the approval request was sent to this person.
-
-
reimbursementobjectOn a reimbursement, the expenses it repays.
nullon vendor invoices.-
idstring · uuidThe reimbursement id.
-
companyIdstring · uuidYour company id.
-
userIdstring · uuidThe employee being repaid.
-
expenseIdsarray of string · uuidThe expenses this reimbursement repays.
-
statusstring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
IN_PROGRESSSUCCEEDEDFAILEDREJECTEDRESET -
createdAtstring · date-timeWhen the reimbursement was created.
-
-
createdAtstring · date-timeWhen the bill was created.
-
updatedAtstring · date-timeWhen it was last changed.
-
paymentPausedBystring · uuidWho put the payment on hold;
nullwhen it is not paused. -
paymentPausedAtstring · date-timeWhen the payment was put on hold.
-
-
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)