# Unable to add scopes: \[billing\_plan:read:admin\]

**URL:** <https://devforum.zoom.us/t/unable-to-add-scopes-billing-planadmin/95740>\
**Category:** API and Webhooks\
**Tags:** api\
**Created:** [September 25, 2023, 1:30pm UTC](https://devforum.zoom.us/t/unable-to-add-scopes-billing-planadmin/95740 "2023-09-25T13:30:47Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Waleed-Afzal](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/waleed-afzal/32/8152_2.png) [@Waleed-Afzal](https://devforum.zoom.us/u/Waleed-Afzal)\
**Post date:** [September 25, 2023, 1:30pm UTC](https://devforum.zoom.us/t/unable-to-add-scopes-billing-planadmin/95740/1 "2023-09-25T13:30:47Z")

</div>

Hi!  
@elisa.zoom  
I am using the server-to-server oauth App and generate the account\_id, client\_id and client\_secret and gettig the the oauth token by using this endpoint [https://zoom.us/oauth/token](https://zoom.us/oauth/token)  
I want to get the user license information. For that I found the endpoint  
like  
=\> accounts/:accountId/billing

When I hit this endpoint with valid token, API respond with following message

“message”: “Invalid access token, does not contain scopes: [billing\_plan:read:admin].”

I try to find from where I can add the [billing\_plan:read:admin] scope in my settings but fails to find that.

Please let me know how I can fix that issue and get the details of use licesnce (including their start and expiry date ).

Any help would be appreciable.

Thanks

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [September 25, 2023, 4:01pm UTC](https://devforum.zoom.us/t/unable-to-add-scopes-billing-planadmin/95740/2 "2023-09-25T16:01:52Z")

</div>

Hi @Waleed-Afzal  
Thanks for reaching out to us  
Can you please confirm if you have a master account license?  
To be able to access these endpoints: [Zoom Meeting Master API](https://developers.zoom.us/docs/api/rest/reference/zoom-api/ma/#overview)

you will have to hold a Master Account license: [Master Account API](https://developers.zoom.us/docs/api/rest/master-account-apis/)

---

<div class="post-metadata">

**Author:** ![Waleed-Afzal](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/waleed-afzal/32/8152_2.png) [@Waleed-Afzal](https://devforum.zoom.us/u/Waleed-Afzal)\
**Post date:** [September 25, 2023, 4:10pm UTC](https://devforum.zoom.us/t/unable-to-add-scopes-billing-planadmin/95740/3 "2023-09-25T16:10:47Z")

</div>

Thanks for your response.

I have a user with one pro license but I think it’s not a master account. right?

if yes,  
than I just want to get the user license details means their license start and expiry date.

Please let me know any endpoint where I can get this data.

Thanks

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [September 25, 2023, 4:20pm UTC](https://devforum.zoom.us/t/unable-to-add-scopes-billing-planadmin/95740/4 "2023-09-25T16:20:45Z")

</div>

@Waleed-Afzal  
The pro license is not a master account license.  
So you won’t be able to access the endpoint you are referring to.  
With the license you have, you can call the endpoint [Get a user](https://developers.zoom.us/docs/api/rest/reference/zoom-api/methods/#operation/user) and you will be able to see what’s the users’ plan type

---

<div class="post-metadata">

**Author:** ![Waleed-Afzal](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/waleed-afzal/32/8152_2.png) [@Waleed-Afzal](https://devforum.zoom.us/u/Waleed-Afzal)\
**Post date:** [September 25, 2023, 4:23pm UTC](https://devforum.zoom.us/t/unable-to-add-scopes-billing-planadmin/95740/5 "2023-09-25T16:23:52Z")

</div>

yes, you’re right but from users endpoint I just get the user type means it is basic user or licensed.  
But I want to get the start and expiry date also.

Kindly let me know any endpoint where I get the required data while using the current plan.

Thanks.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [September 25, 2023, 4:36pm UTC](https://devforum.zoom.us/t/unable-to-add-scopes-billing-planadmin/95740/6 "2023-09-25T16:36:37Z")

</div>

Unfortunately, we do not have an endpoint that will allow you to get that data if you do not have a master account license.  
You could probably try the Get billing reports endpoint and see if this endpoint provides you what you are looking for

> **[Zoom Meeting API](https://developers.zoom.us/docs/api/rest/reference/zoom-api/methods/#operation/getBillingReport)**
>
> API Reference for /docs/api/rest/reference/zoom-api/methods

---

<div class="post-metadata">

**Author:** ![Waleed-Afzal](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/waleed-afzal/32/8152_2.png) [@Waleed-Afzal](https://devforum.zoom.us/u/Waleed-Afzal)\
**Post date:** [September 26, 2023, 10:28am UTC](https://devforum.zoom.us/t/unable-to-add-scopes-billing-planadmin/95740/7 "2023-09-26T10:28:36Z")

</div>

I appreciate your prompt responses.

I’ve checked the Get billing reports endpoint, and unfortunately, it’s not working for me. The response I received is { code: 200, message: ‘No permission’ }.

Could you please guide me on how to apply for a Master API License and provide information regarding the associated cost?

To be honest, I don’t believe I need to purchase a Master API license just for license details. If possible, could you direct me to a similar data source available through a different API?

Thank you.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [September 26, 2023, 2:17pm UTC](https://devforum.zoom.us/t/unable-to-add-scopes-billing-planadmin/95740/8 "2023-09-26T14:17:50Z")

</div>

Hi @Waleed-Afzal  
Are you the account owner or admin of the account?  
If not, please ask the admin or owner to give your user role permissions to access reports.  
If you are using a server to server oauth app you can refer to this post:

> [@How to user Server-to-Sever OAuth app with Postman](https://devforum.zoom.us/t/how-to-user-server-to-sever-oauth-app-with-postman/70848):
>
> How to use our Server-to-Server OAuth with Postman? As some of you might be aware of, our JWT app is being deprecated by June 2023 and we encourage you to migrate to the newly introduced [Server-to-Server OAuth App](https://marketplace.zoom.us/docs/guides/build/server-to-server-oauth-app) That being said, here is a quick and simple guide on how to use or new app with Postman As stated in our documentation here: This new app type facilitates OAuth-authenticated requests between servers without end-user involvement. And this grant type enable your private server a…

To get a Master Account license, you would have to reach out to our sales team here:

> **[Master Account API](https://developers.zoom.us/docs/api/rest/master-account-apis/)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

Unfortunately there is not an endpoint that you can use to get this information

---

<div class="post-metadata">

**Author:** ![Waleed-Afzal](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/waleed-afzal/32/8152_2.png) [@Waleed-Afzal](https://devforum.zoom.us/u/Waleed-Afzal)\
**Post date:** [September 26, 2023, 2:19pm UTC](https://devforum.zoom.us/t/unable-to-add-scopes-billing-planadmin/95740/9 "2023-09-26T14:19:24Z")

</div>

I am using the account owner scopes and credentials for generating the token and make request with the given endpoint

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [September 26, 2023, 2:53pm UTC](https://devforum.zoom.us/t/unable-to-add-scopes-billing-planadmin/95740/10 "2023-09-26T14:53:19Z")

</div>

The only other thing that I am thinking about is if you are trying to call the Get billing reports endpoint, it looks like you might need to contact Zoom support team to grant you access to this endpoint

 ![Screenshot 2023-09-26 at 10.51.58 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/4/5/45077611d849314afe80e48af73e8042b8b93c63.png)

[https://support.zoom.us/hc/en-us](https://support.zoom.us/hc/en-us)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [September 29, 2023, 4:53pm UTC](https://devforum.zoom.us/t/unable-to-add-scopes-billing-planadmin/95740/11 "2023-09-29T16:53:05Z")

</div>

Closed on September 29, 2023, 4:53pm UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
