# Create ticket

`POST /events/{eventId}/tickets`

Base URL: `https://api.viewcy.com/2025_06`

## Parameters

- `eventId` (path, string, **required**) (example: `00000000-0000-0000-0000-000000000000`)

## Request Body

Content-Type: `application/json`

- `name` (string)
- `kind` (string)
- `price` (integer)
- `attendanceType` (string)
- `pricingMode` (string)
- `minimumPrice` (integer)
- `suggestedPrice` (integer)
- `secretCode` (string)
- `salesEndHours` (integer)
- `salesEndRule` (string)

## Responses

### 201 — Creates a ticket

- `object` (string)
- `id` (string)
- `name` (string)
- `description` (any)
- `kind` (string)
- `attendanceType` (string)
- `pricingMode` (string)
- `price` (number)
- `fee` (number)
- `currency` (string)
- `quantity` (any)
- `quantityPerOrder` (any)
- `quantityPerMember` (any)
- `quantityPerList` (any)
- `secretCode` (string)
- `salesStartAt` (any)
- `salesEndHours` (integer)
- `salesEndRule` (string)
- `transferAllowed` (boolean)
- `showOnEventPage` (boolean)
- `seatsCategoryKeys` (array)
- `additionalEventIds` (array)
- `hidden` (boolean)
- `createdAt` (string)
- `updatedAt` (string)
- `occurrenceIds` (any)
- `meta` (object)
  - `requestId` (string)
- `minimumPrice` (number)
- `suggestedPrice` (number)

### 401 — Returns 401

- `object` (string)
- `status` (integer)
- `message` (string)
- `meta` (object)
  - `requestId` (string)

### 403 — Creates a ticket

- `object` (string)
- `status` (integer)
- `message` (string)
- `meta` (object)
  - `requestId` (string)

### 404 — Returns 404 for non-owned course

- `object` (string)
- `status` (integer)
- `message` (string)
- `meta` (object)
  - `requestId` (string)

### 422 — Returns 422 with field errors

- `object` (string)
- `status` (integer)
- `message` (string)
- `errors` (array)
  Items:
    - `field` (string)
    - `message` (string)
- `meta` (object)
  - `requestId` (string)

---
Full OpenAPI spec: https://developer.viewcy.com/openapi/2025_06_viewcy_api.yaml

Interactive docs: https://developer.viewcy.com/api/create-ticket
