Support

Home Forums Event Espresso Premium How to filter RAP ticket status Rest API

How to filter RAP ticket status Rest API

Posted: May 17, 2021 at 10:00 pm

Viewing 2 reply threads


Robby Gunawan

May 17, 2021 at 10:00 pm

Hi,
how to filter ticket with RAP status from wp-json/ee/v4.8.36/events/53/attendee ?

I’ve tried as in the picture below
https://ibb.co/wWJ47b7

but RCN status still show? or filter RAP status only from wp-json/ee/v4.8.36/registrations?where[STS_ID]=RAP ?


Tony

  • Support Staff

May 19, 2021 at 3:40 am

Hi there,

The short answer here is as you are trying to filter based on the registration status, use /registrations?where[STS_ID]=RAP to only show registrations with that status.

how to filter ticket with RAP status from wp-json/ee/v4.8.36/events/53/attendee

Tickets don’t actually have a status of RAP, that’s a registration status.

An attendee, can be linked to multiple registrations within a single event, using /attendees/ as above pulls the single contact which may (or may not) be linked to multiple registrations.

Try adding multiple separate registrations on the same event using the same attendee details when you register and you’ll see that only 1 instance of that ‘attendee’ is returned.


Robby Gunawan

May 19, 2021 at 4:17 am

Hi Tony,

Thanks, it works..

Viewing 2 reply threads

The support post ‘How to filter RAP ticket status 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.

Event Espresso