Skip to main content
DELETE
/
events
/
{eventId}
/
ticket-classes
/
{ticketClassId}
curl -X DELETE -H "X-API-KEY: your_api_key" \
  https://www.gomry.com/api/v1/events/AbCdEfGhIjKlMnOpQrSt/ticket-classes/prod_AbCdEf
{ "deleted": true, "id": "prod_AbCdEf" }

Delete Ticket Class

Soft-deletes a ticket class. The class is hidden from listing endpoints but remains queryable by ID for historical purposes. The class is also removed from the event’s display ordering. A ticket class with sold tickets cannot be deleted — refund or move attendees first. Requires the ticket_classes:write scope.

Path Parameters

eventId
string
required
The unique identifier of the event.
ticketClassId
string
required
The unique identifier of the ticket class.

Response

Returns 200 OK with:
{ "deleted": true, "id": "prod_AbCdEf" }

Errors

  • 404 Event not found / Ticket class not found — resource missing or not owned by your org.
  • 409 Cannot delete a ticket class with sold tickets — at least one ticket exists in valid or checked_in state for this class. Response body includes sold_count.
curl -X DELETE -H "X-API-KEY: your_api_key" \
  https://www.gomry.com/api/v1/events/AbCdEfGhIjKlMnOpQrSt/ticket-classes/prod_AbCdEf
{ "deleted": true, "id": "prod_AbCdEf" }