Skip to main content

Method

GET /v1/analytics/bookings/categories

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/categories?from=2025-02-01&to=2025-02-07&workspaceId=ws_abc" \
  -H "Authorization: Bearer $VOYANT_API_KEY"

Response

[
  { "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 }
]
Product categories originate from your catalog taxonomy. Ensure products are properly categorized to keep downstream analytics meaningful.