Analytics Service API
Tenant dashboard analytics — KPI cards, time-series volume, and channel-mix breakdowns
The Analytics Service aggregates transaction data for the authenticated tenant and exposes it as dashboard-ready KPI cards, daily time-series volume charts, and channel-mix breakdowns. It is the data source for the analytics dashboard in the 505pay merchant console.
Base URLs
| Environment | Hostname |
|---|---|
| Sandbox (505pay.link) | https://sandbox.505pay.link |
| Production (505pay.link) | https://api.505pay.link |
| Sandbox (straventa.com) | https://sandbox.straventa.com |
| Production (straventa.com) | https://api.straventa.com |
Authentication
All analytics endpoints require a Bearer JWT issued by the auth-service that
carries a reporting permission (analytics.dashboard.read or equivalent).
Time windows
| Value | Meaning |
|---|---|
today | Current calendar day (WIB / UTC+7) |
7d | Rolling 7 days (default) |
30d | Rolling 30 days |
KPI keys
| Key | Unit | Description |
|---|---|---|
total_volume_idr | IDR | Sum of completed transaction amounts |
transaction_count | count | Number of completed transactions |
success_rate | ratio | Completed / total attempts (0.0–1.0) |
Stub service
The analytics service is currently a stub (Rust/axum). Data aggregation pipelines are under active development. The dashboard overview endpoint is available; additional endpoints will be added in subsequent releases.
Endpoint reference
Dashboard analytics
KPI cards, daily time-series volume, and channel-mix breakdowns for the authenticated tenant. Requires the analytics.dashboard.read permission.
Was this page helpful?