Class Surveys by Date Range
Overview
Returns guest survey responses captured against classes in a date range — the answers guests gave to in-class survey questions, joined to the class and guest they relate to. Use this to ingest customer experience scores into reporting or NPS systems.
5-day window limit
The supplied date range must be 5 days or less (i.e. start and end can be at most 5 days apart). Walk longer windows in 5-day chunks — see the example loop on the Class Details by Date Range page.
Authentication
Include your access token in the Authorization header:
Authorization: Bearer {access_token}See the Authentication Guide for details on obtaining access tokens.
Endpoint
GET {api-url}/api/classmanagement/surveys/{startDate}/{endDate}Path Parameters
startDate
date
Yes
First day of the range, inclusive (YYYY-MM-DD)
endDate
date
Yes
Last day of the range, inclusive (YYYY-MM-DD). Must be ≤ 5 days after startDate.
Query Parameters
None.
Example Request
Response Format
Survey Response Fields
Each item in the top-level array represents one guest's complete response set against one class.
id
integer
Unique survey response identifier
classGuestId
integer
Class-guest assignment identifier (matches classGuests[].id from Class Details)
guestId
integer
flaik guest identifier
identifierCode
string
External guest identifier — empty string if not set
feedbackText
string
Free-text feedback from the guest — empty string if no comment was given
questionResponses
array
Per-question answers (see fields below)
Question Response Fields (questionResponses[])
guestSurveyQuestionId
integer
Question identifier — matches questions[].questionId from Survey Definitions
responseValue
integer
The numeric value the guest selected (e.g. 1–5 for a rating scale). null if the question was skipped or had no rating-style answer
Error Responses
400
startDate or endDate is missing, malformed, or not a valid date
400
The supplied date range exceeds 5 days
401
Missing or invalid access token
Need help with survey ingest? Contact resortsupport@flaik.com.
Last updated
Was this helpful?
