Analytics
Get MRR Metrics
Current monthly recurring revenue, FX-normalized to your reporting currency.
GET
/
v1
/
analytics
/
mrr
Monthly recurring revenue
curl --request GET \
--url https://billing.example.com/v1/analytics/mrr \
--header 'Authorization: Bearer <token>'import requests
url = "https://billing.example.com/v1/analytics/mrr"
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/mrr', 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/mrr",
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/mrr"
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/mrr")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://billing.example.com/v1/analytics/mrr")
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": {
"currency": "<string>",
"amount": 123,
"mrr": 123,
"normalized_mrr": 123,
"reporting_currency": "<string>",
"breakdown": [
{
"currency": "<string>",
"amount": 123,
"converted_amount": 123,
"rate": 123,
"subscriptions": 123,
"error": "<string>"
}
],
"fx": {
"rates": {},
"source": "live",
"as_of": "2023-11-07T05:31:56Z"
}
}
}{
"error": {
"code": "validation_failed",
"message": "<string>"
}
}Returns current MRR across active subscriptions. Per-currency buckets are converted to a single reporting currency (tenant
BaseCurrency → REPORTING_CURRENCY env → USD), with the exchange rates, their source, and timestamp returned alongside. All monetary values are in the smallest currency unit (e.g., cents for USD). Responses are cached for up to 5 minutes.
Example Request
curl "https://api.recurso.dev/v1/analytics/mrr" \
-H "Authorization: Bearer $API_KEY"
Response
{
"currency": "USD",
"amount": 4850000,
"mrr": 4850000,
"normalized_mrr": 4850000,
"reporting_currency": "USD",
"breakdown": [
{
"currency": "USD",
"amount": 3000000,
"converted_amount": 3000000,
"rate": 1,
"subscriptions": 120
},
{
"currency": "INR",
"amount": 155000000,
"converted_amount": 1850000,
"rate": 0.0119,
"subscriptions": 214
}
],
"fx": {
"rates": { "USD": 1, "INR": 0.0119 },
"source": "live",
"as_of": "2026-07-06T10:30:00Z"
}
}
Response Fields
| Field | Type | Description |
|---|---|---|
currency | string | The reporting currency (same as reporting_currency) |
amount / mrr / normalized_mrr | integer | FX-normalized MRR total in the reporting currency, minor units |
breakdown[] | array | Per-currency buckets: native amount, converted_amount, rate applied, active subscriptions, and error when the currency could not be converted (excluded from the total) |
fx.rates | object | Exact rate per currency (native → reporting) |
fx.source | string | live (exchange-rate provider) or static-fallback (bundled rates used because the provider failed or is not configured) |
fx.as_of | string | When the rates were obtained |
See the Analytics guide for reporting-currency resolution, rate provenance, and how unconvertible currencies are flagged.
Authorizations
Tenant API key obtained from POST /auth/register or POST /v1/developer/keys.
Query Parameters
Legal entity to scope the tax config to (Multi-Entity Books). Omit for the tenant's primary entity / default config.
Response
Current MRR.
Show child attributes
Show child attributes
⌘I
Monthly recurring revenue
curl --request GET \
--url https://billing.example.com/v1/analytics/mrr \
--header 'Authorization: Bearer <token>'import requests
url = "https://billing.example.com/v1/analytics/mrr"
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/mrr', 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/mrr",
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/mrr"
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/mrr")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://billing.example.com/v1/analytics/mrr")
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": {
"currency": "<string>",
"amount": 123,
"mrr": 123,
"normalized_mrr": 123,
"reporting_currency": "<string>",
"breakdown": [
{
"currency": "<string>",
"amount": 123,
"converted_amount": 123,
"rate": 123,
"subscriptions": 123,
"error": "<string>"
}
],
"fx": {
"rates": {},
"source": "live",
"as_of": "2023-11-07T05:31:56Z"
}
}
}{
"error": {
"code": "validation_failed",
"message": "<string>"
}
}