Delete Event Ticket Type
DELETE /event-ticket-types/:eventTicketTypeId
Deletes the ticket type, and in a series its copies on the dates too. Returns 204 with no body.
A ticket type can only be deleted while no tickets of it are issued, that is while its numberOfIssuedTickets is 0, on the main event and on each of its dates. A copy on a date can't be deleted on its own: delete the ticket type on the main event.
Deleting works as in the back office: Loby keeps the ticket type's record, but it is no longer sold or returned, and its id answers 404 from then on.
Errors
Errors are returned as { "errors": [{ "message": "EVENT_TICKET_TYPE_HAS_TICKETS" }] }.
| Status | Message | When |
|---|---|---|
400 | SET_ON_MAIN_EVENT | The ticket type is a copy on a date in a series: delete it on the main event |
404 | EVENT_TICKET_TYPE_NOT_FOUND | The ticket type doesn't exist, was already deleted, or its event was deleted, belongs to another museum, or has the other mode (live or test) than your API key |
409 | EVENT_TICKET_TYPE_HAS_TICKETS | Tickets of the ticket type are issued, on the main event or on one of its dates |