Dashboard
Centralized business management
Manage your business account, products, & analytics from a centralized dashboard. Track revenue, manage products, configure treasury, & access webhooks & API controls.
Dashboard Features
Analytics
Track revenue, transaction volume, customer metrics, & payment trends in real-time.
Product Management
Create & manage products, set pricing, configure accepted tokens & chains.
Treasury Management
Manage business treasury, view balances across chains, & execute trades or transfers.
Webhooks & API
Configure webhooks for payment events & access REST API for programmatic control.
Key Metrics
Total RevenueUSD equivalent across all tokens
Transaction CountTotal successful payments
Active ProductsProducts with recent activity
Treasury BalanceMulti-chain token holdings
API Usage
dashboard.ts
import { getBusinessDashboard, getBusinessAnalytics } from '@/lib/business'
// Get dashboard overview
const dashboard = await getBusinessDashboard({
businessId: 'your-business-id',
apiKey: process.env.TORQUE_API_KEY,
})
console.log('Revenue:', dashboard.totalRevenue)
console.log('Transactions:', dashboard.transactionCount)
console.log('Products:', dashboard.activeProducts)
// Get analytics
const analytics = await getBusinessAnalytics({
businessId: 'your-business-id',
startDate: '2024-01-01',
endDate: '2024-12-31',
})
console.log('Revenue by month:', analytics.monthlyRevenue)
console.log('Top tokens:', analytics.topTokens)Was this helpful?