curl -H "X-API-KEY: your_api_key" \
https://www.gomry.com/api/v1/events/AbCdEfGhIjKlMnOpQrSt/ticket-classes
const response = await fetch(
"https://www.gomry.com/api/v1/events/AbCdEfGhIjKlMnOpQrSt/ticket-classes",
{ headers: { "X-API-KEY": "your_api_key" } }
);
const { data } = await response.json();
{
"data": [
{
"id": "prod_general",
"name": "General Admission",
"description": "Standard entry to the event",
"status": "active",
"currency": "USD",
"cost": 0,
"free": true,
"quantity_total": 400,
"quantity_sold": 200,
"sales_start": "2025-03-01T00:00:00.000Z",
"sales_end": "2025-07-15T14:00:00.000Z",
"minimum_per_order": 1,
"maximum_per_order": 5,
"require_approval": false,
"created_at": "2025-02-15T10:00:00.000Z",
"updated_at": "2025-06-20T08:00:00.000Z"
},
{
"id": "prod_vip",
"name": "VIP",
"description": "Premium access with backstage pass",
"status": "active",
"currency": "USD",
"cost": 150,
"free": false,
"quantity_total": 100,
"quantity_sold": 34,
"sales_start": "2025-03-01T00:00:00.000Z",
"sales_end": "2025-07-14T00:00:00.000Z",
"minimum_per_order": 1,
"maximum_per_order": 2,
"require_approval": false,
"created_at": "2025-02-15T10:30:00.000Z",
"updated_at": "2025-06-20T08:00:00.000Z"
}
]
}
Ticket Classes
List Ticket Classes
List all ticket classes for an event
GET
/
events
/
{eventId}
/
ticket-classes
curl -H "X-API-KEY: your_api_key" \
https://www.gomry.com/api/v1/events/AbCdEfGhIjKlMnOpQrSt/ticket-classes
const response = await fetch(
"https://www.gomry.com/api/v1/events/AbCdEfGhIjKlMnOpQrSt/ticket-classes",
{ headers: { "X-API-KEY": "your_api_key" } }
);
const { data } = await response.json();
{
"data": [
{
"id": "prod_general",
"name": "General Admission",
"description": "Standard entry to the event",
"status": "active",
"currency": "USD",
"cost": 0,
"free": true,
"quantity_total": 400,
"quantity_sold": 200,
"sales_start": "2025-03-01T00:00:00.000Z",
"sales_end": "2025-07-15T14:00:00.000Z",
"minimum_per_order": 1,
"maximum_per_order": 5,
"require_approval": false,
"created_at": "2025-02-15T10:00:00.000Z",
"updated_at": "2025-06-20T08:00:00.000Z"
},
{
"id": "prod_vip",
"name": "VIP",
"description": "Premium access with backstage pass",
"status": "active",
"currency": "USD",
"cost": 150,
"free": false,
"quantity_total": 100,
"quantity_sold": 34,
"sales_start": "2025-03-01T00:00:00.000Z",
"sales_end": "2025-07-14T00:00:00.000Z",
"minimum_per_order": 1,
"maximum_per_order": 2,
"require_approval": false,
"created_at": "2025-02-15T10:30:00.000Z",
"updated_at": "2025-06-20T08:00:00.000Z"
}
]
}
List Ticket Classes
Returns all active ticket classes (ticket types) for an event, ordered by the event’s configured display order.Path Parameters
string
required
The unique identifier of the event.
Response
array
Show Ticket Class object
Show Ticket Class object
string
Unique ticket class identifier
string | null
Ticket class name (e.g., “General Admission”, “VIP”)
string | null
Ticket class description
string | null
active, archived, or deletedstring | null
ISO 4217 currency code
number
Price per ticket (0 for free tickets)
boolean
Whether this is a free ticket class
number | null
Total tickets available (null = unlimited)
number
Number of tickets sold
string | null
ISO 8601 datetime when sales open
string | null
ISO 8601 datetime when sales close
number
Minimum tickets per order
number
Maximum tickets per order
boolean
Whether registration requires manual approval
string | null
ISO 8601 creation timestamp
string | null
ISO 8601 last-updated timestamp
curl -H "X-API-KEY: your_api_key" \
https://www.gomry.com/api/v1/events/AbCdEfGhIjKlMnOpQrSt/ticket-classes
const response = await fetch(
"https://www.gomry.com/api/v1/events/AbCdEfGhIjKlMnOpQrSt/ticket-classes",
{ headers: { "X-API-KEY": "your_api_key" } }
);
const { data } = await response.json();
{
"data": [
{
"id": "prod_general",
"name": "General Admission",
"description": "Standard entry to the event",
"status": "active",
"currency": "USD",
"cost": 0,
"free": true,
"quantity_total": 400,
"quantity_sold": 200,
"sales_start": "2025-03-01T00:00:00.000Z",
"sales_end": "2025-07-15T14:00:00.000Z",
"minimum_per_order": 1,
"maximum_per_order": 5,
"require_approval": false,
"created_at": "2025-02-15T10:00:00.000Z",
"updated_at": "2025-06-20T08:00:00.000Z"
},
{
"id": "prod_vip",
"name": "VIP",
"description": "Premium access with backstage pass",
"status": "active",
"currency": "USD",
"cost": 150,
"free": false,
"quantity_total": 100,
"quantity_sold": 34,
"sales_start": "2025-03-01T00:00:00.000Z",
"sales_end": "2025-07-14T00:00:00.000Z",
"minimum_per_order": 1,
"maximum_per_order": 2,
"require_approval": false,
"created_at": "2025-02-15T10:30:00.000Z",
"updated_at": "2025-06-20T08:00:00.000Z"
}
]
}
⌘I
