Not getting promo_code in retrive order API.

103 views
Skip to first unread message

Gaurav Dhandre

unread,
Jun 8, 2021, 12:38:21 AM6/8/21
to Eventbrite Developers
We have applied the promo code at checkout and complete the order and gets the webhook which has the order API URL but calling order API not getting Promo code details.

Is, I am doing anything wrong?


Thanks!

nata...@eventbrite.com

unread,
Jul 1, 2021, 8:08:34 PM7/1/21
to Eventbrite Developers
Hello!

To get promo code details for the order after your webhook is triggered, you can grab the `order_id` from the payload and follow this sequence of calls:
  • GET v3/orders/$order_id/?expand=attendees
  • GET v3/events/$event_id/attendees/$attendee_id/?expand=promotional_code
We will be sure to update our documentation accordingly and appreciate you pointing this out!

Best,
Natalie

Gaurav Dhandre

unread,
Jul 2, 2021, 8:39:00 AM7/2/21
to Eventbrite Developers
Hi Natalie,

Thank you for your response!

It working now.

Regards,
Gaurav

Graeme Viljoen

unread,
Feb 4, 2022, 10:31:34 AM2/4/22
to Eventbrite Developers
Hello both

Thanks for posting this solution. I was wondering if it was possible to get the promo code array data as part of the 

https://www.eventbriteapi.com/v3/events/'.$eventbriteId.'/attendees call, by adding on a query parameter? I tried the following...


Right now, I'm looping through the attendee list array results, and then making use of 

GET v3/events/$event_id/attendees/$attendee_id/?expand=promotional_code against each attendee and it works, but this seems a long way around and an inefficient method. 

Any other way to do it?

Graeme Viljoen

unread,
Feb 8, 2022, 10:07:06 AM2/8/22
to Eventbrite Developers
Natalie [BUMP]

Colin Rink

unread,
Apr 17, 2023, 3:55:04 PM4/17/23
to Eventbrite Developers
Bumping again, is there a quicker solution to what Graeme was doing?
Message has been deleted

b...@perciaccante.net

unread,
May 3, 2023, 3:18:18 PM5/3/23
to Eventbrite Developers
Reply all
Reply to author
Forward
0 new messages