question

RahulTavargeri-2614 avatar image
0 Votes"
RahulTavargeri-2614 asked RoyLi-MSFT commented

Get subscriptions for a user api fail

Hello,

We're seeing that some of our get user subscription api calls are failing with 'Unauthorized' error. Here is the documentation that we're referencing to make the api call: https://docs.microsoft.com/en-us/windows/uwp/monetize/get-subscriptions-for-a-user

Note that this does work for some users but fails for others. I've attached the api response for reference and not included any api keys/client ids.

-Thanks


{
"code": "Unauthorized",
"data": [],
"details": [],
"innererror": {
"code": "AuthenticationFailure",
"data": [
"Processing of the HTTP request resulted in an error. StatusCode: Unauthorized, PurchaseFD : Unauthorized : The client is not authorized to perform the requested operation. : { : AuthenticationTokenInvalid : Authentication token supplied is invalid : [B2B key]}"
],
"details": [],
"message": "The Authorization header is invalid",
"source": "PurchaseFD"
},
"message": "The client is not authorized to perform the requested operation.",
"source": "PurchaseFD"
}

partner-center-general
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Based on the message shown in the response, your request failed in the authentication. Since it works for many users, this issue should not be related to the code but relate to the user scenario. You might need to ask these customers to check the login status of their account.

0 Votes 0 ·

0 Answers