Hello Guna Shankar Kalla,
Thank you for reaching out to Microsoft Support!
It sounds frustrating to encounter an error like that. The “Internal Server Error” with the “UnknownError” code can be tricky to diagnose, but here are a few steps you can take to troubleshoot:
- Check the Request Format: Ensure that your POST request is correctly formatted. The body of the request should include all required fields for creating a booking appointment. In documentation, its mentioned
start
andend
parameters in request body but we should usestartdatetime
andenddatetime
parameters. Also, please verify you have provided valid customer details,service-id
,staffmemberIds
andcustomerId
. You can verify all these details by running below Graph API.GET https://graph.microsoft.com/v1.0/solutions/bookingBusinesses/{id}
- If you have created the bookingpage using Graph API, please verify in UI whether it has been created or not.
I have tested the API locally and able to create a new appointment. Please check below screenshot.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.