# Attendees and ticketing

Attendees, registrations, session sign-up, ticket types, orders and check-in.

Base URL: https://api.audiobly.com

### POST /v1/events/{event_id}/promo-codes/bulk

Create promo codes bulk

Create many promo codes at once — an explicit ``codes`` list or ``count`` generated
ones. Codes that already exist on the event are skipped rather than erroring, so a
partially-applied batch can simply be re-run.

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)

Body (JSON):

- `codes` (array of string): Codes to create; use this or count.
- `count` (integer): How many codes to generate.
- `prefix` (string): Text placed at the start of every generated code.
- `discount_type` (string): Either percentage or fixed.
- `discount_value` (number): The discount amount: a percentage, or a fixed amount in major units, as set by discount_type.
- `ticket_type_id` (string (uuid)): The ticket type this applies to; leave out for all ticket types.
- `valid_from` (string (date-time)): When the code starts working.
- `valid_until` (string (date-time)): When the code stops working.
- `max_redemptions` (integer): How many times each code can be used; the default is 1.

Responses:

- 201: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.
