Skip to content

Create event tickets

POST
/events/{id}/tickets

Create one or more tickets for a specific event

id
required
string
Example
evt_123abc

The unique identifier of the event

One of:
object
ticket
required

Single ticket to create (use either ticket or tickets, not both)

object
name
string
price
number
currency
string
quantity
number
tickets

Multiple tickets to create (use either ticket or tickets, not both)

Array<object>
object
name
string
price
number
currency
string
quantity
number
context

Additional context information for ticket creation

object
refId

Reference ID for the ticket

string
Examples

Create a single ticket

{
"ticket": {
"name": "General Admission",
"price": 2500,
"currency": "USD",
"quantity": 100
},
"context": {
"refId": "ticket_001"
}
}

Successfully created tickets

object
status
string
Example
ok
data
object
ids

Array of created ticket IDs

Array<string>
Example
[
"ticket_123",
"ticket_456"
]

Bad request - invalid input data

object
status
string
Example
error
message
string
Example
An error occurred
error
string

Unauthorized - authentication required

object
status
string
Example
error
message
string
Example
An error occurred
error
string

Forbidden - insufficient permissions

object
status
string
Example
error
message
string
Example
An error occurred
error
string
Example
{
"status": "error",
"message": "Forbidden: You do not have permission to create events"
}

Internal server error

object
status
string
Example
error
message
string
Example
An error occurred
error
string