twilio-node
twilio-node copied to clipboard
Option "includeSubaccounts" does not work when listing usage records
Issue Summary
Listing usage records for the main account does not include sub accounts - even if the option "includeSubaccounts" is set to true.
Steps to Reproduce
- Run the code snippet below
Code Snippet
const accountSid = 'main_account_id';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);
client.usage.records.lastMonth.each({category: 'channels-messaging-outbound', includeSubaccounts: true}, record => {
console.log(record)
});
Technical details:
- twilio-node version: ^3.54.0
- node version: v12.13.1
Hello @bilics,
I have been able to reproduce this. Thank you for reporting!
This issue has been added to our internal backlog to be prioritized. Pull requests and +1s on the issue summary will help it move up the backlog.
With best regards,
Elmer
This is not a change that can be made in the library. Please file a support ticket to inquire about adding this feature to the API.