Unable to retrieve offers from Partner Center for account using app registration

Paolo Lazzari 101 Reputation points
2020-07-28T14:28:35.107+00:00

In Partner Center, we have one Azure AD and two accounts, prod and stage.

I'm looking to use an app registration to read/write offers in the Partner Center.. I have configured one following the instructions here:

https://learn.microsoft.com/en-us/partner/develop/api-authentication

In my application, I get the Bearer Token from this endpoint:

https://login.microsoftonline.com/tenant_id/oauth2/token

using the app registration details.
The request is successful and I get the token.

When I execute a GET request against this api:

https://api.partner.microsoft.com/v1.0/ingestion/products/

I only see the offers from one of the two accounts (stage) but not the other (prod)
How can I see the offers for both accounts?

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.
316 questions
0 comments No comments
{count} votes

Accepted answer
  1. Paolo Lazzari 101 Reputation points
    2020-09-23T08:51:59.08+00:00

    Thank you @Sandeep Bandaru for your help yesterday.

    It seems like the root cause of the issue was that the app registration was not configured correctly to work with the intended account.
    We took the following steps to resolve the issue:

    • Created a new App Registration from the Partner Center from the production account (Developer settings, Users, Add Azure AD Application, New Azure AD Application)
    • We used the new credentials (client id and secret) when requesting the token from the API:

    26670-image.png

    • We used the token in the request against the Partner Center API

    26860-image.png

    1 person found this answer helpful.

5 additional answers

Sort by: Most helpful
  1. David Starr 1 Reputation point Microsoft Employee
    2020-08-13T15:55:20.2+00:00

    @Sandeep Bandaru

    Do you have an update for this partner on this item?

    0 comments No comments