I need to be able to list the tickets available for a given event via the REST API. In theory, I see that each event links to a list of datetimes and each datetime links to a list of tickets, but that’s a lot of requests just to list the tickets available for an event. Any better way to do this? If not, can we get this added? It seems like a /events/[eventid]/tickets endpoint wouldn’t be too hard to add.
I am struggling to figuring out valid filters. How would you filter for the registrations and attendies for a particular event? How do I figure out the correct field to put in the where[] parameter?
The API is based on EE’s core model querying system. So the fields match what’s in the class constructor. There’s actually a list of fields for the Registration table in another article in the developer documentation:
The support post ‘Accessing tickets associated with a given event over the REST API’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.