Support

Home Forums Event Espresso Premium Include ticket prices in API call

Include ticket prices in API call

Posted: October 21, 2016 at 2:14 am


rsthrive

October 21, 2016 at 2:14 am

Hi All,
I currently have the following URL to pull through all the events in the ‘music’ categroy:

http://localhost:8888/wp-json/ee/v4.8.36/events?calculate=image_large&include=Datetime&where%5BTerm_Taxonomy.Term.slug%5D=music

However, I’d like to include all the ticket prices too. I presume it’s a case of adding an include flag but haven’t managed to spot anything.

Thankss


Josh

  • Support Staff

October 21, 2016 at 10:32 am

The ticket price field (TKT_price) is from the Ticket model that’s related to the datetime model e.g.
/wp-json/ee/v4.8.36/events?include=Datetime.*,Datetime.Ticket.*

The support post ‘Include ticket prices in API call’ 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.

Event Espresso