Light APIv1.0.0

API / Reference / Users

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

  • userId string · uuidrequired

Response

  • id string · uuid

    The reimbursement id.

  • companyId string · uuid

    Your company id.

  • userId string · uuid

    The employee being repaid.

  • expenseIds array of string · uuid

    The expenses this reimbursement repays.

  • status string

    ⚠️ This enum is not exhaustive; new values may be added in the future.

    One of IN_PROGRESS SUCCEEDED FAILED REJECTED RESET

  • createdAt string · date-time

    When the reimbursement was created.