EaserixDocs
DevelopersAPI referenceCronCrunchExpenses

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    }  ]}