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