---
title: "Guest registration for the classes"
method: POST
path: "/v1/classes/{class_id}/registrations"
---

# Guest registration for the classes

`POST /v1/classes/{class_id}/registrations`

**Purpose**: Use this API to register a guest for a class. 

You must specify `class_id` as path params and mention the following in the body params - Check the body params section for more details.

## Path parameters

- `class_id` integer, required

## Request body

- object
  - `guest_id` string, required — Unique identifier of the guest.
  - `session_id` integer, required — Identifier of the session of the class.
  - `center_id` string, required — Unique identifier of the center.
  - `waitlist` boolean, required — Denotes if the guest is to be added to the waitlist. True: Guest to be added to the waitlist. False: Guest is not to be added to the waitlist
  - `notes` string, required — Notes on the registration of the guest
  - `booking_source` integer, required — Denotes the source of the guest's registration of the guest. Website = 0, Webstore = 1, MobileApp = 2, Take5App = 3, and MobilePos = 4.
  - `training_virtual_guests` object, required
    - string
    - `registration_id` string — Registration id of the guest.
    - `first_name` string — First name of the guest.
    - `last_name` string — Last name of the guest.
    - `email` string — Email address of the guest.
    - `mobile_phone` string — Mobile phone number of the guest.
    - `gender` string — Gender of the guest.
  - `RegistrationId` integer — Id of the guest's registration
  - `mobile_phone` object
    - `country_code` integer — Denotes the country code of the guest's phone number
    - `phone_code` string — Denotes the phone code of the guest.
    - `number` string — Phone number of the gues.
  - `gender` '-1' | '0' | '1' | '3' — Denotes the gender of the guest. NotSpecified = -1, Male = 1, Female = 0, Other = 3.
  - `add_to_all` integer — Denotes the status of add to all.
  - `expand` string[] — (optional) Contains an array of strings to expand the request.

## Response `200`

200

- union
  - object
    - `registrations` object[]
      - `id` integer
      - `invoice_id` string
      - `app_group_id` string
      - `group_invoice_id` string
      - `status` integer
      - `custom_form_status` integer
      - `guest_form_status` integer
      - `membership_balance` object[]
      - `guest_registrations` object[]
        - `id` integer
        - `guest_id` string
        - `invoice_id` string
        - `app_group_id` string
        - `custom_form_status` integer
        - `guest_form_status` integer
        - `is_virtual_guest` boolean
    - `error` unknown
  - object
    - `registrations` object[]
      - `id` integer
      - `invoice_id` string
      - `app_group_id` string
      - `group_invoice_id` string
      - `status` integer
      - `custom_form_status` integer
      - `guest_form_status` integer
      - `membership_balance` object[]
        - `membership_name` string
        - `benefit_details` object
          - `name` string
          - `id` string
        - `quantity` integer
        - `frequency` string
        - `expiry_days` integer
        - `used` integer
        - `notes` unknown
        - `allow_direct_booking` unknown
        - `has_equivalents` boolean
        - `balance` integer
        - `is_category` boolean
        - `discount_details` object
          - `discount_type` integer
          - `peak_discount` integer
          - `off_peak_discount` integer
          - `post_credit_peak_discount` integer
          - `post_credit_off_peak_discount` integer
        - `all_services` boolean
        - `is_addon` boolean
        - `redeemable_balance` integer
      - `guest_registrations` object[]
        - `id` integer
        - `guest_id` string
        - `invoice_id` string
        - `app_group_id` string
        - `custom_form_status` integer
        - `guest_form_status` integer
        - `is_virtual_guest` boolean
    - `error` unknown

---

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