List promo codes

GET
/promo-codes

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

Required — promo codes are always scoped to one event.

Formatuuid

Response Body

The event's promo codes.

application/json
  1. response
data?
Example Request
curl -X GET 'https://hanghut.com/api/v1/promo-codes?event_id=497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "data": {    "promo_codes": [      {        "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"      }    ]  }}