Create a promo code
bearerAuthAuthorizationBearer <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.
application/json- body
event_id*stringuuidcode*string3 <= lengthdiscount_type*string"percentage""fixed_amount"discount_amount*numberFor percentage, must not exceed 100.
0 < valuemax_uses?integer1 <= valueexpires_at?stringdate-timeThe created promo code.
application/json- response
data?curl -X POST 'https://hanghut.com/api/v1/promo-codes' \ -H 'Content-Type: application/json' \ -d '{ "event_id": "a7a26ff2-e851-45b6-9634-d595f45458b7", "code": "string", "discount_type": "percentage", "discount_amount": 1}'{ "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "code": "string", "discount_type": "percentage", "discount_amount": 0, "max_uses": 0, "times_used": 0, "is_active": true, "expires_at": "2019-08-24T14:15:22Z" }}Create an event POST
A venue event needs coordinates. Send `latitude` and `longitude`, or an `address` that geocodes — if geocoding is unavailable and no coordinates were sent, the request is rejected rather than stored without a location.
Create a subscription POST
**Not enabled.** Returns 503 until recurring billing is live (`SUBSCRIPTIONS_API_WRITE_ENABLED`). The handler is written and validates its input, but no caller should depend on it yet. Read endpoints in this tag do work.