Create a discount or access code
eventbrite_create_discountCreate a promo code (type=coded), a public discount (type=public, single event) or an access code that unlocks hidden tickets (type=access). Scope: event_id (+ticket_class_ids) for one event, ticket_group_id for a group, neither for all the organization's events. Eventbrite: POST /organizations/{organization_id}/discounts/.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The code (or the public discount's name). No spaces for coded/access. | |
| type | Yes | coded = promo code, public = shown on the listing, access = unlocks hidden tickets. | |
| end_date | No | Usable until, naive local time in the event's timezone, e.g. 2026-11-01T09:00:00. | |
| event_id | No | Limit to one event. Omit (with ticket_group_id also omitted) for an organization-wide discount. | |
| amount_off | No | Fixed amount off in the event currency, e.g. "10" or "7.50". Not together with percent_off. | |
| start_date | No | Usable from, naive local time in the event's timezone, e.g. 2026-11-01T09:00:00. | |
| percent_off | No | Percentage off, 1.00–100.00, e.g. "20". Not together with amount_off. | |
| organization_id | Yes | Organization ID (from eventbrite_list_organizations). This is NOT the organizer id in an organizer profile URL. | |
| ticket_group_id | No | Limit to one ticket group. | |
| ticket_class_ids | No | Limit to these ticket classes of event_id. | |
| quantity_available | No | How many times it can be used; 0 = unlimited. |