# 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}/attendees

Create attendee

Add one attendee to an event. `name` is required; the company is linked to (or creates)
an enriched company record, and seniority/function are classified in the background unless
given. 409 EMAIL_TAKEN if another attendee of this event already uses the email.

Scope: prep_manage

Parameters:

- `event_id` (path, string (uuid), required)

Body (JSON):

- `name` (string, required): Display name.
- `country` (string): The country, as a name or two-letter code.
- `email` (string): Email address.
- `first_name` (string): Given name.
- `last_name` (string): Family name.
- `job_title` (string): The person's job title.
- `company` (string): Free-text employer name.
- `company_website` (string): Optional company website. Supplying it enriches the linked Company profile (industry, summary, logo) from the real site. Not stored on the attendee; on read it reflects the linked Company's website.
- `role` (string): Delegate type (e.g. "Delegate", "Speaker", "VIP").
- `honorific` (string): Title / salutation (Dr, Lord, Sir …).
- `marketing_consent` (boolean): Lead-sharing opt-in. null = unknown (never shared). Gates whether this delegate's contact detail may appear in a sponsor lead pack.
- `bio` (string): Short biography (as for speakers).
- `headshot_url` (string): Headshot image URL — an upload via POST /v1/branding/headshot or a pasted link.
- `social_links` (object): Social profiles, as for speakers: {"linkedin", "twitter", "website"}.
- `seniority` (string): Seniority tier (C-level / VP / Director / Manager / Individual / Unknown). Sent explicitly = a manual override (kept, clears needs_review); sent null = classify from the job title with the company's Industry as context.
- `function` (string): Function group (Corporate Strategy / GM, Sales / Commercial, Marketing, Product, Engineering / R&D, Operations, Human Resources, Finance / Legal, Clinical / Medical, Production / Manufacturing, Editorial / Content, Other). Manual override or industry-aware classification, as for `seniority`.

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.

### GET /v1/events/{event_id}/attendees

List attendees

List an event's attendees, sorted by name, with `limit`/`offset` pagination and a total.
Every speaker is an attendee too; `type` narrows the list to bookings, speakers without a
booking, or speakers who also booked (each row says which in `attendee_type`).

Scope: any key

Parameters:

- `event_id` (path, string (uuid), required)
- `limit` (query, integer)
- `offset` (query, integer)
- `type` (query, string): Only this kind of attendee: booking, speaker or speaker_and_booking.

Responses:

- 200: 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.

### PUT /v1/events/{event_id}/attendees/{attendee_id}

Update attendee

Edit an attendee — every imported field is editable here.

Scope: prep_manage

Parameters:

- `event_id` (path, string (uuid), required)
- `attendee_id` (path, string (uuid), required)

Body (JSON):

- `name` (string, required): Display name.
- `country` (string): The country, as a name or two-letter code.
- `email` (string): Email address.
- `first_name` (string): Given name.
- `last_name` (string): Family name.
- `job_title` (string): The person's job title.
- `company` (string): Free-text employer name.
- `company_website` (string): Optional company website. Supplying it enriches the linked Company profile (industry, summary, logo) from the real site. Not stored on the attendee; on read it reflects the linked Company's website.
- `role` (string): Delegate type (e.g. "Delegate", "Speaker", "VIP").
- `honorific` (string): Title / salutation (Dr, Lord, Sir …).
- `marketing_consent` (boolean): Lead-sharing opt-in. null = unknown (never shared). Gates whether this delegate's contact detail may appear in a sponsor lead pack.
- `bio` (string): Short biography (as for speakers).
- `headshot_url` (string): Headshot image URL — an upload via POST /v1/branding/headshot or a pasted link.
- `social_links` (object): Social profiles, as for speakers: {"linkedin", "twitter", "website"}.
- `seniority` (string): Seniority tier (C-level / VP / Director / Manager / Individual / Unknown). Sent explicitly = a manual override (kept, clears needs_review); sent null = classify from the job title with the company's Industry as context.
- `function` (string): Function group (Corporate Strategy / GM, Sales / Commercial, Marketing, Product, Engineering / R&D, Operations, Human Resources, Finance / Legal, Clinical / Medical, Production / Manufacturing, Editorial / Content, Other). Manual override or industry-aware classification, as for `seniority`.

Responses:

- 200: 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.

