This endpoint allows you to calculate the billing incurred by a subaccount.
You may often want to calculate the billing incurred by a subaccount. Let's say you created a subaccount for a customer and needed to charge them for their usage.
You can iterate over all the calls and sum up the product of price and duration.
The example below shows the API request to fetch all Calls that began on January 15, 2018. In the response, each object in the calls array contains a price property.
Note: In this example, the StartTime parameter returns calls only that began on January 15, 2018. You can also use inequalities (e.g. <= and >=) and the EndTime parameter to fetch all Calls from a specific date span. Learn more on the Call Resource API Reference page.