Sales aggregates

GET
/analytics/sales

Authorization

bearerAuth
headerAuthorizationBearer <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.

Query Parameters

event_id?string

Restrict to one event. Omit for all of the partner's events.

Formatuuid
from?string

Inclusive start, ISO 8601 date.

Formatdate
to?string

Inclusive end, ISO 8601 date.

Formatdate

Response Body

Sales totals for the window.

application/json
  1. response
data?
Example Request
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      }    ]  }}