API Method event_list_discounts
This method returns the list of discount codes for a given event. Authentication tokens are required.
Request Parameters
| Name | description |
|---|---|
| id | The ID of the event. |
Example Request URL
https://www.eventbrite.com/xml/event_list_discounts?...&id=123456789
Example Response
<discounts> <discount> <discount_id>26669</discount_id> <code>Discount_Code2012</code> <amount_off>15.00</amount_off> <tickets>all</tickets> <start_date>2009-12-11 13:00:00</start_date> <end_date>2009-12-18 18:00:00</end_date> <quantity_available>500</quantity_available> <quantity_sold>350</quantity_sold> </discount> </discounts>
Method-Specific Errors
More information about error-handling and common error messages are available in our error docs.
| error_type | error_message |
|---|---|
| Request Error | The API request was not properly formed. |
| Application Key Error | There is a problem with the application key provided. |
| Authentication Error | The specified user was not found or the login credentials didn’t match. |
| Event Error | Invalid event ID. |
| Not Found | No such event [12345678]. |
| Discount error | No discount code found for this event. |