calcom / cal.com

Scheduling infrastructure for absolutely everyone.
https://cal.com
Other
31.63k stars 7.68k forks source link

Custom Booking Responses Not Returned in API GET Request #16865

Open FenaPhoenix opened 3 days ago

FenaPhoenix commented 3 days ago

Issue Summary I have encountered an issue while using the Cal.com API. When I perform a GET request to retrieve booking information, the responses for custom booking questions (e.g., "Number of diners" or "Guest-total") are consistently returning as null. This issue seems to occur despite having correctly configured custom questions in the booking setup.

Steps to Reproduce Created a booking in the Cal.com web app with a custom question labeled "Number of Guests" (identifier: "Guest-total"). Registered attendees for the booking, providing valid email addresses and names. Performed a GET request to the following API endpoint: https://api.cal.com/v1/bookings?apiKey=cal_live_baxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Reviewed the API response for the booking data.

Actual Results The API response for the booking does not include any data for the custom question "Number of diners" under the responses field; it returns as null. Other booking data such as title, startTime, and endTime are returned correctly.

Expected Results I expected the API response to include the custom question data (e.g., "Guest-total") within the responses field, populated with the value provided during booking.

Technical details Browser: Google Chrome Version 129.0.6668.60 (Official Build) (64-bit) Node.js version: 18.17.0. I have tested various data inputs for the custom question, including different types and formats, with no changes in the results. API requests were made using the Thunderclient extension in Visual Studio Code, and the same issue persists across multiple testing sessions.

Evidence Tested by creating several bookings with varying inputs for the custom question. Screenshots of the API response and booking setup can be provided upon request. I can also provide screen recordings showing the steps taken to reproduce the issue.

surajTade commented 2 days ago

Hii I understand the issue, can you please share the screen recording to reproduce the issue?

FenaPhoenix commented 2 days ago

Hi,

Thanks for your response, sure I'll make a quick video after I finish work, thank you!