Closed oleg-agapov closed 4 months ago
Update.
After talking to Twilio's tech support I figured out the error.
Basically, you only can request statistics for the timeframe after the subaccount was created. In my case, the subaccount in the example was created in April, so requesting data for March gave me an error.
I adjusted my code to request data only where start_date >= date_created
.
I hope this is resolved now
Yup, resolved by specifying only dates when subaccount was created. Closing the issue!
Issue Summary
Using this SDK gives me 404 error when I try to query UsageRecords for subaccounts. Interestingly, when I try to use pre-defined methods, like
last_month
it works, but it doesn't fordaily
or genericlist
.I checked that the mentioned subaccount is under my main account, so I'm using the correct credentials.
Code Snippet
Exception/Log
Technical details: