List all Expenses
GET/api/expenses
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| project_id | Number | optional Optional filter by project ID |
| category_id | Number | optional Optional filter by category ID |
| user_id | Number | optional Optional filter by user ID |
curl -X GET "https://yoursite.com/api/expenses" \
-H "authtoken: YOUR_API_TOKEN" Success-Response:
{
"id": "1",
"expense_date": "2021-09-15",
"category_id": "1",
"description": "Office supplies",
"amount": "250.00",
"title": "Monthly Office Expenses",
"project_id": "1",
"user_id": "2",
"tax_id": "1",
"client_id": "1"
}