API ReferenceWooCommerceSDKssoonWebhookssoon

Dashboard

Consolidated dashboard

GET/api/merchants/dashboard

Stats, daily revenue/cashback timeseries, recent activity, and live BTC prices — already aggregated and currency-converted server-side.

  • Every figure is derived from observed sales and cashback payouts. None of it is a Trevi-held balance.

Authentication

Accepts either an API key (X-API-Key) or a dashboard JWT (Authorization: Bearer …).

Query parameters

range7d30dcustomoptional

default 7d

startstring (ISO)optional

used when range=custom

endstring (ISO)optional

used when range=custom

recentnumberoptional

recent rows, default 50

GET/api/merchants/dashboard
curl "https://api.trevi.cash/api/merchants/dashboard?range=30d" \
  --header "X-API-Key: $TREVI_API_KEY"