The following details will be made available for each expense at the /api/v1/centers/:id/expenses endpoint:
name of expense
amount
boolean informing if the expense is recurring
There will also be POST, PUT and DELETE versions of the same endpoint for adding new expenses and modifying/deleting expenses.
The endpoint /api/v1/centers/:id/expenses/paid will be made available for retrieving and updating the amount of paid expenses for the chosen month.
The endpoint /api/v1/centers/:id/expenses/balance will be made available for retrieving the balance (total amount paid for all months - total expenses for all months).
Design: https://www.figma.com/file/DgrKZX9mS13Zgf7k5pZ1WT/Partner-web-app?type=design&node-id=4408-1572&mode=design&t=VjEs7BRzrlprO8Fz-4
The following details will be made available for each expense at the
/api/v1/centers/:id/expenses
endpoint:There will also be POST, PUT and DELETE versions of the same endpoint for adding new expenses and modifying/deleting expenses.
The endpoint
/api/v1/centers/:id/expenses/paid
will be made available for retrieving and updating the amount of paid expenses for the chosen month.The endpoint
/api/v1/centers/:id/expenses/balance
will be made available for retrieving the balance (total amount paid for all months - total expenses for all months).