curl -X DELETE -H "X-API-KEY: your_api_key" \
https://www.gomry.com/api/v1/events/AbCdEfGhIjKlMnOpQrSt/ticket-classes/prod_AbCdEf
await fetch(
"https://www.gomry.com/api/v1/events/AbCdEfGhIjKlMnOpQrSt/ticket-classes/prod_AbCdEf",
{ method: "DELETE", headers: { "X-API-KEY": "your_api_key" } }
);
{ "deleted": true, "id": "prod_AbCdEf" }
{
"error": "Cannot delete a ticket class with sold tickets",
"sold_count": 7
}
Ticket Classes
Delete Ticket Class
Soft-delete a ticket class
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
await fetch(
"https://www.gomry.com/api/v1/events/AbCdEfGhIjKlMnOpQrSt/ticket-classes/prod_AbCdEf",
{ method: "DELETE", headers: { "X-API-KEY": "your_api_key" } }
);
{ "deleted": true, "id": "prod_AbCdEf" }
{
"error": "Cannot delete a ticket class with sold tickets",
"sold_count": 7
}
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 theticket_classes:write scope.
Path Parameters
string
required
The unique identifier of the event.
string
required
The unique identifier of the ticket class.
Response
Returns200 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 invalidorchecked_instate for this class. Response body includessold_count.
curl -X DELETE -H "X-API-KEY: your_api_key" \
https://www.gomry.com/api/v1/events/AbCdEfGhIjKlMnOpQrSt/ticket-classes/prod_AbCdEf
await fetch(
"https://www.gomry.com/api/v1/events/AbCdEfGhIjKlMnOpQrSt/ticket-classes/prod_AbCdEf",
{ method: "DELETE", headers: { "X-API-KEY": "your_api_key" } }
);
{ "deleted": true, "id": "prod_AbCdEf" }
{
"error": "Cannot delete a ticket class with sold tickets",
"sold_count": 7
}

