Compartilhar via

Microsoft Graph Bookings API returns UnknownError when creating appointment with more than 4 customers

Mason, Richard (LatAm) 0 Pontos de reputação
2026-04-29T11:36:10.7566667+00:00

Hello,

I am using the Microsoft Graph Bookings API endpoint below to create booking appointments:

POST https://graph.microsoft.com/v1.0/solutions/bookingBusinesses/{bookingBusinessId}/appointments

The appointment is created successfully when I include up to 4 customers in the customers array.

However, when I include 5 or more customers, the API returns the following error:

{
  "error": {
    "code": "UnknownError",
    "message": "",
    "innerError": {
      "date": "2026-04-29T11:16:21",
      "request-id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
      "client-request-id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    }
  }
}

I have already set maximumAttendeesCount to 100 both in the Bookings service being used and in the booking appointment request body.

Below is an anonymized version of the JSON payload I am sending:

{
  "customerEmailAddress": "customer.primary@example.com",
  "customerName": "Primary Customer",
  "customerTimeZone": "America/Sao_Paulo",
  "optOutOfCustomerEmail": true,
  "startDateTime": {
    "dateTime": "2027-01-20T17:30:00",
    "timeZone": "E. South America Standard Time"
  },
  "endDateTime": {
    "dateTime": "2027-01-20T17:35:00",
    "timeZone": "E. South America Standard Time"
  },
  "serviceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "serviceName": "Sample Service Name",
  "isLocationOnline": true,
  "staffMemberIds": [
    "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  ],
  "maximumAttendeesCount": 100,
  "reminders": [
    {
      "@odata.type": "#microsoft.graph.bookingReminder",
      "message": "Reminder for all attendees.",
      "offset": "PT3M",
      "******@odata.type": "#microsoft.graph.bookingReminderRecipients",
      "recipients": "allAttendees"
    },
    {
      "@odata.type": "#microsoft.graph.bookingReminder",
      "message": "Reminder for staff.",
      "offset": "PT2M",
      "******@odata.type": "#microsoft.graph.bookingReminderRecipients",
      "recipients": "staff"
    },
    {
      "@odata.type": "#microsoft.graph.bookingReminder",
      "message": "Reminder for customer.",
      "offset": "PT1M",
      "******@odata.type": "#microsoft.graph.bookingReminderRecipients",
      "recipients": "customer"
    }
  ],
  "customers": [
    {
      "@odata.type": "#microsoft.graph.bookingCustomerInformation",
      "customerId": "ANONYMIZED_CUSTOMER_ID_1",
      "name": "Customer 1",
      "emailAddress": "customer1@example.com"
    },
    {
      "@odata.type": "#microsoft.graph.bookingCustomerInformation",
      "customerId": "ANONYMIZED_CUSTOMER_ID_2",
      "name": "Customer 2",
      "emailAddress": "customer2@example.com"
    },
    {
      "@odata.type": "#microsoft.graph.bookingCustomerInformation",
      "customerId": "ANONYMIZED_CUSTOMER_ID_3",
      "name": "Customer 3",
      "emailAddress": "customer3@example.com"
    },
    {
      "@odata.type": "#microsoft.graph.bookingCustomerInformation",
      "customerId": "ANONYMIZED_CUSTOMER_ID_4",
      "name": "Customer 4",
      "emailAddress": "customer4@example.com"
    },
    {
      "@odata.type": "#microsoft.graph.bookingCustomerInformation",
      "customerId": "ANONYMIZED_CUSTOMER_ID_5",
      "name": "Customer 5",
      "emailAddress": "customer5@example.com"
    }
  ]
}

Could you please confirm whether there is any limitation in Microsoft Bookings or Microsoft Graph API that prevents creating a booking appointment with more than 4 customers in the customers array?

If there is no such limitation, could you help me understand why the API returns UnknownError only when the request contains more than 4 customers, even though maximumAttendeesCount is set to 100?

Additional details:

  • Endpoint: POST /solutions/bookingBusinesses/{bookingBusinessId}/appointments
  • API version: v1.0
  • The same request works when the customers array contains 4 customers or fewer
  • The request fails when the customers array contains 5 or more customers
  • maximumAttendeesCount is configured as 100 in both the service and the appointment payload
  • The error message returned by the API is empty

Thank you.

Aplicativos Gerenciados do Azure
Aplicativos Gerenciados do Azure

Um serviço do Azure que permite que provedores de serviços gerenciados, fornecedores de software independentes e equipes de TI corporativas forneçam soluções turnkey por meio do catálogo de serviços ou do Azure Marketplace.


Sua resposta

As respostas podem ser marcadas como ‘Aceitas’ pelo autor da pergunta e ‘Recomendadas’ pelos moderadores, o que ajuda os usuários a saber a resposta que resolveu o problema do autor.