Skip to content
Hardcount
Run it locally
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
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.

period
string
default: 30d
Allowed values: 7d 30d 90d 12m

The window. Any other value is treated as 30d. 12m is 365 days.

Revenue series.

Media typeapplication/json
object
period
required
string
default: 30d
Allowed values: 7d 30d 90d 12m
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"
}