Bookings API GraphAPI started return 500 to all requests

jop 1 Reputation point
2022-12-07T10:40:25.487+00:00

Hi

I'm developing app what uses graph api to communicate with Bookings. App was working still at 5.12.2022 but after that I started to get 500 responses from Bookings API. Requests are same, nothing changed. I tried to make new secret as I'm using application permissions but did not help.

Some of the beta endpoints are working, not all. But all v1.0 endpoints return 500.

Same happens with graph-explorer, some of the beta endpoints are working but all v1.0 endpoints return 500.

What could be reason?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,711 questions
{count} votes

3 answers

Sort by: Most helpful
  1. jop 1 Reputation point
    2022-12-15T12:30:45.687+00:00

    Hi,

    It's Bookings API graphapi.

    I can query business and service but getStaffAvailability does not work for all staffs.

    POST /solutions/bookingBusinesses/{id}/getStaffAvailability is endpoint from document. For some reason, there is some staffs where this request succeeds always, then for some it may not work in all days and for some staffs it always responds 500.

    All staffs are brought to bookings via staffs, add new staff. Staffs are visible, calendar shows availability of staffs. But when use API, some staffs work always while some does not work.

    0 comments No comments

  2. jop 1 Reputation point
    2022-12-15T16:35:46.177+00:00

    Requests to POST /solutions/bookingBusinesses/{id}/getStaffAvailability are like in documentation page. Array of staffs, startdate and enddate which are in UTC.

    There is few staffs which always result to 500 error. After removing non working staff ids, I have another error. If I query 1.12.2022-6.12.2022, it will always fail. But if date range is 7.12.2022-14.12.2022, I get success and API responds with 200. What I expect is that I can run query with all staffs in service in any date range.

    I have tried all the settings in Bookings; staff, business or service settings does not have any difference.

    @ShivamDhiman-1582

    0 comments No comments

  3. Shivam Dhiman 6,081 Reputation points
    2022-12-15T20:52:35.32+00:00

    Hi @jop

    I have tried to replicate the same but it's working as expected. As it looks likes tenant specific issue.
    I would recommend you to raise a support case with Microsoft Graph, a Support Engineer will be able to assist you better. You can raise support ticket from
    http://aad.portal.azure.com/ or https://admin.microsoft.com/#/support/requests.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.