Expense participants
An Expense participant list is a group of users who will receive all notification of an Expense. This list contemplates the interested users in the Expense
To enter in the list you will have to be responsible for the Expense (changin its status to Analyzing
) or
be mentioned in Expense comments or comment in an Expense.
There is no endpoint to add an user in an Expense participant list. This is done automatically by Rexpense.
List participants
This endpoint list all participants in an Expense. This list can change according to Expense events.
The response uses the User representation shown in Memberships section.
Definition
GET https://app.rexpense.com/api/v1/expenses/:id/participants
Example Request
$ curl -u $YOUR_API_TOKEN:X -X GET https://app.rexpense.com/api/v1/expenses/1/participants \ -H 'Accept: application/json' \ -H 'Content-type: application/json'
Response Example
Leave a participant list
This endpoint removes the user from an Expense participant list.
Definition
DELETE https://app.rexpense.com/api/v1/expenses/:id/participants
Example Request
$ curl -u $YOUR_API_TOKEN:X -X DELETE https://app.rexpense.com/api/v1/expenses/1/participants \ -H 'Accept: application/json' \ -H 'Content-type: application/json'
Response Example
HTTP 204 NO CONTENT