Invoice for sub account

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
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.

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

Best,
Elisa

1 Like

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]
Response => {‘invoices’: , ‘currency’: ‘USD’}

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

1 Like

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

1 Like

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 ?

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.

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.

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'
    },
]
2 Likes

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]
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]
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,

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!

1 Like

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,

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!

1 Like

Hi @rarev
Thanks for your kindess support.

Best Regards,
Phoo

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]

Thanks for your kindly support.