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