Home › Forums › Event Espresso Premium › How do I get the Promotion Code that a registrant used when paying for a ticket?
Posted: August 8, 2018 at 7:53 pm
EE4 Everything License
August 8, 2018 at 7:53 pm
I need to know what code someone used when they paid via the REST API.
I can get the list of registrant’s easy enough, and the associated attendee, I just don’t see where the Promotion code is? I can see it used in the UI, but I don’t see it via the API.
To clarify, they paid using the normal interface, I just need to use the API to get that information.
August 9, 2018 at 8:54 am
If you have the transaction ID, you can send an auth’d request to the /transactions/ endpoint’s line_items link.
e.g. if the transaction ID is 1234, the request will look like:
This will return an array of line items, and the promo code line item’s LIN_code will start with promotion-. The LIN_desc entity will have the promo code that was entered at checkout.
You must be logged in to reply to this support post. Sign In or Register for an Account
Updated by Josh 1 week, 3 days ago ago