Get latest reimbursement
GET
https://api.light.inc/v1/users/{userId}/reimbursements/latest
Returns the most recent reimbursement for a user
The most recently created reimbursement for the user, i.e. the result of their last POST /v1/expenses/submit. status is IN_PROGRESS after submission, then SUCCEEDED when paid, REJECTED when an administrator rejects it, or FAILED when the submission workflow failed (its expenses return to IN_DRAFT). A user who never submitted is 404 REIMBURSEMENTS_NOT_FOUND_FOR_USER.
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
Path parameters
-
userIdstring · uuidrequired
Response
-
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.