Pre-1.0 · one maintainer · Stripe and cards only · no SDKs (client libraries) yet · no production users yet. Docs describe v0.9.1 (29 Oct 2026) · What’s new →
Get revenue over time
GET
/v1/analytics/revenue-chart
const url = 'http://localhost:8080/v1/analytics/revenue-chart?period=7d';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://localhost:8080/v1/analytics/revenue-chart?period=7d' \ --header 'Authorization: Bearer <token>'Returns paid-invoice revenue per day, or per month for 12m.
Only invoices in the tenant’s default currency are counted; the
currency is the currency of GET /v1/analytics/overview.
Buckets with no paid invoices are left out. Data from test clocks
is left out.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”period
string
The window. Any other value is treated as 30d. 12m is 365 days.
Responses
Section titled “Responses”Revenue series.
Media typeapplication/json
object
period
required
string
data
required
Array<object>
object
date
required
Bucket start, YYYY-MM-DD (or YYYY-MM for 12m), in UTC.
string
revenue_cents
required
What paid the invoices paid in the bucket (payment plus customer credit applied). A credit note that lowered an invoice before it was paid is not counted.
integer format: int64
invoice_count
required
integer
Example
{ "period": "7d"}