How to get canceled event from api

33 views
Skip to first unread message

Rajat Patel

unread,
Nov 29, 2022, 2:53:57 AM11/29/22
to Eventbrite Developers
Hello Support Team,

Thanks for the awesome API.

I am a developer. I have created an event which is in "Cancelled" status. And when I get that event from API, I get the event in "live" status. You can see the below-given URL.

The event URL: https://www.eventbriteapi.com/v3/events/477078363227/?token=ZPCRKTTQ73C54MLX6HFI

The event status in my dashboard: https://i.imgur.com/Uw6nKd6.png

Thank you in advance.

Thanks & Regards,
Rajat Patel

Jim

unread,
Nov 8, 2023, 11:38:24 PM11/8/23
to Eventbrite Developers
The "secret" with seeing canceled event status in the API is that you need to add an "expansion" to the API request, as noted in this thread.

Including expand=event_sales_status in the API request URL string will add more info to the response, like

            "event_sales_status": {
                "sales_status": "sales_ended",
                "start_sales_date": null,
                "message": "Cancelled",
                "message_type": "canonical",
                "message_code": "event_cancelled",
                "currency": "USD"
            }

The "expansions" are documented in the Evenbrite API. Though, this is easily overlooked by those who expect "status" in the API to reflect cancelled when an Event is cancelled.
Reply all
Reply to author
Forward
0 new messages