Skip to content
StraventaDocs
API Reference

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

EnvironmentHostname
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

ValueMeaning
todayCurrent calendar day (WIB / UTC+7)
7dRolling 7 days (default)
30dRolling 30 days

KPI keys

KeyUnitDescription
total_volume_idrIDRSum of completed transaction amounts
transaction_countcountNumber of completed transactions
success_rateratioCompleted / 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?

On this page