Create a new ticket for an event
const url = 'https://www.eventpop.me/api/public/organizers/1/events/1/tickets';const options = { method: 'POST', headers: {'Content-Type': 'application/x-www-form-urlencoded'}, body: new URLSearchParams({ ticket_type_id: '1', firstname: 'example', lastname: 'example', email: 'example', phone: 'example', suppress_notifications: 'false' })};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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=falseCreates a ticket via API for external ticketing systems. Requires User Access Token with organizer scope.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”FormData Parameters
Section titled “FormData Parameters”Ticket type ID
First name
Last name
Email address
Phone number
External ticket ID for idempotency
Custom reference code (auto-generated if not provided)
Suppress email notifications
Responses
Section titled “Responses”Create ticket via API
PublicAPI_Entities_TicketResponse model
object
Operation success status
Whether this was an idempotent response
Created or retrieved ticket
object
Unique ticket identifier
ID of the order this ticket belongs to
ID of the event this ticket is for
Ticket status (e.g., “active”, “used”, “revoked”)
Ticket holder first name
Ticket holder last name
Ticket holder phone number
Ticket holder email address
Unique reference code for ticket validation (e.g., “ABC123”)
Ticket kind (e.g., “normal”, “external”)
External system identifier for idempotency
Note explaining why ticket was revoked
Ticket type information including name and price
object
Ticket price label (formatted price, “Free”, complimentary note, or pack pricing)
Custom form field responses for this ticket
Ticket creation timestamp (ISO 8601 format)
Last update timestamp (ISO 8601 format)
Check-in timestamp (ISO 8601 format), null if not used
Registration timestamp (ISO 8601 format), null if not registered
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
Unauthorized - Invalid token
Forbidden - Application not owned by organizer
Event or ticket type not found
Conflict - Duplicate external_id or reference_code
Unprocessable - API ticket quota exceeded