# Invoice for sub account

**URL:** <https://devforum.zoom.us/t/invoice-for-sub-account/76892>\
**Category:** Meetings\
**Created:** [October 4, 2022, 12:42am UTC](https://devforum.zoom.us/t/invoice-for-sub-account/76892 "2022-10-04T00:42:58Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![phoopwint.aung.za](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/phoopwint.aung.za/32/57256_2.png) [@phoopwint.aung.za](https://devforum.zoom.us/u/phoopwint.aung.za)\
**Post date:** [October 4, 2022, 12:42am UTC](https://devforum.zoom.us/t/invoice-for-sub-account/76892/1 "2022-10-04T00:42:58Z")

</div>

Hello,

When i try to get invoices list for sub account using `List billing invoices(GET /accounts/{accountId}/billing/invoices)`, I got the following response although there is invoices for this sub account.  
End Point =\> [https://api.zoom.us/v2/accounts/{accountID}/billing/invoices](https://api.zoom.us/v2/accounts/%7BaccountID%7D/billing/invoices)  
**Response** =\> {‘invoices’: , ‘currency’: ‘USD’}

But we can see invoices related with this sub account under the master account in the Zoom Web Site.  
Is that related with the following setting for this sub account?So, we can only see invoices for this sub account under the master account , not under this sub account?  
**Who will pay for this account?**  
**You (the master account holder) pay**

Is there any ways to get invoice lists for this sub account using API?

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:** [October 4, 2022, 9:49pm UTC](https://devforum.zoom.us/t/invoice-for-sub-account/76892/2 "2022-10-04T21:49:04Z")

</div>

Hi @phoopwint.aung.za

thanks for reaching out to the Zoom Developer Forum, I am happy to help here!  
Could you please make sure to pass the query parameters from and date and try again

> **[Zoom Meeting Master Account API](https://marketplace.zoom.us/docs/api-reference/zoom-api/ma/#operation/accountBillingInvoices)**
>
> API Reference for /api-reference/zoom-api/ma

Best,  
Elisa

---

<div class="post-metadata">

**Author:** ![phoopwint.aung.za](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/phoopwint.aung.za/32/57256_2.png) [@phoopwint.aung.za](https://devforum.zoom.us/u/phoopwint.aung.za)\
**Post date:** [October 5, 2022, 4:10am UTC](https://devforum.zoom.us/t/invoice-for-sub-account/76892/3 "2022-10-05T04:10:55Z")

</div>

Hi @elisa.zoom

Thanks for your support!  
I have already tried by passing the query parameters **from** and **to** date . But the result comes out as same as before.  
End Point =\> [[https://api.zoom.us/v2/accounts/{accountID}/billing/invoices?from=2022-09-01&to=2022-09-31](https://api.zoom.us/v2/accounts/%7BaccountID%7D/billing/invoices?from=2022-09-01&to=2022-09-31)]  
**Response** =\> {‘invoices’: , ‘currency’: ‘USD’}

---

<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:** [October 5, 2022, 2:12pm UTC](https://devforum.zoom.us/t/invoice-for-sub-account/76892/4 "2022-10-05T14:12:06Z")

</div>

Thanks for confirming this with me.  
I will go ahead and send you a private message to ask for some details about your account and I will take it from there.  
Best,  
Elisa

---

<div class="post-metadata">

**Author:** ![rarev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rarev/32/38939_2.png) [@rarev](https://devforum.zoom.us/u/rarev)\
**Post date:** [October 5, 2022, 5:00pm UTC](https://devforum.zoom.us/t/invoice-for-sub-account/76892/5 "2022-10-05T17:00:40Z")

</div>

Hi @phoopwint.aung.za

If you have your account set up where the master account is paying for all subaccounts, you will only see invoices in the master account when you make the API call. If you wanted to separate them you would need to reach out to someone in customer success to make this change for you.

Regards,

Ron

---

<div class="post-metadata">

**Author:** ![phoopwint.aung.za](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/phoopwint.aung.za/32/57256_2.png) [@phoopwint.aung.za](https://devforum.zoom.us/u/phoopwint.aung.za)\
**Post date:** [October 6, 2022, 6:15am UTC](https://devforum.zoom.us/t/invoice-for-sub-account/76892/6 "2022-10-06T06:15:37Z")

</div>

Hi @elisa.zoom,  
Thanks for your support .

Hi @rarev ,  
Thanks for your answer .  
Is that means I can get /see invoices for this sub account if I changed this setting _Who will pay for this account?_ from _You (the master account holder) pay_ to _Myself_ ?

---

<div class="post-metadata">

**Author:** ![phoopwint.aung.za](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/phoopwint.aung.za/32/57256_2.png) [@phoopwint.aung.za](https://devforum.zoom.us/u/phoopwint.aung.za)\
**Post date:** [October 7, 2022, 8:41am UTC](https://devforum.zoom.us/t/invoice-for-sub-account/76892/7 "2022-10-07T08:41:25Z")

</div>

Hi @rarev , @elisa.zoom ,

I think there is sub Account ID in invoice PDF, but I cant get sub Account ID from Invoice API calling as i mentioned earlier.  
Can I get sub Account ID information from Billing Invoices API calling ? I just want to know which invoice is owned by which sub account from API response.

Thanks.

---

<div class="post-metadata">

**Author:** ![rarev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rarev/32/38939_2.png) [@rarev](https://devforum.zoom.us/u/rarev)\
**Post date:** [October 7, 2022, 6:15pm UTC](https://devforum.zoom.us/t/invoice-for-sub-account/76892/8 "2022-10-07T18:15:01Z")

</div>

Hey @phoopwint.aung.za

You can also get subaccount IDs by making an API call to `https://api.zoom.us/v2/accounts`, this would give you all the subaccount IDs under the master account. Here’s sample of the response, the accounts are contained in an array.

```auto
accounts: [
    {
      id: 'SOMEID',
      account_name: 'Third Teir',
      account_number: 10002301,
      owner_email: 'EMAIL+threeTier@gmail.com',
      account_type: 'Free',
      seats: 0,
      subscription_start_time: '',
      subscription_end_time: '',
      created_at: '2021-11-09T21:11:03Z'
    },
    {
      id: 'ANTHERID',
      account_name: 'Postman Test',
      account_number: 10002292,
      owner_email: 'EMAIL+postman@gmail.com',
      account_type: 'Free',
      seats: 0,
      subscription_start_time: '',
      subscription_end_time: '',
      created_at: '2021-11-09T19:36:16Z'
    },
]

```

---

<div class="post-metadata">

**Author:** ![phoopwint.aung.za](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/phoopwint.aung.za/32/57256_2.png) [@phoopwint.aung.za](https://devforum.zoom.us/u/phoopwint.aung.za)\
**Post date:** [October 11, 2022, 2:10am UTC](https://devforum.zoom.us/t/invoice-for-sub-account/76892/9 "2022-10-11T02:10:16Z")

</div>

Hi @rarev ,  
Sorry for my poor explanation.  
Let me revise my question.

When i try to get invoices list for sub account using `List billing invoices(GET /accounts/{accountId}/billing/invoices)`, I got the following empty response although there is invoices for this sub account.  
End Point =\> [[https://api.zoom.us/v2/accounts/{accountID}/billing/invoices?from=2022-09-01&to=2022-09-31](https://api.zoom.us/v2/accounts/%7BaccountID%7D/billing/invoices?from=2022-09-01&to=2022-09-31)]  
**Response** =\> {‘invoices’: , ‘currency’: ‘USD’}

Because I have account set up where the master account is paying for all subaccounts, I can only see invoices in the master account when Imake the API call. Is that right?  
The following response is when i try to get invoices list as master account. But in this response , there is no information “which invoice is belonged to which sub account”. How can i know which invoice is belonged to which sub account from API call?  
End Point =\> [[https://api.zoom.us/v2/accounts/me/billing/invoices?from=2022-09-01&to=2022-09-31](https://api.zoom.us/v2/accounts/me/billing/invoices?from=2022-09-01&to=2022-09-31)]  
**Response** =\> {‘invoices’: [  
{‘id’: ‘12345555555555555’,  
‘invoice\_number’: ‘INV1234567’,  
‘total\_amount’: 0.0,  
‘tax\_amount’: 0.0,  
‘balance’: 0.0,  
‘due\_date’: ‘2022-10-11’,  
‘invoice\_date’: ‘2022-08-15’,  
‘target\_date’: ‘2022-08-16’,  
‘status’: ‘Collected’},  
{‘id’: ‘5345555555555555’,  
‘invoice\_number’: ‘INV24689’,  
‘total\_amount’: 0.0,  
‘tax\_amount’: 0.0,  
‘balance’: 0.0,  
‘due\_date’: ‘2022-10-11’,  
‘invoice\_date’: ‘2022-08-15’,  
‘target\_date’: ‘2022-08-16’,  
‘status’: ‘Collected’}  
],  
‘currency’: ‘USD’}

Thanks,

---

<div class="post-metadata">

**Author:** ![rarev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rarev/32/38939_2.png) [@rarev](https://devforum.zoom.us/u/rarev)\
**Post date:** [October 12, 2022, 3:37pm UTC](https://devforum.zoom.us/t/invoice-for-sub-account/76892/10 "2022-10-12T15:37:09Z")

</div>

Hey @phoopwint.aung.za

Thank you for the clarification, at the moment, the only way to tell what account that invoice belongs to, is to download the invoice and open it up. I can submit a feature request to have the account ID and name added to the this API response.

Thanks!

---

<div class="post-metadata">

**Author:** ![phoopwint.aung.za](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/phoopwint.aung.za/32/57256_2.png) [@phoopwint.aung.za](https://devforum.zoom.us/u/phoopwint.aung.za)\
**Post date:** [October 14, 2022, 2:30am UTC](https://devforum.zoom.us/t/invoice-for-sub-account/76892/11 "2022-10-14T02:30:53Z")

</div>

Hello @rarev ,  
Thanks for your support!

So, could you submit a feature request to add sub account information (account ID,accountName) to this API response, please? May I know how long it will take?

Thanks,

---

<div class="post-metadata">

**Author:** ![rarev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rarev/32/38939_2.png) [@rarev](https://devforum.zoom.us/u/rarev)\
**Post date:** [October 14, 2022, 4:38pm UTC](https://devforum.zoom.us/t/invoice-for-sub-account/76892/12 "2022-10-14T16:38:56Z")

</div>

Hi @phoopwint.aung.za,

I don’t have a timeline for how long a change can take or if it would even be implemented, but I can put in the request for you, and I do see the value in having these fields added.

Thank you!

---

<div class="post-metadata">

**Author:** ![phoopwint.aung.za](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/phoopwint.aung.za/32/57256_2.png) [@phoopwint.aung.za](https://devforum.zoom.us/u/phoopwint.aung.za)\
**Post date:** [October 17, 2022, 9:30am UTC](https://devforum.zoom.us/t/invoice-for-sub-account/76892/13 "2022-10-17T09:30:50Z")

</div>

Hi @rarev 、  
Thanks for your kindess support.

Best Regards,  
Phoo

---

<div class="post-metadata">

**Author:** ![phoopwint.aung.za](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/phoopwint.aung.za/32/57256_2.png) [@phoopwint.aung.za](https://devforum.zoom.us/u/phoopwint.aung.za)\
**Post date:** [October 19, 2022, 2:15am UTC](https://devforum.zoom.us/t/invoice-for-sub-account/76892/14 "2022-10-19T02:15:59Z")

</div>

Hi @rarev ,

So, Can you submit the request for me to add these fields(sub account ID & sub account Name) in API response of the following API calling ?  
`List billing invoices(GET /accounts/{accountId}/billing/invoices)`  
End Point =\> [[https://api.zoom.us/v2/accounts/{accountID}/billing/invoices?from=2022-09-01&to=2022-09-31](https://api.zoom.us/v2/accounts/%7BaccountID%7D/billing/invoices?from=2022-09-01&to=2022-09-31)]

Thanks for your kindly support.
