GetCustomerPurchaseIdAsync() does not return a valid store ID key

Bryan 26 Reputation points
2021-03-31T02:37:11.353+00:00

Hello,

For our UWP app, we are calling the GetCustomerPurchasedIdAsync() method with a valid access token and userID (email in this case) in order to get a valid Store ID key. For the majority of our users this works fine, however for about 12% of them, the method returns a blank result. The users can purchase within our UWP application, however without the corresponding key we cannot view their transaction history via the Store API.

We have followed the documentation found here: https://learn.microsoft.com/en-us/windows/uwp/monetize/view-and-grant-products-from-a-service and are using the Windows.Services.Store namespace.

Each access token is based on the proper scope and Azure identifier URI so the similar question from >2 years ago is not necessarily applicable:

http://social.msdn.microsoft.com/Forums/en-US/wpdevelop/thread/310bc8b5-d9da-4bdd-82ec-2ea49596ab67/

What would cause a blank or invalid store ID key to be the result? Is there a way to debug/trace the underlying cause of the issue?

Thanks for any assistance!

Microsoft Partner Center
Microsoft Partner Center
A Microsoft website for partners that provides access to product support, a partner community, and other partner services.
873 questions
{count} votes