Hi,
I am trying to use the following API call: Get a customer's service costs line items
https://learn.microsoft.com/en-us/partner-center/develop/get-a-customer-s-service-costs-line-items
I can see that it doesn't support the standalone authentication that other API calls do and you have to use the App+User credentials method.
When I try use the Web App in partner Center App Management I get a 403 This resource can't be accessed by application credentials error.
I have registered a new Native app through the Partner Centre and followed these instructions to grant permissions in Azure AD. (https://learn.microsoft.com/en-us/partner/develop/api-authentication) However I am still getting the same 403 error.
I am running out of ideas now on what to try next.
I am using Postman to send the GET request.
URL: https://api.partnercenter.microsoft.com/v1/customers/{CUSTID}/servicecosts/mostrecent/lineitems
AUTH: Bearer {TOKEN}
The Token was obtained by using a POST request on the following URL
URL: https://login.microsoftonline.com/{PARTNERID}/oauth2/token
Body:
Any help is greatly appreciated.
Thanks,
Danny