Dashboard
Consolidated dashboard
GET
/api/merchants/dashboardStats, daily revenue/cashback timeseries, recent activity, and live BTC prices — already aggregated server-side.
Authentication
Accepts either an API key (X-API-Key) or a dashboard JWT (Authorization: Bearer …).
Query parameters
range7d30dcustomoptionalstartstring (ISO)optionalrequired when range=custom
endstring (ISO)optionalrequired when range=custom
recentnumberoptionalrecent rows, max 200
GET
/api/merchants/dashboardcurl "https://api.trevi.cash/api/merchants/dashboard?range=30d" \
--header "X-API-Key: $BTPAY_API_KEY"Was this page helpful?
