API ReferenceCompanies

Company revenue timeseries

GET
/companies/{company_id}/revenue-timeseries

Get daily revenue and order count for one company over a window. Covers all projects in your organization unless project_id is given; requires owner/admin. Pass a company_id from top_companies. Returns company_id, currency, and a series of day, revenue, and orders.

Authorization

AuthorizationBearer <token>

Organization API Token (prefixed sk_) sent as Authorization: Bearer sk_.... Create one in Settings and grant it scopes. Server-side only.

In: header

Path Parameters

company_id*string

Query Parameters

project_id?string

Limit results to one project (a project_id from list_projects). Omit to include every project in your organization.

Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
range_days?integer

Look-back window in days (1-365). Defaults to 30.

Range1 <= value <= 365

Response Body

curl -X GET "https://example.com/companies/string/revenue-timeseries"
Empty