Nov 02 2023 09:23 PM
Exception:
com.microsoft.graph.http.GraphServiceException: Error code: PaymentRequired
Error message: To call this API, the app must be associated with an Azure subscription, see https://aka.ms/teams-api-payment-requirements for details.
GET https://graph.microsoft.com/v1.0/users/0dt1863-601e-3269-bf4b-0sc9eh63b665/chats/microsoft
•graph.getAllMessages?model=B&%24top=200
SdkVersion : graph-java/v5.17.0
402 : Payment Required
_[Some information was truncated for brevity, enable debug logging for more details]
Nov 02 2023 10:02 PM - edited Nov 02 2023 10:03 PM
Hi @yname2480
This is quite a recent change on these APIs. The article you linked stated July 5th, and the onboarding has been done in phases.
So yes, configuring subscription and enabling it is required from now on.