The following macros are not currently supported in the header:
- style
Expense
An expense in AffinityLive belongs against an object (e.g. job, issue) record.
TYPE | RESOURCE | DESCRIPTION |
---|---|---|
GET | /expenses | Returns a list of expenses. |
GET | /expenses/count | Returns the total number of expenses. |
GET | /expenses/:id | Returns a specific expense identified by its id. |
GET | /expense/types | Returns a list of expense types |
GET | /expenses/types/:type_id | Returns the total number of expense types |
GET | /expenses/types/count | Returns a specific expense type identified by type id. |
POST | /expenses | Create a new expense and return it. |
POST | /expenses/:id | Edit an expense identified by its id. |