curl -H "X-API-KEY: your_api_key" \
https://www.gomry.com/api/v1/events/AbCdEfGhIjKlMnOpQrSt/ticket-classes/prod_vip
const response = await fetch(
"https://www.gomry.com/api/v1/events/AbCdEfGhIjKlMnOpQrSt/ticket-classes/prod_vip",
{ headers: { "X-API-KEY": "your_api_key" } }
);
const { data } = await response.json();
{
"data": {
"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"
}
}
{
"error": "Ticket class not found"
}
Ticket Classes
Get Ticket Class
Retrieve details of a single ticket class
GET
/
events
/
{eventId}
/
ticket-classes
/
{ticketClassId}
curl -H "X-API-KEY: your_api_key" \
https://www.gomry.com/api/v1/events/AbCdEfGhIjKlMnOpQrSt/ticket-classes/prod_vip
const response = await fetch(
"https://www.gomry.com/api/v1/events/AbCdEfGhIjKlMnOpQrSt/ticket-classes/prod_vip",
{ headers: { "X-API-KEY": "your_api_key" } }
);
const { data } = await response.json();
{
"data": {
"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"
}
}
{
"error": "Ticket class not found"
}
Get Ticket Class
Returns the details of a single ticket class for an event.Path Parameters
The unique identifier of the event.
The unique identifier of the ticket class (product document ID).
Response
Show Ticket Class object
Show Ticket Class object
Unique ticket class identifier
Ticket class name
Ticket class description
active, archived, or deletedISO 4217 currency code
Price per ticket
Whether this is a free ticket class
Total tickets available
Number of tickets sold
ISO 8601 datetime when sales open
ISO 8601 datetime when sales close
Minimum tickets per order
Maximum tickets per order
Whether registration requires manual approval
ISO 8601 creation timestamp
ISO 8601 last-updated timestamp
curl -H "X-API-KEY: your_api_key" \
https://www.gomry.com/api/v1/events/AbCdEfGhIjKlMnOpQrSt/ticket-classes/prod_vip
const response = await fetch(
"https://www.gomry.com/api/v1/events/AbCdEfGhIjKlMnOpQrSt/ticket-classes/prod_vip",
{ headers: { "X-API-KEY": "your_api_key" } }
);
const { data } = await response.json();
{
"data": {
"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"
}
}
{
"error": "Ticket class not found"
}
⌘I
