Get class slots for trial offers
DeprecatedRequired Scopes: `TRIAL_OFFER_READ` Returns class slots for trial offers for specified class id and the period of one day before to fourteen days ahead
Endpoint
/v1/trial-offers/bookable-trial-offers/classes/{classId}/slots Path Parameters
classId required integer (int64) Id of the trial offer class
Query Parameters
offset string Offset from last request (last ID of the class slot)
Default:
0
sliceSize integer (int32) Desired size of data chunk
Default:
50
Responses
Response Body application/json
result array[object] required List of class slots
id integer(int64) required Unique ID of a class slot
1001 startDateTime string(date-time) Class slot start date and time with zone
"2022-06-22T08:00:00.000+02:00[Europe/Berlin]" endDateTime string(date-time) Class slot end date and time with zone
"2022-06-22T09:00:00.000+02:00[Europe/Berlin]" instructors array[object] List of instructors
id integer(int64) required Unique ID of the instructor
101 firstName required Instructor's first name
"Anna" lastName required Instructor's last name
"Chodakowska" publicName Public name that should be shown to customers
"Peter2000" location Represents location data
id integer(int64) required Unique ID of the location
203 name required Name of the location
"Room 1" description Description of the location
"Room located behind reception" earliestBookingDateTime string(date-time) Class slot earliest booking date and time with zone
"2022-06-15T00:00:00.000+02:00[Europe/Berlin]" latestBookingDateTime string(date-time) Class slot latest booking date and time with zone
"2022-06-15T23:59:59.999+02:00[Europe/Berlin]" maxParticipants integer(int32) Maximum participants allowed for a class slot
25 maxWaitingListParticipants integer(int32) Maximum number of waiting list participants allowed for a class slot
5 bookedParticipants integer(int32) Current number of booked participants of a class slot
25 additionalParticipants integer(int32) required Additional participants added by the operator
5 waitingListParticipants integer(int32) Current number of waiting list participants of a class slot
2 hasNext required True if there exists next data slice
true offset required Offset for next query (last ID of the class slot)
"1234567890" Response Body application/json
Error data
errorMessage required Resolved message in the context-specific default locale
errorCode Key for translation files
traceId Datadog trace id
args array[object] deprecated Arguments referenced by format specifiers while resolving the message from translation files
typedArgs array[object] deprecated Same as `args` but with type information
value type TIMESTAMP BOOLEAN DATE MONTH_DAY TIME TERM TERM_LIST INTEGER DECIMAL STRING MONEY LIMITABLE_CONFIG_PROPERTY I18N_KEY I18N_KEY_LIST PERMISSION_LIST ENUM AVAILABILITY_LIST reference Reference to validation error
"parent.child" Response Body application/json
Error data
errorMessage required Resolved message in the context-specific default locale
errorCode Key for translation files
traceId Datadog trace id
args array[object] deprecated Arguments referenced by format specifiers while resolving the message from translation files
typedArgs array[object] deprecated Same as `args` but with type information
value type TIMESTAMP BOOLEAN DATE MONTH_DAY TIME TERM TERM_LIST INTEGER DECIMAL STRING MONEY LIMITABLE_CONFIG_PROPERTY I18N_KEY I18N_KEY_LIST PERMISSION_LIST ENUM AVAILABILITY_LIST reference Reference to validation error
"parent.child" Response Body application/json
Error data
errorMessage required Resolved message in the context-specific default locale
errorCode Key for translation files
traceId Datadog trace id
args array[object] deprecated Arguments referenced by format specifiers while resolving the message from translation files
typedArgs array[object] deprecated Same as `args` but with type information
value type TIMESTAMP BOOLEAN DATE MONTH_DAY TIME TERM TERM_LIST INTEGER DECIMAL STRING MONEY LIMITABLE_CONFIG_PROPERTY I18N_KEY I18N_KEY_LIST PERMISSION_LIST ENUM AVAILABILITY_LIST reference Reference to validation error
"parent.child" Response Body application/json
Error data
errorMessage required Resolved message in the context-specific default locale
errorCode Key for translation files
traceId Datadog trace id
args array[object] deprecated Arguments referenced by format specifiers while resolving the message from translation files
typedArgs array[object] deprecated Same as `args` but with type information
value type TIMESTAMP BOOLEAN DATE MONTH_DAY TIME TERM TERM_LIST INTEGER DECIMAL STRING MONEY LIMITABLE_CONFIG_PROPERTY I18N_KEY I18N_KEY_LIST PERMISSION_LIST ENUM AVAILABILITY_LIST reference Reference to validation error
"parent.child" Response Body application/json
Error data
errorMessage required Resolved message in the context-specific default locale
errorCode Key for translation files
traceId Datadog trace id
args array[object] deprecated Arguments referenced by format specifiers while resolving the message from translation files
typedArgs array[object] deprecated Same as `args` but with type information
value type TIMESTAMP BOOLEAN DATE MONTH_DAY TIME TERM TERM_LIST INTEGER DECIMAL STRING MONEY LIMITABLE_CONFIG_PROPERTY I18N_KEY I18N_KEY_LIST PERMISSION_LIST ENUM AVAILABILITY_LIST reference Reference to validation error
"parent.child" Response Body application/json
Error data
errorMessage required Resolved message in the context-specific default locale
errorCode Key for translation files
traceId Datadog trace id
args array[object] deprecated Arguments referenced by format specifiers while resolving the message from translation files
typedArgs array[object] deprecated Same as `args` but with type information
value type TIMESTAMP BOOLEAN DATE MONTH_DAY TIME TERM TERM_LIST INTEGER DECIMAL STRING MONEY LIMITABLE_CONFIG_PROPERTY I18N_KEY I18N_KEY_LIST PERMISSION_LIST ENUM AVAILABILITY_LIST reference Reference to validation error
"parent.child" Response Body application/json
Error data
errorMessage required Resolved message in the context-specific default locale
errorCode Key for translation files
traceId Datadog trace id
args array[object] deprecated Arguments referenced by format specifiers while resolving the message from translation files
typedArgs array[object] deprecated Same as `args` but with type information
value type TIMESTAMP BOOLEAN DATE MONTH_DAY TIME TERM TERM_LIST INTEGER DECIMAL STRING MONEY LIMITABLE_CONFIG_PROPERTY I18N_KEY I18N_KEY_LIST PERMISSION_LIST ENUM AVAILABILITY_LIST reference Reference to validation error
"parent.child"