API / Reference / Invoice Approvals
Get invoice approvals
GET
https://api.light.inc/v1/invoice-approval
Returns approval records for specified invoice payables
There is no request body; the LightPrincipal shape below is the authenticated caller leaking into the spec. invoicePayableId may be repeated and is effectively required: with none the result is an empty list, not all approvals. Only the latest approval per bill is returned, with userApprovals in priority order; a group approver has userGroupId set and userId null. Needs a user credential with the AP-preparation or auditor role, or one that is an approver on every requested bill (403 otherwise).
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
-
invoicePayableIdarray
Request body
application/json;charset=UTF-8
-
rolesarray of string -
namestring
Response
-
idstring · uuid -
companyIdstring · uuid -
invoicePayableIdstring · uuid -
invoiceDocumentKeystring -
invoiceNumberstring -
invoiceAmountinteger · int64 -
invoiceCurrencystring -
invoiceIssuedAtstring · date-time -
invoiceIssuedDatestring · date -
invoiceDueAtstring · date-time -
invoiceDueDatestring · date -
userApprovalsarray of object-
idstring · uuid -
approvalIdstring · uuid -
userIdstring · uuid -
userGroupIdstring · uuid -
priorityinteger · int32 -
statusstring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
APPROVEDCANCELLEDDECLINEDFAILEDIN_REVIEWPENDING -
notestring -
completedAtstring · date-time -
updatedAtstring · date-time -
createdAtstring · date-time -
notifiedAtstring · date-time
-
-
notestring -
statusstring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
APPROVEDDECLINEDCANCELLEDFAILEDIN_PROGRESS -
completedAtstring · date-time -
updatedAtstring · date-time -
createdAtstring · date-time