# Cannot getting Sub-account's invoice id

**URL:** <https://devforum.zoom.us/t/cannot-getting-sub-accounts-invoice-id/52224>\
**Category:** API and Webhooks\
**Created:** [June 11, 2021, 12:31am UTC](https://devforum.zoom.us/t/cannot-getting-sub-accounts-invoice-id/52224 "2021-06-11T00:31:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tntn3438](https://avatars.discourse-cdn.com/v4/letter/t/e9bcb4/32.png) [@tntn3438](https://devforum.zoom.us/u/tntn3438)\
**Post date:** [June 11, 2021, 12:31am UTC](https://devforum.zoom.us/t/cannot-getting-sub-accounts-invoice-id/52224/1 "2021-06-11T00:31:57Z")

</div>

## background

We are a sub-reseller company.  
An environment for purchasing Pro licenses for customers,  
Account number:  
There is a question while verifying the Biling-related API for automating invoice processing for sub-accounts.  
(Zoom Japan and the billing team when issuing the ticket have instructed me to ask a question here.)

## Question

I want to get “Sub-account’s invoice id” in order to execute following APIs.

・ API: Get invoice details  
・ API: Download an invoice file

My understanding is  
we can get invoiceid by  
API: List billing invoices  
([https://api.zoom.us/v2/accounts/{accountId}/billing/invoices](https://api.zoom.us/v2/accounts/%7BaccountId%7D/billing/invoices))

but  
The execution result is  
{  
200  
{“invoices”: , “currency”: “USD”}  
}

It seems that the request was successful, but I am in trouble because the contents are empty and I can not get the invoice id.  
It is the account that the invoice should have come clearly, and even if it is set for the specified period, it does not change.

Execution example:  
・ Account ID:xxx (Service purchase date: January 6, 2021)  
・ From: 2021-01-01  
・ To: 2021-06-02

## result:

## 200 {“invoices”: , “currency”: “USD”}

Could you please tell me the cause and solution?

---

<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:** [June 11, 2021, 7:31pm UTC](https://devforum.zoom.us/t/cannot-getting-sub-accounts-invoice-id/52224/2 "2021-06-11T19:31:36Z")

</div>

Hi @tntn3438,

Thanks for reaching out about this, and happy to help!

Usually, this is a result of not passing valid to/from parameters in the request URL. Can you try using a request like this one?:  
`https://zoom.us/v2/accounts/me/billing/invoices?from=2020-09-25&to=2021-03-25`

If you still see an empty array in the response, please write to us directly at [developersupport@zoom.us](mailto:developersupport@zoom.us) with your account details and the exact request URL you’re using. We’ll be happy to help debug there.

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:** [July 12, 2021, 5:32am UTC](https://devforum.zoom.us/t/cannot-getting-sub-accounts-invoice-id/52224/3 "2021-07-12T05:32:16Z")

</div>

Closed on July 12, 2021, 5:32am UTC

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