Get (and Set) Billing and Payment info via Graph API #2910
luckman212
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I co-manage a handful of M365 tenants, and one thing that comes up fairly often is an expired credit card. I get an email as an admin that "Your credit card was declined" etc. But I always have to log in and wade through a long list of products to figure out which ones have the old/expired card and update them. It's very tedious and time consuming because you can't even see this status on the list view, you have to click each SKU, wait for the page to load to check which card is linked. Overall, to check and update a typical tenant with ~20 SKUs takes close to 30 minutes.
Being able to quickly connect to Graph API and use PowerShell to retreive for example, all active product SKUs that are linked to a certain card # would be amazingly helpful.
I imagine this could be added as an optional switch to the existing
Get-MgSubscribedSku
cmdlet, something like this:Which could return additional properties such as Last4 of the card linked to that SKU, and whether the payment was successful or not (see last 3 fields below, which are hypothetical):
And then some additional tooling to also UPDATE the SKUs to use an already-stored billing profile, by referencing the Billing Account Guid or Last4 of the card, e.g.
This would be very helpful !
Beta Was this translation helpful? Give feedback.
All reactions