Reimbursement participants

A Reimbursement participant list is a group of users who will receive all notification of a Reimbursement. This list contemplates the interested users in the Reimbursement

To enter in the list you will have to be responsible for the Reimbursement (changin its status to Analyzing) or be mentioned in Reimbursement comments or comment in a Reimbursement.

There is no endpoint to add an user in an Reimbursement participant list. This is done automatically by Rexpense.

List participants

This endpoint list all participants in a Reimbursement. This list can change according to Reimbursement events.

The response uses the User representation shown in Memberships section.

Definition

GET https://app.rexpense.com/api/v1/reimbursements/:id/participants

Example Request

$ curl -u $YOUR_API_TOKEN:X -X GET https://app.rexpense.com/api/v1/reimbursements/1/participants \
      -H 'Accept: application/json' \
      -H 'Content-type: application/json'

Response Example

    {
      "count": 1,
      "participants": [{ "id": 1, "first_name": "John", ... }]
    }
    

Leave a participant list

This endpoint removes the user from an Reimbursement participant list.

Definition

DELETE https://app.rexpense.com/api/v1/reimbursements/:id/participants

Example Request

$ curl -u $YOUR_API_TOKEN:X -X DELETE https://app.rexpense.com/api/v1/reimbursements/1/participants \
      -H 'Accept: application/json' \
      -H 'Content-type: application/json'

Response Example

HTTP 204 NO CONTENT