Analytics
Get Entities Overview
Every legal entity with its MRR and open receivables side by side, plus consolidated totals.
GET
/
v1
/
analytics
/
entities-overview
Multi-entity control tower (MRR + open AR per entity)
curl --request GET \
--url https://billing.example.com/v1/analytics/entities-overview \
--header 'Authorization: Bearer <token>'import requests
url = "https://billing.example.com/v1/analytics/entities-overview"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://billing.example.com/v1/analytics/entities-overview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://billing.example.com/v1/analytics/entities-overview",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://billing.example.com/v1/analytics/entities-overview"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://billing.example.com/v1/analytics/entities-overview")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://billing.example.com/v1/analytics/entities-overview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"reporting_currency": "<string>",
"total_mrr": 123,
"total_ar_outstanding": 123,
"entities": [
{
"entity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"entity_name": "<string>",
"is_primary": true,
"mrr": 123,
"arr": 123,
"ar_outstanding": 123,
"subscriptions": 123
}
]
}
}{
"error": {
"code": "validation_failed",
"message": "<string>"
}
}The multi-entity control tower: every legal entity (Multi-Entity Books) with its MRR and open accounts receivable side by side, plus consolidated totals, normalized to the reporting currency. The
entities array is empty for single-entity tenants — use the consolidated dashboards instead. Responses are cached for up to 5 minutes.
Example Request
curl "https://api.recurso.dev/v1/analytics/entities-overview" \
-H "Authorization: Bearer $API_KEY"
Response
{
"data": {
"reporting_currency": "USD",
"total_mrr": 4850000,
"total_ar_outstanding": 655400,
"entities": [
{
"entity_id": "c4f8b2a6-1d9e-4c3a-8b7f-5e2a9d0c6f41",
"entity_name": "Acme Inc (US)",
"is_primary": true,
"mrr": 3000000,
"arr": 36000000,
"ar_outstanding": 402100,
"subscriptions": 120
},
{
"entity_id": "7d2e9a15-4c8b-4f6a-a3d1-9b0e5c7f2a84",
"entity_name": "Acme India Pvt Ltd",
"is_primary": false,
"mrr": 1850000,
"arr": 22200000,
"ar_outstanding": 253300,
"subscriptions": 214
}
]
}
}
Response Fields
| Field | Type | Description |
|---|---|---|
reporting_currency | string | Currency every amount is normalized into |
total_mrr | integer | Consolidated MRR across all entities, minor units |
total_ar_outstanding | integer | Consolidated open receivables across all entities, minor units |
entities[] | array | One row per legal entity: entity_id, entity_name, is_primary, mrr, arr, ar_outstanding, active subscriptions |
⌘I
Multi-entity control tower (MRR + open AR per entity)
curl --request GET \
--url https://billing.example.com/v1/analytics/entities-overview \
--header 'Authorization: Bearer <token>'import requests
url = "https://billing.example.com/v1/analytics/entities-overview"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://billing.example.com/v1/analytics/entities-overview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://billing.example.com/v1/analytics/entities-overview",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://billing.example.com/v1/analytics/entities-overview"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://billing.example.com/v1/analytics/entities-overview")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://billing.example.com/v1/analytics/entities-overview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"reporting_currency": "<string>",
"total_mrr": 123,
"total_ar_outstanding": 123,
"entities": [
{
"entity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"entity_name": "<string>",
"is_primary": true,
"mrr": 123,
"arr": 123,
"ar_outstanding": 123,
"subscriptions": 123
}
]
}
}{
"error": {
"code": "validation_failed",
"message": "<string>"
}
}