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