Get billing api

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


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

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?

API_BASE_URL = ‘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()

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 to use master APIs and manage sub accounts’ billing information. Email the partner programs team at partner-success@zoom.us for more details.