# Get billing api

**URL:** <https://devforum.zoom.us/t/get-billing-api/89621>\
**Category:** Users and Groups\
**Tags:** api\
**Created:** [June 5, 2023, 12:34pm UTC](https://devforum.zoom.us/t/get-billing-api/89621 "2023-06-05T12:34:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![e.divedeepai](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/e.divedeepai/32/49128_2.png) [@e.divedeepai](https://devforum.zoom.us/u/e.divedeepai)\
**Post date:** [June 5, 2023, 12:34pm UTC](https://devforum.zoom.us/t/get-billing-api/89621/1 "2023-06-05T12:34:27Z")

</div>

Subject: Billing API Error for Paid Account - Urgent Assistance Required

Dear Zoom Support Team,

I am writing to bring to your attention a critical issue regarding an error I encountered with the billing API, despite having an active and paid account.

@api.get(“/billing/”, tags=[‘Integrations’])  
def get\_bill():  
token\_data = get\_zoom\_token()  
access\_token = token\_data[“access\_token”]  
url = f"{API\_BASE\_URL}/billing"  
headers = {  
“Authorization”: f"Bearer {access\_token}"  
}

```
response = requests.get(url, headers=headers)
return response.json()

```

the response from api is this

```auto

{
  "code": 2300,
  "message": "This API endpoint is not recognized."
}

```

---

<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:** [June 5, 2023, 9:38pm UTC](https://devforum.zoom.us/t/get-billing-api/89621/2 "2023-06-05T21:38:33Z")

</div>

Hi @e.divedeepai  
Thanks for reaching out to us!  
Could you please share with me what endpoint are you trying to call when you are getting this error?  
What kind of app are you using to generate the access token?

---

<div class="post-metadata">

**Author:** ![e.divedeepai](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/e.divedeepai/32/49128_2.png) [@e.divedeepai](https://devforum.zoom.us/u/e.divedeepai)\
**Post date:** [June 6, 2023, 4:57am UTC](https://devforum.zoom.us/t/get-billing-api/89621/3 "2023-06-06T04:57:45Z")

</div>

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/f/e/feb412e87f1a4b21655d256c70a35184f3e2952d.png)

---

<div class="post-metadata">

**Author:** ![e.divedeepai](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/e.divedeepai/32/49128_2.png) [@e.divedeepai](https://devforum.zoom.us/u/e.divedeepai)\
**Post date:** [June 6, 2023, 5:39am UTC](https://devforum.zoom.us/t/get-billing-api/89621/4 "2023-06-06T05:39:57Z")

</div>

API\_BASE\_URL = ‘[https://api.zoom.us/v2](https://api.zoom.us/v2)’  
@api.get(“/billing/”, tags=[‘Integrations’])  
def get\_bill():  
token\_data = get\_zoom\_token()  
access\_token = token\_data[“access\_token”]  
url = f"{API\_BASE\_URL}/billing"  
headers = {  
“Authorization”: f"Bearer {access\_token}"  
}  
response = requests.get(url, headers=headers)  
return response.json()

---

<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:** [June 6, 2023, 3:31pm UTC](https://devforum.zoom.us/t/get-billing-api/89621/5 "2023-06-06T15:31:55Z")

</div>

Thanks for getting back to me @e.divedeepai  
Could you please confirm if you have a Master account license enabled in your account???  
As stated in the docs, only master accounts can use this API. Zoom allows only [approved partners](https://marketplace.zoom.us/docs/api-reference/master-account-apis) to use master APIs and manage sub accounts’ billing information. Email the partner programs team at **[partner-success@zoom.us](mailto:partner-success@zoom.us)** for more details.
