Method
GET /v1/analytics/bookings/categories
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/categories?from=2025-02-01&to=2025-02-07&workspaceId=ws_abc" \
-H "Authorization: Bearer $VOYANT_API_KEY"
[
{ "day": "2025-02-01", "product_category": "cruise", "amount_cents_sum": 1180000, "cnt": 5 },
{ "day": "2025-02-01", "product_category": "tour", "amount_cents_sum": 420000, "cnt": 2 },
{ "day": "2025-02-02", "product_category": "hotel", "amount_cents_sum": 260000, "cnt": 3 }
]
Return booking revenue totals grouped by product category.
GET /v1/analytics/bookings/categories
analytics:read scope.curl "https://api.voyantcloud.com/v1/analytics/bookings/categories?from=2025-02-01&to=2025-02-07&workspaceId=ws_abc" \
-H "Authorization: Bearer $VOYANT_API_KEY"
[
{ "day": "2025-02-01", "product_category": "cruise", "amount_cents_sum": 1180000, "cnt": 5 },
{ "day": "2025-02-01", "product_category": "tour", "amount_cents_sum": 420000, "cnt": 2 },
{ "day": "2025-02-02", "product_category": "hotel", "amount_cents_sum": 260000, "cnt": 3 }
]