API ReferenceWooCommerceSDKssoonWebhookssoon

Dashboard

Consolidated dashboard

GET/api/merchants/dashboard

Stats, 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

range7d30dcustomoptional
startstring (ISO)optional

required when range=custom

endstring (ISO)optional

required when range=custom

recentnumberoptional

recent rows, max 200

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