Skip to main content
GET
Get revenue analytics

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Agent-Id
string

The agent to act on. Required for team API keys that cover more than one agent; ignored for per-agent keys.

Query Parameters

from
string<date-time>

Start date (ISO 8601)

Example:

"2024-01-01T00:00:00.000Z"

to
string<date-time>

End date (ISO 8601)

Example:

"2024-12-31T23:59:59.999Z"

timezone
string
default:UTC

IANA time zone the daily buckets follow, so a day runs from local midnight to midnight.

Example:

"Europe/Zagreb"

Response

Revenue analytics data

agentId
string
required
totalRevenue
number
required
orderCount
number
required
currency
string
required
Example:

"EUR"

revenueByCurrency
object[]
required
currencyMismatch
boolean
required
chartData
object[]
required
from
string<date-time>
required
to
string<date-time>
required