### DELETE /v1/events/{event_id}/attendees/{attendee_id}

Delete attendee

Delete one attendee from the event. Returns 204; 404 if the attendee is not in this event.

Scope: prep_manage

Parameters:

- `event_id` (path, string (uuid), required)
- `attendee_id` (path, string (uuid), required)

Responses:

- 204: 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.

### POST /v1/events/{event_id}/attendees/reclassify

Reclassify attendees

Re-run Seniority & Function classification for this event's attendees.

The recovery path for a run that died: without it a stalled roster had no way back short of
re-importing the CSV. ``force`` re-classifies everyone, including manual overrides; the
default fills only the attendees still missing a classification.

Scope: prep_manage

Parameters:

- `event_id` (path, string (uuid), required)
- `force` (query, boolean)

Responses:

- 202: 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.

### GET /v1/events/{event_id}/attendees/enrichment-status

Attendee enrichment status

Progress of the background enrichment + classification kicked off by an attendee import:
how many of the linked companies are enriched vs still in-flight, and how many attendees
have been classified. The UI polls this to show a live tracker after an import — and calls
it once on mount to *resume* the tracker (or surface a just-finished run) when the user
navigates away and back, since the background work runs server-side.

`phase` lets the UI decide what to render on a fresh mount without any client-side memory of
having started an import:
  - "idle"        — no attendees imported yet → show nothing.
  - "in_progress" — companies still enriching, or attendees still to classify → show + poll.
  - "complete"    — everything enriched & classified; pair with `last_activity_at` so the UI
                    can show a completion summary only for a recently-finished run.

Scope: any key

Parameters:

- `event_id` (path, string (uuid), required)

Responses:

- 200: 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.

### POST /v1/events/{event_id}/attendees/bulk-delete

Bulk delete attendees

Delete many attendees in ONE request. The UI uses this for bulk delete so a 200-row
selection is a single API call — not 200 concurrent DELETEs that trip the org rate limit.
Missing ids are simply not deleted (idempotent); returns how many rows were removed.

Scope: prep_manage

Parameters:

- `event_id` (path, string (uuid), required)

Body (JSON):

- `ids` (array of string (uuid), required): The ids of the records to act on.

Responses:

- 200: 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.

### POST /v1/events/{event_id}/attendees/import

Import attendees

Import attendees from a CSV request body. `first_name` and `last_name` are required per
row; rows are matched on email so re-importing updates instead of duplicating. Returns
created/updated/company-linked counts plus per-row errors for rows that were skipped.

Scope: prep_manage

Parameters:

- `event_id` (path, string (uuid), required)

Responses:

- 200: 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.

### POST /v1/events/{event_id}/registrations

Create registration

Register a delegate. With ``invite_code`` → comped (code redeemed single-use,
confirmed); otherwise paid (captured immediately as ``pending`` so the lead isn't
lost, confirmed later via ``/payments/confirm``). Idempotent per (event, email).

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)

Body (JSON):

- `email` (string, required): Email address.
- `name` (string): Display name.
- `first_name` (string): Given name.
- `last_name` (string): Family name.
- `job_title` (string): The person's job title.
- `company` (string): Name of the person's employer.
- `company_website` (string): The employer's website address; supplying it lets Audiobly fill in the company profile.
- `role` (string): The registrant's delegate type, such as Delegate or VIP.
- `honorific` (string): Title used before the name, such as Dr or Prof.
- `notes` (string): Free-text notes for your own team.
- `marketing_consent` (boolean): Whether the person agreed to receive marketing messages.
- `invite_code` (string): A code that lets the registrant claim an invitation or access; leave out if you have none.
- `payment_reference` (string): The payment provider's reference for the payment.
- `amount_paid` (integer): Amount, minor units (cents).
- `currency` (string): Three-letter currency code of the amount paid.
- `discount_code` (string): A promo or discount code the registrant used.
- `list_price` (integer): Price before any code, minor units.
- `channel` (string): How the person found or reached the registration, such as web or partner.
- `utm_source` (string): Marketing campaign source recorded with the registration.
- `utm_campaign` (string): Marketing campaign name recorded with the registration.
- `utm_medium` (string): Marketing campaign medium recorded with the registration.

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.

### POST /v1/events/{event_id}/registrations/import

Import registrations

Bulk-import registrations from an external source into the Audience Graph.

