Sales aggregates
GET
bearerAuthheader
AuthorizationBearer <token>Authorization: Bearer hh_live_.... Create and revoke keys in
Organizer → Settings → API. A key carries full access to its partner's
data, including refunds and promo codes — treat it as a production
credential and keep it server-side.
event_id?stringRestrict to one event. Omit for all of the partner's events.
Format
uuidfrom?stringInclusive start, ISO 8601 date.
Format
dateto?stringInclusive end, ISO 8601 date.
Format
dateSales totals for the window.
application/json- response
data?curl -X GET 'https://hanghut.com/api/v1/analytics/sales'Example Response
{ "data": { "gross_revenue": 0, "net_revenue": 0, "tickets_sold": 0, "orders": 0, "by_event": [ { "event_id": "a7a26ff2-e851-45b6-9634-d595f45458b7", "title": "string", "tickets_sold": 0, "gross_revenue": 0 } ] }}