Forum Discussion
tl-jacob
Mar 21, 2025Copper Contributor
Partner Center API: Getting subscription usage count
Goal: Given a customerId, skuId, and productId for a specific microsoft license check the usage data (i.e. how many used / unused licenses) for that license. Examples: skuId = "0004" productId = ...
Nick_Beacroft
Apr 04, 2025Iron Contributor
I use this endpoint to get the list of licenses in the customer tenant and the availability data, then try and tie them back to the subscriptions we provide.
https://learn.microsoft.com/en-us/partner-center/developer/get-a-list-of-available-licenses
The challenge being the licensed product in the customer tenant is a container that could be made up of multiple subscriptions. Some from Microsoft direct and some from other partners. That's why the subscription endpoint cannot give you availability data.