Purchase licenses with REST API

Hello Devs,

I’m building a Microsoft Power Automate flow that uses the Jira REST API to onboard our new users. We are using HTTP requests to get info and post new users and whatnot. However, we’re running into issues when we run out of user licenses. Is there a way to build a GET request to show the number of available licenses? Is there a way to purchase more licenses using the API or does that have to done manually by an admin?

Any help would be appreciated! Thanks!