ClientIdNotAuthorized Error on consume API Despite Using a Valid Access Token

창신 유 5 Reputation points
2025-02-06T07:54:51.9066667+00:00

I'm encountering an authorization issue when calling the Microsoft Store Service API's consume endpoint:

https://collections.mp.microsoft.com/v8.0/collections/consume

The response received is:

{
    "code": "Unauthorized",
    "data": [],
    "details": [],
    "innererror": {
        "code": "ClientIdNotAuthorized",
        "data": [
            "ClientIdNotAuthorized",
            "Client id specified in request is not authorized to use this resource",
            "639e370d-da8b-4c60-a6cb-80749ea72248"
        ],
        "details": [],
        "message": "The client id is not authorized for this operation.",
        "source": "CollectionsFD"
    },
    "message": "The client is not authorized to perform the requested operation.",
    "source": "CollectionsFD"
}

Notably, the exact same access token works with the following endpoints:

  • https://collections.mp.microsoft.com/v9.0/collections/publisherQuery
  • https://collections.mp.microsoft.com/v8.0/collections/b2bLicensePreview

I'm looking for guidance on:

  • Whether there are additional scopes or roles required specifically for the consume endpoint.
  • Any configuration changes in the app registration or token generation process that might be necessary.
  • Relevant documentation or known issues regarding access to the consume resource.

Any insights or pointers would be greatly appreciated!

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,006 questions
Microsoft Partner Center
Microsoft Partner Center
A Microsoft website for partners that provides access to product support, a partner community, and other partner services.
1,057 questions
Microsoft Partner Center API
Microsoft Partner Center API
Microsoft Partner Center: A Microsoft website for partners that provides access to product support, a partner community, and other partner services.API: A software intermediary that allows two applications to interact with each other.
363 questions
{count} vote

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.