Revoke/invalidate a ticket
const url = 'https://www.eventpop.me/api/public/organizers/1/events/1/tickets/invalidate';const options = {method: 'POST'};
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/invalidateMarks a ticket as revoked. Used when external system cancels/refunds a ticket.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”FormData Parameters
Section titled “FormData Parameters”Ticket ID
Ticket reference code
Reason for revoking the ticket
Responses
Section titled “Responses”Invalidate ticket
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" }}Unauthorized - Invalid token
Forbidden - Application not owned by organizer
Ticket not found
Unprocessable - Ticket already revoked or used