Skip to content

Create a new ticket for an event

POST
/organizers/{organizer_id}/events/{event_id}/tickets
curl --request POST \
--url https://www.eventpop.me/api/public/organizers/1/events/1/tickets \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data ticket_type_id=1 \
--data firstname=example \
--data lastname=example \
--data email=example \
--data phone=example \
--data suppress_notifications=false

Creates a ticket via API for external ticketing systems. Requires User Access Token with organizer scope.

organizer_id
required
integer format: int32
event_id
required
integer format: int32
ticket_type_id
required
integer format: int32

Ticket type ID

firstname
required
string

First name

lastname
required
string

Last name

email
required
string

Email address

phone
required
string

Phone number

external_id
string

External ticket ID for idempotency

reference_code
string

Custom reference code (auto-generated if not provided)

suppress_notifications
boolean

Suppress email notifications

Create ticket via API

Media typeapplication/json

PublicAPI_Entities_TicketResponse model

object
success

Operation success status

boolean
idempotent

Whether this was an idempotent response

boolean
ticket

Created or retrieved ticket

object
id

Unique ticket identifier

integer format: int32
order_id

ID of the order this ticket belongs to

integer format: int32
event_id

ID of the event this ticket is for

integer format: int32
status

Ticket status (e.g., “active”, “used”, “revoked”)

string
firstname

Ticket holder first name

string
lastname

Ticket holder last name

string
phone

Ticket holder phone number

string
email

Ticket holder email address

string
reference_code

Unique reference code for ticket validation (e.g., “ABC123”)

string
kind

Ticket kind (e.g., “normal”, “external”)

string
external_id

External system identifier for idempotency

string
revoke_note

Note explaining why ticket was revoked

string
ticket_type

Ticket type information including name and price

object
id
string
name
string
price
string
price_satangs
string
kind
string
price_label

Ticket price label (formatted price, “Free”, complimentary note, or pack pricing)

string
forms

Custom form field responses for this ticket

array
created_at

Ticket creation timestamp (ISO 8601 format)

string
updated_at

Last update timestamp (ISO 8601 format)

string
used_at

Check-in timestamp (ISO 8601 format), null if not used

string
registered_at

Registration timestamp (ISO 8601 format), null if not registered

string
Examplegenerated
{
"success": true,
"idempotent": true,
"ticket": {
"id": 1,
"order_id": 1,
"event_id": 1,
"status": "example",
"firstname": "example",
"lastname": "example",
"phone": "example",
"email": "example",
"reference_code": "example",
"kind": "example",
"external_id": "example",
"revoke_note": "example",
"ticket_type": {
"id": "example",
"name": "example",
"price": "example",
"price_satangs": "example",
"kind": "example"
},
"price_label": "example",
"forms": [
"example"
],
"created_at": "example",
"updated_at": "example",
"used_at": "example",
"registered_at": "example"
}
}

Bad Request - Invalid parameters

Media typeapplication/json

Unauthorized - Invalid token

Media typeapplication/json

Forbidden - Application not owned by organizer

Media typeapplication/json

Event or ticket type not found

Media typeapplication/json

Conflict - Duplicate external_id or reference_code

Media typeapplication/json

Unprocessable - API ticket quota exceeded

Media typeapplication/json