Creating new event and adding tickets

201 views
Skip to first unread message

sebasti...@gmail.com

unread,
Dec 26, 2016, 7:35:47 AM12/26/16
to Eventbrite API
Hi guys,

I'm trying to add tickets to new events created with the API, but can't seem to get it to work.

And it's unclear from the documentation whether this is even possible – the only reference I found is in the /publish section it mentions you will get an error if you try publishing an event that has no ticket types.

The format used in the example is "event.tickets.N.name" - so I've been trying to post the following:

"event.tickets[0].name": "test"

but get the following error:

"There are errors with your arguments: event.tickets[0].name - Unknown parameter".

I've tried a few other variants as well, but nothing seems to work. I've also tried creating the tickets through the UI, but when I fetch the event, no ticket information is included in the response (which again makes me wonder whether tickets information is accessible via the API).

Has anyone else tried doing this before? Any help would be super appreicated :)

Eventbrite API

unread,
Dec 27, 2016, 4:02:16 PM12/27/16
to Eventbrite API
Hi there,

You can post and get ticket information via the API.  

'event.tickets.N.name' is an argument error that the 'events/:id/publish' endpoint will return when someone attempts to publish an event with out tickets.  It is not a parameter that you can use with your query which is why you are getting the "Unknown parameter" error message. 

To create ticket classes via the API you must first create a draft event. Posting to the 'events/' endpoint will create a draft.  Documentation found here: https://www.eventbrite.com/developer/v3/endpoints/events/#ebapi-post-events

Once you have a draft event you can post ticket classes to the event using the 'events/:id/ticket_classes endpoint. Documentation found here: https://www.eventbrite.com/developer/v3/endpoints/events/#ebapi-post-events-id-ticket-classes

To view the ticket classes for an event you can make a GET request to the 'events/:id/ticket_classes/' endpoint. And if you need the complete event object including the ticket classes then you can make a GET request to the 'events/:id/' endpoint with the inclusion of the ticket classes expansion. It would look something like this: https://www.eventbriteapi.com/v3/events/eventID/?token=TOKEN&expand=ticket_classes

You mentioned that you created tickets on the web UI and were unable to see them on the event object that you fetched from the API.  Can you please post the exact request you are making with your token redacted? 

We hope this helps!

sebasti...@gmail.com

unread,
Dec 29, 2016, 6:08:23 AM12/29/16
to Eventbrite API
Hi there,

Thanks that was really helpful! I managed to get everything to work :)

A couple of other questions:

1.) GET /events/:id/questions/ – is there a way to POST questions to an event? I tried accessing the endpoint, and it appears to work but I couldn't find the relevant documentation.

2.) Is there a way to set a remote image as the background image for the
event? (basically just being able to set a URL for the image)

Thanks for all your help, much appreciated!

sebasti...@gmail.com

unread,
Dec 29, 2016, 6:12:57 AM12/29/16
to Eventbrite API
Sorry, let me change the question – is there a way to set with the API what information is captured from the buyer at checkout? (the 'Order Form' section in the UI).

Thanks!

sebasti...@gmail.com

unread,
Jan 3, 2017, 2:16:29 PM1/3/17
to Eventbrite API
Hey guys – just wanted to check if you'd had a chance to look at this?

Thanks!

Eventbrite API

unread,
Jan 3, 2017, 4:59:11 PM1/3/17
to Eventbrite API
Hi Sebastien,

At the time there is no way to post questions or customize the order form via the API.  This is a request that other developers have made and one that we may add to our road map in the future. 

t...@xemware.com

unread,
Jan 30, 2019, 4:08:18 PM1/30/19
to Eventbrite API
Come on, don't do a half job on the API and not have parity with what can be configured in the UI.

Please add support for specifying the Order Form settings.

t...@xemware.com

unread,
Jan 30, 2019, 4:11:34 PM1/30/19
to Eventbrite API
This will kill our decision to use Eventbrite.

We can't support a workflow where we manually have to go into EB after we create an Event to change the Order Form -> Collection type to Each Attendee and toggle fields to capture.

Reply all
Reply to author
Forward
0 new messages