AlphaAlpha Docs
API ReferenceAnalytics

Retrieve invoice revenue over time

Get invoice revenue grouped by time period

GET
/analytics/invoice-revenue
AuthorizationBearer <token>

In: header

Query Parameters

groupingScale?string
Value in"DAY" | "WEEK" | "MONTH" | "QUARTER" | "YEAR"
start*string
Formatdate-time
end*string
Formatdate-time

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:18080/api/v1/analytics/invoice-revenue?start=2019-08-24T14%3A15%3A22Z&end=2019-08-24T14%3A15%3A22Z"
{
  "data": [
    {
      "date": "string",
      "values": [
        {
          "name": "string",
          "value": 0.1
        }
      ]
    }
  ],
  "series": [
    {
      "color": "string",
      "name": "string"
    }
  ]
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}