``source=csv`` → raw CSV body; API sources (``eventbrite`` …) → a raw JSON array of that
platform's native records. Idempotent (dedupe by email); each row upserts a cross-event
Contact + the event Attendee with source tracking. See docs/experience/README.md.

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)
- `source` (query, string): csv | eventbrite | swoogo | evessio | ticket_tailor

Responses:

- 200: 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.

### PUT /v1/events/{event_id}/registration-form

Upsert registration form

Define the event's registration form (ordered field configs). One form per event.

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)

Body (JSON):

- `fields` (array of object, required): The registration form's fields, in order.

Responses:

- 200: 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.

### GET /v1/events/{event_id}/registration-form

Get registration form

The event's registration form (fields), for the public site to render.

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)

Responses:

- 200: 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.

### GET /v1/events/{event_id}/registrations/lookup

Lookup registration

Delegate-portal gate: look up a registration by email for this event and return
its status (confirmed | pending | …). API-key authed (server-to-server).

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)
- `email` (query, string, required)

Responses:

- 200: 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.

### GET /v1/events/{event_id}/registrations/summary

Registration summary

Registration funnel + revenue for the event: paid confirmed vs pending (reached
payment, abandoned), comped, refunded/declined/cancelled, and gross revenue.

Scope: any key

Parameters:

- `event_id` (path, string, required)

Responses:

- 200: 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.

### POST /v1/events/{event_id}/payments/confirm

Confirm payment

Mark a paid registration confirmed. Called by the payment webhook once the
provider reports the order captured. Idempotent — unknown reference → confirmed=False.

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)

Body (JSON):

- `payment_reference` (string, required): The payment provider's reference for the payment.

Responses:

- 200: 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.

### POST /v1/events/{event_id}/payments/status

Set payment status

Set a paid registration's lifecycle status from a payment webhook —
confirmed | declined | refunded | cancelled | pending. Idempotent: an unknown
reference returns updated=False (so replays and stray events are harmless).

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)

Body (JSON):

- `payment_reference` (string, required): The payment provider's reference for the payment.
- `status` (string, required): One of: pending, confirmed, declined, refunded, cancelled

Responses:

- 200: 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.

### POST /v1/events/{event_id}/invite-codes

Create invite codes

Create comp codes for an event — either an explicit ``codes`` list or ``count``
generated codes (optionally with a ``prefix``). Existing codes (case-insensitive)
are skipped, so re-running is idempotent.

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)

Body (JSON):

- `codes` (array of string): The codes, one per entry.
- `count` (integer): Generate this many unguessable codes.
- `prefix` (string): Prefix for generated codes, e.g. 'FM-PARIS-'.
- `label` (string): Batch label, e.g. 'Paris — press'.
- `max_redemptions` (integer): 1 = single-use (default).

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.

### GET /v1/events/{event_id}/invite-codes

List invite codes

List an event's comp codes with redemption status (for tracking usage).

Scope: any key

Parameters:

- `event_id` (path, string, required)
- `limit` (query, integer)
- `offset` (query, integer)

Responses:

- 200: 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.

### DELETE /v1/events/{event_id}/invite-codes/{code_id}

Revoke invite code

Revoke a code (soft — sets ``active=false`` so it can no longer be redeemed but
its redemption history is preserved).

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)
- `code_id` (path, string (uuid), required)

Responses:

- 204: 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.

### POST /v1/events/{event_id}/invite-codes/validate

Validate invite code

Check a comp code WITHOUT redeeming it — so the form can say "this comps your seat"
before the person commits.

Without this the only way to find out whether an invite code works was to submit the
registration, which redeems it and creates the attendee. That left the public form
unable to do for a comp what it already does for a discount: confirm the code, then
change the button from "Continue to payment" to "Confirm registration". Checking and
spending are separate here for the same reason they are for promo codes — someone who
types a code to see whether it works and then abandons the form must not have burned
a seat, and on a multi-use code must not have spent one of its redemptions.

Reasons match redemption's own guard (active AND redemptions < max_redemptions) so the
preview cannot say yes to something the redemption would then refuse.

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)

Body (JSON):

- `code` (string, required): The code.

Responses:

- 200: 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.

### 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.

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

Validate promo code

Price a code WITHOUT spending it — for showing "50% applied, EUR 199.50" before pay.

