Get billing transaction totals
Retrieves aggregate totals of the organization's billing transactions over a date range, optionally grouped by transaction properties and/or rolled up into calendar periods.
This is useful for answering questions such as how much was spent on each type of usage in a given month, without needing to retrieve each individual transaction via queryBillingTransactions.
Amounts are in the organization's billing currency, with charges negative and payments/credits positive. Totals are always separated by currency; entries in different currencies are never summed together.
Note that usage-based charges are posted to the transaction history approximately once per day, so totals for a range including the current day may not include the most recent usage.
Request
- Base URL: https://api.telerivet.com
- URL: https://api.telerivet.com/v1/organizations/{organization_id}/billing_transaction_totals
- Auth: one of:
- HTTP basic
- OAuth 2 (authorization code, authorization URL https://telerivet.com/oauth/authorize, token URL https://api.telerivet.com/oauth/token)
Path parameters
ID of the Organization
Query parameters
Start date of transactions to include, in YYYY-MM-DD format (in the organization's time zone)
End date of transactions to include (inclusive), in YYYY-MM-DD format (in the organization's time zone)
If provided, totals are computed separately for each calendar period within the date range (in the organization's time zone), and each item in totals includes a period_start property. If not provided, totals cover the entire date range.
Comma-separated list of up to 2 transaction properties to group totals by: entry_type, project_id, phone_id, usage_category, usage_country, and/or usage_network. Grouped property values are included in each item in totals. Pass an empty string to compute overall totals without grouping.
Only include transactions of particular types, e.g. card_payment or service_plan_debit. Multiple types may be provided as a comma-separated string.
Only include usage transactions with a particular pricing category
Only include usage transactions with a particular 2-letter country code
Only include usage transactions with a particular mobile network code
ID of Project
Only include transactions associated with a particular project
ID of Phone
Only include transactions associated with a particular basic route (phone)
Response
Successful response
Changes
No recorded changes to this operation across all 1 revision of this API.