Skip to main content

Method

GET /v1/analytics/bookings/amounts

Query Parameters

from
string
required
Start date (YYYY-MM-DD, inclusive).
to
string
required
End date (YYYY-MM-DD, inclusive).
workspaceId
uuid
required
Workspace identifier.

Headers

Authorization
string
Bearer token with analytics:read scope.

Request Example

curl "https://api.voyantcloud.com/v1/analytics/bookings/amounts?from=2025-02-01&to=2025-02-07&workspaceId=ws_abc" \
  -H "Authorization: Bearer $VOYANT_API_KEY"

Response

[
  { "day": "2025-02-01", "event_key": "booking.created", "amount_cents_sum": 2485000, "cnt": 12 },
  { "day": "2025-02-01", "event_key": "booking.cancelled", "amount_cents_sum": 125000, "cnt": 2 },
  { "day": "2025-02-02", "event_key": "booking.created", "amount_cents_sum": 1980000, "cnt": 9 }
]
Convert amount_cents_sum to your reporting currency (e.g. divide by 100 for major units) and use event_key to separate creation vs cancellation revenue.