const ticketType = await luma.events.ticketTypes.create("evt-abc123", {
name: "General admission",
type: "free",
});
console.log("Created:", ticketType.api_id);
{
"api_id": "tkt-new456",
"name": "General admission",
"type": "free",
"is_hidden": false
}
Ticket types
Create a ticket type
Create a new ticket type for a Luma event with luma.events.ticketTypes.create(eventId, body), setting name, price, capacity, and sale window.
const ticketType = await luma.events.ticketTypes.create("evt-abc123", {
name: "General admission",
type: "free",
});
console.log("Created:", ticketType.api_id);
{
"api_id": "tkt-new456",
"name": "General admission",
"type": "free",
"is_hidden": false
}
SDK
luma.events.ticketTypes.create(eventId: string, body: TicketTypeCreateParams): Promise<TicketType>
Creates a new ticket type for an event.
const ticketType = await luma.events.ticketTypes.create("evt-abc123", {
name: "General admission",
type: "free",
});
console.log("Created:", ticketType.api_id);
{
"api_id": "tkt-new456",
"name": "General admission",
"type": "free",
"is_hidden": false
}
Parameters
string
required
Event
api_id from events.list().TicketTypeCreateParams
required
Ticket type fields to create. See the official Luma API docs for available fields.
Test it
Create a free ticket type on a test event:const eventId = "evt-abc123";
const ticketType = await luma.events.ticketTypes.create(eventId, {
name: "SDK test ticket",
type: "free",
});
console.log("Created:", ticketType.api_id);