A cloud-based identity and access management service for securing user authentication and resource access
Hello Salila Sharma
The error usually occurs if you are passing scope as https://marketplaceapi.microsoft.com which is not valid.
To generate the access token for Microsoft Marketplace, you need to pass resource as 20e940b3-4c77-4b0b-9a53-9e16a1b010a7 and no need to you do NOT need to add API permissions manually to the Entra app.
To resolve the issue, please pass resource as 20e940b3-4c77-4b0b-9a53-9e16a1b010a7 like below:
Pass v1.0 token Endpoint : https://login.microsoftonline.com/TenantID/oauth2/token
Let me know if any further queries - feel free to reach out!
and click on Yes for was this answer helpful. And, if you have any further query do let us know.