List invoice payables
https://api.light.inc/v1/bff/invoice-payables
Returns a paginated list of invoice payables
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,totalDue,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,hasWithholding,issuedDate,paymentAt,createdAt,updatedAt,state,vendorName,userFirstName,userLastName,type,selfBilledEinvoiceDueAt,selfBilledEinvoiceStatus.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.
-
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 · uuidNote
The 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).
Note
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
-
-
documentKeystringNote
Storage key of the invoice file. Download it through the bill's document endpoint, not with this key.
-
documentNamestringNote
File name of the uploaded invoice.
-
senderEmailstringNote
The address the invoice arrived from, when it came in by email.
-
companyIdstring · uuidNote
Your company id.
-
failureReasonstring⚠️ 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_FAILEDAPPROVAL_SUBMISSION_FAILEDPAYMENT_VALIDATION_FAILEDUSER_INPUT_VALIDATION_FAILEDDUPLICATE_INVOICEPAYMENT_REJECTEDPAYMENT_REVERSED -
failureContextobjectFailure context when vendor onboarding fails.
Note
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 · int32Note
Revision counter, incremented on every change to the bill.
-
approvalNotestringNote
Note left with the approval decision.
-
payeeNamestringNote
Who gets paid, as it will appear on the payment: from the invoice or the vendor's bank details.
-
payeeIbanstringNote
Payee IBAN used for the payment.
-
payeeBbanstringNote
Payee domestic account number, where IBAN is not used.
-
payeeBicstringNote
Payee bank BIC.
-
payeeBankCodestringNote
Payee domestic bank code (sort code, routing number, Bankleitzahl).
-
payeeCountrystringNote
Payee's country.
-
payeeAddressstringNote
Payee's street address.
-
payeeZipcodestringNote
Payee's postal code.
-
payeeBankNamestringNote
Name of the payee's bank.
-
payeeBankCountrystring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
ACADAEAFAGAIALAMANAOAQARASATAUAWAXAZBABBBDBEBFBGBHBIBJBLBMBNBOBQBRBSBTBUBVBWBYBZCACCCDCFCGCHCICKCLCMCNCOCPCRCSCUCVCWCXCYCZDEDGDJDKDMDODZEAECEEEGEHERESETEUEZFIFJFKFMFOFRFXGAGBGDGEGFGGGHGIGLGMGNGPGQGRGSGTGUGWGYHKHMHNHRHTHUICIDIEILIMINIOIQIRISITJEJMJOJPKEKGKHKIKMKNKPKRKWKYKZLALBLCLILKLRLSLTLULVLYMAMCMDMEMFMGMHMKMLMMMNMOMPMQMRMSMTMUMVMWMXMYMZNANCNENFNGNINLNONPNRNTNUNZOMPAPEPFPGPHPKPLPMPNPRPSPTPWPYQARERORSRURWSASBSCSDSESFSGSHSISJSKSLSMSNSOSRSSSTSUSVSXSYSZTATCTDTFTGTHTJTKTLTMTNTOTPTRTTTVTWTZUAUGUKUMUSUYUZVAVCVEVGVIVNVUWFWSXIXUXKYEYTYUZAZMZRZW -
payeeBankAddressstringNote
Street address of the payee's bank.
-
payeeBankZipcodestringNote
Postal code of the payee's bank.
-
payeeCitystringNote
Payee's city.
-
payeeBankCitystringNote
City of the payee's bank.
-
fiNumberstringNote
Danish FIK/GIRO payment reference read from the invoice, when it carries one.
-
invoiceNumberstringNote
The vendor's invoice number.
-
companyEntityIdstring · uuidNote
The entity the bill belongs to;
nullon a draft with no entity yet. -
companyEntityNamestringNote
That entity's name.
-
amountinteger · int64Note
Gross total in minor units.
-
currencystringNote
The bill's currency.
-
issuedDatestring · dateNote
The invoice date.
-
dueDatestring · dateNote
The payment due date.
-
paymentAtstring · date-timeNote
When the payment is scheduled for, or was made.
-
ocrCompletedAtstring · date-timeNote
When Light finished reading the invoice file.
-
canceledAtstring · date-timeNote
When the bill was cancelled;
nullotherwise. -
descriptionstringNote
The bill's description.
-
senderBankAccountIdstring · uuidNote
The company bank account the bill is paid from.
-
cancellationReasonstringNote
Why the bill was cancelled.
-
vendorobjectNote
The vendor and the defaults taken from it.
-
vendorIdstring · uuidNote
The vendor's id.
-
vatIdstringNote
The vendor's VAT number.
-
vendorAccountIdstring · uuidNote
The vendor's default expense account, used for its bills' lines.
-
vendorTaxCodeIdstring · uuidNote
The vendor's default tax code.
-
vendorIsWithholdingSubjectboolean -
vendorCostCenterIdstring · uuidNote
The vendor's default cost center.
-
vendorSenderBankAccountIdstring · uuidNote
The company bank account the vendor is paid from by default.
-
vendorIdentifierstringNote
Your own supplier number for the vendor.
-
vendorNamestringNote
The vendor's name.
-
vendorAvatarUrlstringNote
Logo URL.
-
vendorEmailstringNote
The vendor's email address.
-
vendorWebsitestringNote
The vendor's website.
-
vendorCountrystring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
ACADAEAFAGAIALAMANAOAQARASATAUAWAXAZBABBBDBEBFBGBHBIBJBLBMBNBOBQBRBSBTBUBVBWBYBZCACCCDCFCGCHCICKCLCMCNCOCPCRCSCUCVCWCXCYCZDEDGDJDKDMDODZEAECEEEGEHERESETEUEZFIFJFKFMFOFRFXGAGBGDGEGFGGGHGIGLGMGNGPGQGRGSGTGUGWGYHKHMHNHRHTHUICIDIEILIMINIOIQIRISITJEJMJOJPKEKGKHKIKMKNKPKRKWKYKZLALBLCLILKLRLSLTLULVLYMAMCMDMEMFMGMHMKMLMMMNMOMPMQMRMSMTMUMVMWMXMYMZNANCNENFNGNINLNONPNRNTNUNZOMPAPEPFPGPHPKPLPMPNPRPSPTPWPYQARERORSRURWSASBSCSDSESFSGSHSISJSKSLSMSNSOSRSSSTSUSVSXSYSZTATCTDTFTGTHTJTKTLTMTNTOTPTRTTTVTWTZUAUGUKUMUSUYUZVAVCVEVGVIVNVUWFWSXIXUXKYEYTYUZAZMZRZW -
vendorCitystringNote
City of the vendor's address.
-
vendorAddressstringNote
Street address.
-
vendorZipcodestringNote
Postal code.
-
vendorCurrencystringNote
The vendor's invoicing currency.
-
vendorContractValueinteger · int64Note
Contract value in minor units, as recorded on the vendor.
-
vendorCreatedBystring · uuidNote
The principal that created the vendor.
-
-
userobjectNote
On a reimbursement, the employee being repaid.
nullon vendor invoices.-
userIdstring · uuidNote
The employee's user id.
-
userFirstNamestringNote
First name.
-
userLastNamestringNote
Last name.
-
userAvatarUrlstringNote
Avatar URL.
-
-
nextApproverobjectNote
Who the approval is currently waiting on;
nullwhen nothing is pending.-
userIdstring · uuidNote
The approver's user id.
-
firstNamestringNote
First name.
-
lastNamestringNote
Last name.
-
fullNamestringNote
Full name.
-
approvalSentAtstring · date-timeNote
When the approval request was sent to this person.
-
-
reimbursementobjectNote
On a reimbursement, the expenses it repays.
nullon vendor invoices.-
idstring · uuidNote
The reimbursement id.
-
companyIdstring · uuidNote
Your company id.
-
userIdstring · uuidNote
The employee being repaid.
-
expenseIdsarray of string · uuidNote
The expenses this reimbursement repays.
-
statusstring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
IN_PROGRESSSUCCEEDEDFAILEDREJECTEDRESET -
createdAtstring · date-timeNote
When the reimbursement was created.
-
-
createdAtstring · date-timeNote
When the bill was created.
-
updatedAtstring · date-timeNote
When it was last changed.
-
paymentPausedBystring · uuidNote
Who put the payment on hold;
nullwhen it is not paused. -
paymentPausedAtstring · date-timeNote
When 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)