twilio-node icon indicating copy to clipboard operation
twilio-node copied to clipboard

Option "includeSubaccounts" does not work when listing usage records

Open bilics opened this issue 4 years ago • 1 comments

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

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

bilics avatar Dec 10 '20 18:12 bilics

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

thinkingserious avatar Jan 13 '21 23:01 thinkingserious

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.

childish-sambino avatar Nov 22 '22 21:11 childish-sambino