# Unauthorized Error for Billing details

**URL:** <https://devforum.zoom.us/t/unauthorized-error-for-billing-details/46269>\
**Category:** App Marketplace\
**Created:** [March 22, 2021, 10:42pm UTC](https://devforum.zoom.us/t/unauthorized-error-for-billing-details/46269 "2021-03-22T22:42:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![letapeed](https://avatars.discourse-cdn.com/v4/letter/l/c0e974/32.png) [@letapeed](https://devforum.zoom.us/u/letapeed)\
**Post date:** [March 22, 2021, 10:42pm UTC](https://devforum.zoom.us/t/unauthorized-error-for-billing-details/46269/1 "2021-03-22T22:42:49Z")

</div>

I’m calling the /accounts/{accountId}/billing endpoint. I have a pro account with an active subscription.  
I’m calling the API from Postman. Here are the details for the request:

URL: [https://api.zoom.us/v2/accounts/[accountid]/billing](https://api.zoom.us/v2/accounts/%5Baccountid%5D/billing)  
Method: GET  
Headers:

1. Basic [JWT token from the App marketplace profile page]

I get a 401 Unauthorized error with error description:  
{  
“code”: 124,  
“message”: “Invalid access token.”  
}

What exactly am I missing?

---

<div class="post-metadata">

**Author:** ![alexmayo](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/alexmayo/32/27289_2.png) [@alexmayo](https://devforum.zoom.us/u/alexmayo)\
**Post date:** [March 23, 2021, 11:37am UTC](https://devforum.zoom.us/t/unauthorized-error-for-billing-details/46269/2 "2021-03-23T11:37:06Z")

</div>

Hi @letapeed,

Welcome to the community!

1. Is the account ID you are using the same account which created the JWT token?
2. Have you ensured that the JWT token is still valid, and has not expired?

Thanks,  
Alex

---

<div class="post-metadata">

**Author:** ![letapeed](https://avatars.discourse-cdn.com/v4/letter/l/c0e974/32.png) [@letapeed](https://devforum.zoom.us/u/letapeed)\
**Post date:** [March 23, 2021, 1:16pm UTC](https://devforum.zoom.us/t/unauthorized-error-for-billing-details/46269/3 "2021-03-23T13:16:39Z")

</div>

Hi @alexmayo, thanks for the reply.

1. Where can I find the acc ID that I use to create the JWT Token? The acc id I found was through the v2/users/me endpoint.

2. Yes, I made sure to use a fresh token everytime I tried.

---

<div class="post-metadata">

**Author:** ![alexmayo](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/alexmayo/32/27289_2.png) [@alexmayo](https://devforum.zoom.us/u/alexmayo)\
**Post date:** [March 23, 2021, 2:01pm UTC](https://devforum.zoom.us/t/unauthorized-error-for-billing-details/46269/4 "2021-03-23T14:01:10Z")

</div>

Hi @letapeed,

The JWT token is created using your API Key, not your Account ID. Please see [https://marketplace.zoom.us/docs/guides/auth/jwt](https://marketplace.zoom.us/docs/guides/auth/jwt) for a guide on how a JWT token should be created.

Thanks,  
Alex

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [March 24, 2021, 4:42pm UTC](https://devforum.zoom.us/t/unauthorized-error-for-billing-details/46269/5 "2021-03-24T16:42:06Z")

</div>

Hi @letapeed,

This endpoints requires not only that you have a Pro license, but also that you have a Master Account setup:  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/9/d/9d88c0686ba18cde34aa3f2c94b15a15839a6bca.png)

If you’d like to use this endpoint, you’ll need to get this enabled by reaching out to **[partner-success@zoom.us](mailto:partner-success@zoom.us)**.

Thanks,  
Will

---

<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:** [April 24, 2021, 2:42am UTC](https://devforum.zoom.us/t/unauthorized-error-for-billing-details/46269/6 "2021-04-24T02:42:56Z")

</div>

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