Hi @Jay
My name is Harry, Support Engineer who specialize in UWP (Universal Windows Platform). Thank you for reaching out on Microsoft Q&A!
Unlike subscriptions, durable add-ons are one-time purchases with no expiration date, so the receipt content is much more limited. For durable products, the recommended approach is to call the Query for Products API rather than parsing the receipt payload directly.
About the error:
{ "code":"Unauthorized",
"data":[],
"details":[],
"innererror":
{ "code":"AuthenticationTokenInvalid",
"data":["B2B key"],
"details":[],
"message":"Authentication token supplied is invalid"},
"message":"The client is not authorized to perform the requested operation."
,"source":"CollectionsFD"
}
}
There are a few things I suggest:
- Check your authentication setup – The
AuthenticationTokenInvalid
error and “B2B key” message indicate the token you’re sending may be missing required permissions or is not generated with the correct credentials. Review your Azure AD app registration and ensure the key is correct, active and associated with the Partner Center account. - Test in sandbox – Purchase a durable add-on in the sandbox environment, use the generated receipt with the correct auth token, and confirm that the Query API returns the product details.
I hope this helps you get things back on track quickly! If my suggestions can solve your issue, feel free to interact with the system accordingly!
Thank you!