REST API to get a list of active subscriptions in Google Workspace

598 Views Asked by At

Looking for an API to get list of all subscriptions in Google workspace (not the detailed info about available licenses count etc). It's the same information which is available on Admin console under Billing-> Subscriptions

Billing/Subscriptions

1

There are 1 best solutions below

1
On

If you're a reseller

You can use subscriptions.list The list can be all subscriptions, all of a customer's subscriptions, or all of a customer's transferable subscriptions.

If you're a regular Google Workspace customer

You can use licenseAssignment.list. It doesn't display the list itself, but you can filter the elements within the items property and loop over productId, skuID and skuName