We want to use this API https://learn.microsoft.com/en-us/windows/uwp/monetize/get-subscriptions-for-a-user to be called from a renewal job to identify if the user's subscription has been renewed or not as expected to extend the license in our system. We want to detect the following scenarios:
We can determine the states 1-4 as per the documentation but how to determine for #5. We have the following understanding for the four states, based on the value of recurrenceState property:
Active
InDunning
Failed
InActive
The response includes a autoRenew
field. If the autoRenew
field is set to false
AND state is Active
it results into the #5 scenario.