---
title: "Create an Event without recurrence"
method: POST
path: "/partner/event-occurrence"
tags: ["Partner::Individual Events"]
---

# Create an Event without recurrence

`POST /partner/event-occurrence`

Request to create an occurrence of an event/class to be consumed by 'Totalpass Students'.

**⚠️ IMPORTANT:** Except for 'bookingWindow', 'maxTimeToCancel', and 'externalReference', ALL fields in the payload are mandatory.

**Booking Window Rules:**
1. If the 'bookingWindow' object is provided, BOTH 'minTimeToBook' and 'maxTimeToBook' become mandatory.
2. **Chronological Order:** 'minTimeToBook' must be a date/time BEFORE 'maxTimeToBook'.
3. **Logical Flow:** 
   - minTimeToBook: The earliest a student can book.
   - maxTimeToBook: The deadline/cutoff for booking.

## Parameters

- `#/paths/~1partner~1events/get/parameters/0` — unresolved $ref

## Request body

- object
  - `title` string, required — Title of the class/event.
  - `responsible` string, required — Name of the responsible person.
  - `duration` integer, required — Duration of the class in minutes.
  - `slots` integer, required — Number of slots allocated for Totalpass Students.
  - `planId` integer, required — Numeric ID that represents the Gym Plan.
  - `eventDate` string, date, required — Start date of the occurrence duration* (format: 'YYYY-MM-DD').
  - `bookingWindow` object — Booking window for the event. THIS IS NOT a required property
    - `minTimeToBook` string, date — The earliest date/time to book. Format: 'YYYY-MM-DD hh:mm AM/PM'. Must be before maxTimeToBook.
    - `maxTimeToBook` string, dat — The deadline to book. Format: 'YYYY-MM-DD hh:mm AM/PM'. Must be after minTimeToBook and at least 1 minute before the event starts.
  - `maxTimeToCancel` string, date — Maximum date and time that the user can cancel a reservation on this event, after that it will be considered a late cancel (format: 'YYYY-MM-DD 00:00 AM/PM')
  - `startTime` string, time, required — Times when the event will start on the respective 'weekday', this property accepts only AM/PM hours format, like:'hh:mm PM'.
  - `timezone` 'pt-BR' | 'es-MX', required — Timezone of the event/class location. Possible values: 'pt-BR' and 'es-MX'.
  - `seatMapId` integer — Numeric ID that represents the Seat Map.
  - `status` 'ACTIVE' | 'INACTIVE' | 'HIDDEN' — Event status, can be ACTIVE, INACTIVE or HIDDEN.
  - `description` string — Description of the event/class.
  - `externalReference` string — This is a non-unique string field with a default value of null when not provided. It does not affect the current flow and is mainly used internally as a loose identifier for one or more events.

## Response `201`

Created a event

- object

## Other responses

- `400` — Bad Request
- `401` — unresolved $ref

---

[API](https://skmtc.net/totalpass/apis/token-use.md) · [All operations](https://skmtc.net/totalpass/apis/token-use/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/totalpass/token-use/revisions/bc65b4950c7e/schema)
