Get revenue metrics
get-metricsFetch subscription metrics overview (MRR, revenue, active subscriptions, trials, customers) or daily history for a specific metric over a chosen period.
Instructions
Without metric: the overview cards (MRR, revenue, active subscriptions, active trials, new customers, active customers, last 28 days, USD). With metric: that metric's daily history over days days.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | History length in days (default 28). Only with metric. | |
| metric | No | Leave out for the overview. | |
| project_id | No | RevenueDot project id (proj...). Optional when the key or account has exactly one project. | |
| environment | No | Default production; sandbox shows Test Store and sandbox purchases. |