const ticketType = await luma.events.ticketTypes.get("evt-abc123", "tkt-xyz789");
console.log(ticketType.name);
{
"api_id": "tkt-xyz789",
"name": "General admission",
"type": "free",
"is_hidden": false
}
Ticket types
Get a ticket type
Fetch a single Luma event ticket type by ID with luma.events.ticketTypes.get(eventId, ticketTypeId), returning name, price, capacity, and details.
const ticketType = await luma.events.ticketTypes.get("evt-abc123", "tkt-xyz789");
console.log(ticketType.name);
{
"api_id": "tkt-xyz789",
"name": "General admission",
"type": "free",
"is_hidden": false
}
SDK
luma.events.ticketTypes.get(eventId: string, ticketTypeId: string): Promise<TicketType>
Returns a single ticket type by ID.
const ticketType = await luma.events.ticketTypes.get("evt-abc123", "tkt-xyz789");
console.log(ticketType.name);
{
"api_id": "tkt-xyz789",
"name": "General admission",
"type": "free",
"is_hidden": false
}
Parameters
string
required
Event
api_id from events.list().string
required
Ticket type
api_id from events.ticketTypes.list().Test it
Use an event and ticket type ID from your calendar:const eventId = "evt-abc123";
const ticketTypeId = "tkt-xyz789";
const ticketType = await luma.events.ticketTypes.get(eventId, ticketTypeId);
console.log(ticketType.name);