Method
GET /v1/analytics/bookings/amounts
Query Parameters
Start date (YYYY-MM-DD, inclusive).
End date (YYYY-MM-DD, inclusive).
Workspace identifier.
Headers
Bearer token with
analytics:read scope.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"
[
{ "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 }
]
Return booking event amounts (in cents) grouped by day and event key.
GET /v1/analytics/bookings/amounts
analytics:read scope.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"
[
{ "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 }
]
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.