Returns a paginated list of invoice payables
curl --request GET \
--url https://api.light.inc/v1/bff/invoice-payables \
--header 'Authorization: <api-key>'{
"records": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "REIMBURSEMENT",
"metadata": {
"type": "VENDOR_INVOICE_METADATA"
},
"documentKey": "<string>",
"documentName": "<string>",
"senderEmail": "<string>",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"failureReason": "EMAIL_NOT_ALLOWED",
"failureContext": {
"name": "<string>",
"type": "BAD_REQUEST",
"errors": [
{
"type": "<string>",
"message": "<string>",
"path": [
"<string>"
],
"context": {}
}
]
},
"state": "INIT",
"version": 123,
"approvalNote": "<string>",
"payeeName": "<string>",
"payeeIban": "<string>",
"payeeBban": "<string>",
"payeeBic": "<string>",
"payeeBankCode": "<string>",
"payeeCountry": "<string>",
"payeeAddress": "<string>",
"payeeZipcode": "<string>",
"payeeBankName": "<string>",
"payeeBankCountry": "UNDEFINED",
"payeeBankAddress": "<string>",
"payeeBankZipcode": "<string>",
"payeeCity": "<string>",
"payeeBankCity": "<string>",
"fiNumber": "<string>",
"invoiceNumber": "<string>",
"companyEntityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"companyEntityName": "<string>",
"amount": 123,
"currency": "USD",
"issuedDate": "2023-12-25",
"dueDate": "2023-12-25",
"paymentAt": "2023-11-07T05:31:56Z",
"ocrCompletedAt": "2023-11-07T05:31:56Z",
"canceledAt": "2023-11-07T05:31:56Z",
"description": "<string>",
"senderBankAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cancellationReason": "<string>",
"vendor": {
"vendorId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vatId": "<string>",
"vendorAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendorTaxCodeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendorCostCenterId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendorSenderBankAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendorIdentifier": "<string>",
"vendorName": "<string>",
"vendorAvatarUrl": "<string>",
"vendorEmail": "<string>",
"vendorWebsite": "<string>",
"vendorCountry": "UNDEFINED",
"vendorCity": "<string>",
"vendorAddress": "<string>",
"vendorZipcode": "<string>",
"vendorCurrency": "USD",
"vendorContractValue": 123,
"vendorCreatedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"user": {
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userFirstName": "<string>",
"userLastName": "<string>",
"userAvatarUrl": "<string>"
},
"nextApprover": {
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"firstName": "<string>",
"lastName": "<string>",
"fullName": "<string>",
"notificationChannel": "MS_TEAMS",
"approvalSentAt": "2023-11-07T05:31:56Z"
},
"reimbursement": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expenseIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"status": "IN_PROGRESS",
"createdAt": "2023-11-07T05:31:56Z"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"paymentPausedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"paymentPausedAt": "2023-11-07T05:31:56Z"
}
],
"hasMore": true,
"total": 123,
"nextCursor": "<string>",
"prevCursor": "<string>"
}Basic authentication header of the form Basic <api_key>, where <api_key> is your api key.
Sort 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, createdAt, issuedDate, ocrCompletedAt, paymentAt, state, vendorName, businessPartnerName, nextApproverName.
"amount:desc,createdAt:asc"
Filter 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.
in and not_in operators, provide multiple values separated by the pipe character (|).Available fields: id, vendorId, userId, companyEntityId, senderBankAccountId, amount, description, dueDate, issuedDate, paymentAt, createdAt, state, vendorName, userFirstName, userLastName, type.
"state:in:IN_DRAFT|SCHEDULED|PAID,amount:gte:500,vendorId:ne:null"
Maximum number of items to return. Default is 50, maximum is 200.
x <= 200Number of items to skip before starting to collect the result set. Deprecated, use 'cursor' instead.
The cursor position to start returning results from.
To opt-in into cursor-based pagination, provide 0 for the initial request.
For subsequent requests, use nextCursor and prevCursor from the previous response to navigate.
⚠️ This enum is not exhaustive; new values may be added in the future.
REIMBURSEMENT default response
List of records for the current page
Show child attributes
⚠️ This enum is not exhaustive; new values may be added in the future.
REIMBURSEMENT, VENDOR_INVOICE Metadata specific to the invoice payable type (e.g. reimbursement- or vendor-specific fields).
Show child attributes
Type 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.
VENDOR_INVOICE_METADATA, REIMBURSEMENT_METADATA ⚠️ This enum is not exhaustive; new values may be added in the future.
EMAIL_NOT_ALLOWED, ERP_ENTRY_FAILED, OCR_FAILED, PAYMENT_APPROVAL_DECLINED, PAYMENT_FAILED, RESETTING_INVOICE_FAILED, APPROVAL_SUBMISSION_FAILED, USER_INPUT_VALIDATION_FAILED, DUPLICATE_INVOICE, PAYMENT_REJECTED Show child attributes
The error name
The error type
⚠️ This enum is not exhaustive; new values may be added in the future.
BAD_REQUEST, UNAUTHORIZED, FORBIDDEN, NOT_FOUND, CONFLICT, UNPROCESSABLE_CONTENT List of errors providing details about what went wrong
Show child attributes
A string code identifying the error type
A human-readable message providing more details about the error
Optional 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
Optional 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
Optional context providing additional information about the error. This can include any relevant data that might help in understanding or resolving the error
Show child attributes
Optional context providing additional information about the error. This can include any relevant data that might help in understanding or resolving the error
⚠️ This enum is not exhaustive; new values may be added in the future.
INIT, CREATED, IN_DRAFT, APPROVAL_REQUESTED, APPROVAL_PENDING, APPROVED_ACCOUNTING_ENTRY_PENDING, DECLINED, READY_FOR_PAYMENT_RELEASE, PENDING_PAYMENT_APPROVAL, PAYMENT_PAUSED, SCHEDULED, PAYMENT_PENDING, PARTIALLY_PAID, PAYMENTS_REVERSED, PAID, COMPLETED, RESET_PENDING, CANCELLATION_PENDING, CANCELLED, DUPLICATED, IMPORT_PENDING ⚠️ This enum is not exhaustive; new values may be added in the future.
UNDEFINED, AC, AD, AE, AF, AG, AI, AL, AM, AN, AO, AQ, AR, AS, AT, AU, AW, AX, AZ, BA, BB, BD, BE, BF, BG, BH, BI, BJ, BL, BM, BN, BO, BQ, BR, BS, BT, BU, BV, BW, BY, BZ, CA, CC, CD, CF, CG, CH, CI, CK, CL, CM, CN, CO, CP, CR, CS, CU, CV, CW, CX, CY, CZ, DE, DG, DJ, DK, DM, DO, DZ, EA, EC, EE, EG, EH, ER, ES, ET, EU, EZ, FI, FJ, FK, FM, FO, FR, FX, GA, GB, GD, GE, GF, GG, GH, GI, GL, GM, GN, GP, GQ, GR, GS, GT, GU, GW, GY, HK, HM, HN, HR, HT, HU, IC, ID, IE, IL, IM, IN, IO, IQ, IR, IS, IT, JE, JM, JO, JP, KE, KG, KH, KI, KM, KN, KP, KR, KW, KY, KZ, LA, LB, LC, LI, LK, LR, LS, LT, LU, LV, LY, MA, MC, MD, ME, MF, MG, MH, MK, ML, MM, MN, MO, MP, MQ, MR, MS, MT, MU, MV, MW, MX, MY, MZ, NA, NC, NE, NF, NG, NI, NL, NO, NP, NR, NT, NU, NZ, OM, PA, PE, PF, PG, PH, PK, PL, PM, PN, PR, PS, PT, PW, PY, QA, RE, RO, RS, RU, RW, SA, SB, SC, SD, SE, SF, SG, SH, SI, SJ, SK, SL, SM, SN, SO, SR, SS, ST, SU, SV, SX, SY, SZ, TA, TC, TD, TF, TG, TH, TJ, TK, TL, TM, TN, TO, TP, TR, TT, TV, TW, TZ, UA, UG, UK, UM, US, UY, UZ, VA, VC, VE, VG, VI, VN, VU, WF, WS, XI, XU, XK, YE, YT, YU, ZA, ZM, ZR, ZW "USD"
Show child attributes
⚠️ This enum is not exhaustive; new values may be added in the future.
UNDEFINED, AC, AD, AE, AF, AG, AI, AL, AM, AN, AO, AQ, AR, AS, AT, AU, AW, AX, AZ, BA, BB, BD, BE, BF, BG, BH, BI, BJ, BL, BM, BN, BO, BQ, BR, BS, BT, BU, BV, BW, BY, BZ, CA, CC, CD, CF, CG, CH, CI, CK, CL, CM, CN, CO, CP, CR, CS, CU, CV, CW, CX, CY, CZ, DE, DG, DJ, DK, DM, DO, DZ, EA, EC, EE, EG, EH, ER, ES, ET, EU, EZ, FI, FJ, FK, FM, FO, FR, FX, GA, GB, GD, GE, GF, GG, GH, GI, GL, GM, GN, GP, GQ, GR, GS, GT, GU, GW, GY, HK, HM, HN, HR, HT, HU, IC, ID, IE, IL, IM, IN, IO, IQ, IR, IS, IT, JE, JM, JO, JP, KE, KG, KH, KI, KM, KN, KP, KR, KW, KY, KZ, LA, LB, LC, LI, LK, LR, LS, LT, LU, LV, LY, MA, MC, MD, ME, MF, MG, MH, MK, ML, MM, MN, MO, MP, MQ, MR, MS, MT, MU, MV, MW, MX, MY, MZ, NA, NC, NE, NF, NG, NI, NL, NO, NP, NR, NT, NU, NZ, OM, PA, PE, PF, PG, PH, PK, PL, PM, PN, PR, PS, PT, PW, PY, QA, RE, RO, RS, RU, RW, SA, SB, SC, SD, SE, SF, SG, SH, SI, SJ, SK, SL, SM, SN, SO, SR, SS, ST, SU, SV, SX, SY, SZ, TA, TC, TD, TF, TG, TH, TJ, TK, TL, TM, TN, TO, TP, TR, TT, TV, TW, TZ, UA, UG, UK, UM, US, UY, UZ, VA, VC, VE, VG, VI, VN, VU, WF, WS, XI, XU, XK, YE, YT, YU, ZA, ZM, ZR, ZW "USD"
Show child attributes
⚠️ This enum is not exhaustive; new values may be added in the future.
MS_TEAMS, SLACK, WEB_APP Show child attributes
⚠️ This enum is not exhaustive; new values may be added in the future.
IN_PROGRESS, SUCCEEDED, FAILED, REJECTED, RESET Boolean flag indicating if there are more records available
Total 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.
Cursor for fetching the next page (only for cursor pagination)
Cursor for fetching the previous page (only for cursor pagination)
curl --request GET \
--url https://api.light.inc/v1/bff/invoice-payables \
--header 'Authorization: <api-key>'{
"records": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "REIMBURSEMENT",
"metadata": {
"type": "VENDOR_INVOICE_METADATA"
},
"documentKey": "<string>",
"documentName": "<string>",
"senderEmail": "<string>",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"failureReason": "EMAIL_NOT_ALLOWED",
"failureContext": {
"name": "<string>",
"type": "BAD_REQUEST",
"errors": [
{
"type": "<string>",
"message": "<string>",
"path": [
"<string>"
],
"context": {}
}
]
},
"state": "INIT",
"version": 123,
"approvalNote": "<string>",
"payeeName": "<string>",
"payeeIban": "<string>",
"payeeBban": "<string>",
"payeeBic": "<string>",
"payeeBankCode": "<string>",
"payeeCountry": "<string>",
"payeeAddress": "<string>",
"payeeZipcode": "<string>",
"payeeBankName": "<string>",
"payeeBankCountry": "UNDEFINED",
"payeeBankAddress": "<string>",
"payeeBankZipcode": "<string>",
"payeeCity": "<string>",
"payeeBankCity": "<string>",
"fiNumber": "<string>",
"invoiceNumber": "<string>",
"companyEntityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"companyEntityName": "<string>",
"amount": 123,
"currency": "USD",
"issuedDate": "2023-12-25",
"dueDate": "2023-12-25",
"paymentAt": "2023-11-07T05:31:56Z",
"ocrCompletedAt": "2023-11-07T05:31:56Z",
"canceledAt": "2023-11-07T05:31:56Z",
"description": "<string>",
"senderBankAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cancellationReason": "<string>",
"vendor": {
"vendorId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vatId": "<string>",
"vendorAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendorTaxCodeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendorCostCenterId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendorSenderBankAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendorIdentifier": "<string>",
"vendorName": "<string>",
"vendorAvatarUrl": "<string>",
"vendorEmail": "<string>",
"vendorWebsite": "<string>",
"vendorCountry": "UNDEFINED",
"vendorCity": "<string>",
"vendorAddress": "<string>",
"vendorZipcode": "<string>",
"vendorCurrency": "USD",
"vendorContractValue": 123,
"vendorCreatedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"user": {
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userFirstName": "<string>",
"userLastName": "<string>",
"userAvatarUrl": "<string>"
},
"nextApprover": {
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"firstName": "<string>",
"lastName": "<string>",
"fullName": "<string>",
"notificationChannel": "MS_TEAMS",
"approvalSentAt": "2023-11-07T05:31:56Z"
},
"reimbursement": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expenseIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"status": "IN_PROGRESS",
"createdAt": "2023-11-07T05:31:56Z"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"paymentPausedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"paymentPausedAt": "2023-11-07T05:31:56Z"
}
],
"hasMore": true,
"total": 123,
"nextCursor": "<string>",
"prevCursor": "<string>"
}