EaserixDocs
DevelopersAPI referenceCronCrunchReports

Expense report

Totals over the caller's own expenses for the same filters as the list. Unlike the list, this is not capped at 500 (hard cap 10000). byClient, byProject and byType are ordered by total descending. byDay is ordered by date ascending. A missing client or project is one row named "No client" or "No project" with a null id.

View as Markdown
GET
/v1/reports/expenses
AuthorizationBearer <token>

In: header

Query Parameters

from?string
Formatdate
to?string
Formatdate
clientId?string
projectId?string
type?string
billable?string

Value in

  • "true"
  • "false"

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/reports/expenses"
{  "total": 0,  "billable": 0,  "nonBillable": 0,  "count": 0,  "byClient": [    {      "clientId": "string",      "name": "string",      "total": 0,      "billable": 0,      "count": 0    }  ],  "byProject": [    {      "projectId": "string",      "name": "string",      "total": 0,      "billable": 0,      "count": 0    }  ],  "byType": [    {      "type": "string",      "name": "string",      "total": 0,      "billable": 0,      "count": 0    }  ],  "byDay": [    {      "date": "2019-08-24",      "total": 0,      "count": 0    }  ]}

Team time summary

Owner or admin of a team workspace only. Personal workspaces, members, and the billing role receive 403. Totals are completed entries in the caller's workspace (running timers excluded), aggregated in SQL by member and project. amount is seconds/3600 times the rate over billable entries, rounded to the nearest cent on each entry and then totaled. The rate is the one saved on the entry when it was created (or when it was moved to another project or task): the task's hourlyRate when that entry had a task rate, otherwise the project's. An entry with no saved rate, from before snapshots, uses the task or project rate as it is now, so existing totals do not move when snapshots ship. Editing a project or task rate later does not change amounts for entries that already saved a rate. Names come from the auth member directory using the caller's own token. A member with no time in the window is still listed, with zeros. Someone who logged time and has since left has an empty name. byMember and byProject are ordered by seconds descending. This route does not return entry rows. The entry list and GET /v1/reports/summary stay limited to the caller's own hours. A workspace id in the query is ignored; the workspace is the token's.

Expense report as CSV

The same window as the JSON report, one row per expense, oldest first. Columns: date, type, client, project, pricing, quantity, unit_rate, amount, billable, note, receipt. A value that would be a spreadsheet formula is prefixed with an apostrophe.