curl --request GET \
--url https://api.light.inc/rest/ext/v1/invoice-approval
[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invoicePayableId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invoiceDocumentKey": "<string>",
"invoiceNumber": "<string>",
"invoiceAmount": 123,
"invoiceCurrency": "USD",
"invoiceIssuedAt": "2023-11-07T05:31:56Z",
"invoiceIssuedDate": "2023-12-25",
"invoiceDueAt": "2023-11-07T05:31:56Z",
"invoiceDueDate": "2023-12-25",
"userApprovals": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"approvalId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"priority": 123,
"status": "APPROVED",
"channel": "SLACK",
"note": "<string>",
"completedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"notifiedAt": "2023-11-07T05:31:56Z"
}
],
"note": "<string>",
"status": "APPROVED",
"completedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z"
}
]
Gets invoice payable approvals
curl --request GET \
--url https://api.light.inc/rest/ext/v1/invoice-approval
[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invoicePayableId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invoiceDocumentKey": "<string>",
"invoiceNumber": "<string>",
"invoiceAmount": 123,
"invoiceCurrency": "USD",
"invoiceIssuedAt": "2023-11-07T05:31:56Z",
"invoiceIssuedDate": "2023-12-25",
"invoiceDueAt": "2023-11-07T05:31:56Z",
"invoiceDueDate": "2023-12-25",
"userApprovals": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"approvalId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"priority": 123,
"status": "APPROVED",
"channel": "SLACK",
"note": "<string>",
"completedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"notifiedAt": "2023-11-07T05:31:56Z"
}
],
"note": "<string>",
"status": "APPROVED",
"completedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z"
}
]
default response
The response is of type object[]
.