post https://api.zenoti.com/Appointments/Sessions?SessionId=&BookingSource=
This API helps you to create a booking for the specified class session for a signed-in guest.
You must provide a unique identifier of the session as session_id in the API request. The API then returns the RegistrationId and RegistrationStatusId details of the booking.
Response Details
| Name | Type | Description |
|---|---|---|
| Success | boolean | Indicates whether the specified class session was successfully booked. |
| RegistrationId | int | Unique identifier of the class registration. |
| RegistrationStatusId | int | Unique identifier of the status of registration of the class session. |
| Error | object | Object that contains error message and error code details. For more information, refer to the Error Object table. |
Error Object
| code | message |
|---|---|
| 502 - Invlid Input | Please pass the SessionId to which the user should be registered. |
| 1015 - UserNotLoggedin | Please login to register for a class. |
| 1022 - RegistrationLockWindowStarted | Cannot be Enrolled/Registered to the session, the registration lock window has begun. |
| 1019 - WaitlistLockWindowStarted | Cannot be added to the waitlist, the lock window has begun. |
