Developers Information - API & Web Services
API Method /ticket_update
This method updates an existing ticket type. Only the fields passed as arguments will be modified. It returns the ID of the updated ticket.
Arguments
- authentication
- This method controls access via required user authentication.
- id integer
- The ticket ID.
- is_donation integer optional
- 0 for fixed-price tickets, 1 for donations.
- name string
- The ticket name.
- description string optional
- The ticket description.
- price float
- The ticket price. Enter 0.00 for free tickets. Leave blank for a donation. If tickets are already sold, price will not change.
- quantity integer
- The number of tickets available. Not required for donations.
- start_sales string optional
- The date and time when ticket sales start, in ISO 8601 format (e.g., "2007-12-31 23:59:59").
- end_sales string optional
- The date and time when ticket sales stop, in ISO 8601 format (e.g., "2007-12-31 23:59:59").
- include_fee string optional
- 0 to add the Eventbrite service fee on top of ticket price, or 1 to include it in the ticket price.
- min integer optional
- The minimum number of tickets per order.
- max integer optional
- The maximum number of tickets per order.
- hide string optional
- Show or hide the ticket type. Valid options: (y or n)
Example Request
https://www.eventbrite.com/xml/ticket_update?...&id=321348687
&name=Existticket&price=10.0&quantity=5000
Output Parameters
This method returns XML with the following structure:
- id integer
- The ticket ID.
- status string
- Processing status.
- message string
- Processing message.
Example XML Response
<?xml version="1.0" encoding="utf-8" ?> <event> <id>908163459</id> <status>ok</status> <message>Update ticket complete</message> </event>
Error Codes
This method may return these errors in an error document:
- Authentication Error
- The specified user was not found or the login credentials didn't match.
- Ticket error
- The ticket id is missing or unknown.
- Type error
- The ticket name is missing.
- Date error
- The specified start or end sales date and time is invalid or in the past.
- Date inconsistent
- The specified start or end sales date are past the event end date.
- Quantity error
- Quantity is missing.
- Price error
- The price of the ticket is missing or invalid (non-numeric).
- Order error
- The minimum or maximum number of tickets per order is invalid (non-numeric) or inconsistent.
- Donation error
- is_donation flag must be 0 or 1.
- Fee error
- include_fee must be 0 or 1.
- Show Hide error
- hide must be y or n.