Deliberately not a redemption: a shopper who types a code and then abandons checkout
must not burn it. The spend happens in /promo-codes/redeem once money is confirmed.

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)

Body (JSON):

- `code` (string, required): The code to check.
- `amount` (number, required): The amount to price the code against, in major units.
- `ticket_type_id` (string (uuid)): The ticket type this applies to; leave out for all ticket types.

Responses:

- 200: 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.

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

Redeem promo code

Atomically spend one redemption of a promo code and return the discounted amount.
Safe under concurrent calls: a code can never be over-spent. Call this once payment is
confirmed, not when checkout opens; an invalid or exhausted code returns `valid: false`
with a reason.

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)

Body (JSON):

- `code` (string, required): The code to check.
- `amount` (number, required): The amount to price the code against, in major units.
- `ticket_type_id` (string (uuid)): The ticket type this applies to; leave out for all ticket types.

Responses:

- 200: 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.

### POST /v1/events/{event_id}/sessions/{session_id}/register

Register for session

Register a person (by email) for a session, creating their contact and event attendee
record if needed. Idempotent: registering twice returns the existing registration. 422 if
no email; 404 if the session is not in this event; 403 MODULE_DISABLED without Experience.

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)
- `session_id` (path, string (uuid), required)

Body (JSON):

- `email` (string, required): Email address.
- `name` (string): Display name.
- `first_name` (string): Given name.
- `last_name` (string): Family name.
- `company` (string): Name of the person's employer.
- `job_title` (string): The person's job title.

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.

### GET /v1/events/{event_id}/sessions/{session_id}/registrations

List session registrations

Everyone registered for the session, with their registration status (registered,
attended or no-show). 403 MODULE_DISABLED if the Experience module is not enabled.

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)
- `session_id` (path, string (uuid), required)

Responses:

- 200: 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.

### POST /v1/events/{event_id}/sessions/{session_id}/attended

Mark attended

Mark a registered attendee (matched by email) as having attended the session. 404 if they
are not registered for it; 403 MODULE_DISABLED without Experience.

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)
- `session_id` (path, string (uuid), required)

Body (JSON):

- `email` (string, required): Email address.
- `name` (string): Display name.
- `first_name` (string): Given name.
- `last_name` (string): Family name.
- `company` (string): Name of the person's employer.
- `job_title` (string): The person's job title.

Responses:

- 200: 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.

### GET /v1/events/{event_id}/sessions/{session_id}/attendance

Session attendance

Attendance counts for the session: total registrations and how many are registered,
attended and no-show. 403 MODULE_DISABLED if the Experience module is not enabled.

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)
- `session_id` (path, string (uuid), required)

Responses:

- 200: 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.

### POST /v1/events/{event_id}/ticket-types

Create ticket type

Create a ticket type for the event: name, price, currency, tax rate, stock and per-order
limits, visibility and display position. 403 MODULE_DISABLED if the Experience module is
not enabled for your organisation.

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)

Body (JSON):

- `name` (string, required): The ticket type's name, such as Standard.
- `description` (string): A short description shown at checkout.
- `price` (number): Ticket price per ticket in major units, for example 99.50.
- `currency` (string): Three-letter currency code, for example EUR.
- `tax_rate` (number): Tax rate as a percentage, for example 20; leave out for no tax.
- `quantity_available` (integer): How many tickets of this type can be sold; leave out for no limit.
- `min_per_order` (integer): The smallest number of these tickets in one order.
- `max_per_order` (integer): The largest number of these tickets in one order; leave out for no limit.
- `visibility` (string): Whether the ticket type is shown publicly; the default is public.
- `position` (integer): Where this item appears in its list; lower numbers come first.

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.

### GET /v1/events/{event_id}/ticket-types

List ticket types

The event's ticket types in display order. 403 MODULE_DISABLED if the Experience module is
not enabled.

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)

Responses:

- 200: 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.

### POST /v1/events/{event_id}/orders

Create an order

Create an order: issues tickets for each line, assigns the named attendees, applies an
optional promo code and totals it, all-or-nothing. 404 TICKET_TYPE_NOT_FOUND, 422
ORDER_INVALID (limits, stock or promo code); 403 MODULE_DISABLED without Experience.

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)

Body (JSON):

