Cancel Event Ticket
Cancels and removes the specified ticket from the authenticated customer’s event attendances. Used on the My Events page to allow customers to cancel their registration before an event.
Authentication
Requires a valid customer bearer token. The attendance record must belong to the authenticated customer.
Path Parameters
The integer ID of the attendance record to cancel. Obtained as Records[].Id from GET /api/public/events/my.
Response
Returns an empty 200 OK on success.
Examples
Cancel a ticket
DELETE /api/public/events/my/9021
Authorization: Bearer {token}
TypeScript Integration
import endpoints from '@/api/endpoints'
await httpClient.delete(endpoints.events.cancelTicket(9021))
Usage in Portal
| Context | Source file |
|---|
My Events page (/activity/events) | src/views/user/activity/events/MyEventsSection.tsx |
Error Responses
The customer is not authenticated or the session has expired.
No attendance record with the specified ID exists for the authenticated customer.
| Method | Endpoint | Description |
|---|
GET | /api/public/events/my | List all tickets for the authenticated customer |
POST | /api/public/events/my/{id}/sendTicket | Re-send a ticket confirmation email |
GET | /api/public/events/{id} | Full detail for a specific event |