- `items` (array of OrderItemInput, required): The ticket types and quantities being ordered.
- `billing_email` (string): Email address that receives the invoice or receipt for this order.
- `payment_status` (string): Whether the order is paid, for example pending or paid.
- `payment_gateway` (string): The payment provider that took the payment, as a short name.
- `payment_reference` (string): The payment provider's reference for the payment.
- `po_number` (string): The buyer's purchase order number, shown on the invoice.
- `promo_code` (string): A promo code to apply to the order.

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.

### GET /v1/events/{event_id}/orders

List orders

The event's orders, newest first, with totals, payment status and ticket count. 403
MODULE_DISABLED if the Experience module is not enabled.

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)

Responses:

- 200: 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.

### POST /v1/events/{event_id}/checkins

Check in ticket

Check in a ticket by its QR code. Idempotent: a repeat scan returns `already: true`
instead of counting twice. 404 TICKET_NOT_FOUND, 422 TICKET_INVALID (e.g. cancelled);
403 MODULE_DISABLED without Experience.

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)

Body (JSON):

- `qr_code` (string, required): The QR code value scanned from the ticket.

Responses:

- 200: 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.

### GET /v1/events/{event_id}/checkins/summary

Check-in summary

Check-in totals for the event: registered (non-cancelled) tickets, checked in, no-shows
and attendance percentage. 403 MODULE_DISABLED if the Experience module is not enabled.

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)

Responses:

- 200: 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.

### POST /v1/events/{event_id}/checkins/bulk

Bulk check in

Check in many tickets at once (a corporate group / a batch of scans).

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)

Body (JSON):

- `qr_codes` (array of string, required): The QR code values scanned from tickets.

Responses:

- 200: 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.

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

Create promo code

Create a promo code (percentage or fixed discount, optionally limited to one ticket type,
a validity window and a redemption cap). 409 DUPLICATE_CODE if the code already exists for
this event; 403 MODULE_DISABLED without Experience.

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)

Body (JSON):

- `code` (string, required): The code attendees type at checkout.
- `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 the code can be used; leave out for unlimited.

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.

### GET /v1/events/{event_id}/promo-codes

List promo codes

The event's promo codes, oldest first. 403 MODULE_DISABLED if the Experience module is
not enabled.

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)

Responses:

- 200: 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.

### POST /v1/events/{event_id}/tickets/{ticket_id}/assign

Assign a ticket

Assign (or reassign) a ticket to a named person by email, creating their contact and
attendee record. 404 TICKET_NOT_FOUND, 422 TICKET_INVALID if the ticket is cancelled or
checked in or no email is given; 403 MODULE_DISABLED without Experience.

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)
- `ticket_id` (path, string (uuid), required)

Body (JSON):

- `email` (string, required): Email address.
- `name` (string): Display name.
- `first_name` (string): Given name.
- `last_name` (string): Family name.
- `company` (string): Name of the person's employer.
- `job_title` (string): The person's job title.

Responses:

- 200: 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.

### POST /v1/events/{event_id}/tickets/{ticket_id}/transfer

Transfer a ticket

Transfer a ticket to a different person: reassigns it, issues a new QR code (the old one
stops working) and records the transfer. 404 TICKET_NOT_FOUND, 422 TICKET_INVALID; 403
MODULE_DISABLED without Experience.

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)
- `ticket_id` (path, string (uuid), required)

Body (JSON):

- `email` (string, required): Email address.
- `name` (string): Display name.
- `first_name` (string): Given name.
- `last_name` (string): Family name.
- `company` (string): Name of the person's employer.
- `job_title` (string): The person's job title.

Responses:

- 200: 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.

### GET /v1/events/{event_id}/orders/{order_id}/invoice

Order invoice

Invoice data for one order: invoice number, billing contact and company, PO number, line
items, totals and payment status. 404 ORDER_NOT_FOUND; 403 MODULE_DISABLED without
Experience.

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)
- `order_id` (path, string (uuid), required)

Responses:

- 200: 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.

### POST /v1/events/{event_id}/orders/{order_id}/checkout

Order checkout

Create a hosted-checkout session for the order via the chosen gateway. Persists the
gateway + reference on the order; returns the checkout URL (or 'unconfigured' if no key).

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)
- `order_id` (path, string (uuid), required)
- `provider` (query, string): stripe | revolut

Responses:

- 200: 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.
