DocsAPI ReferenceDashboard/bff/dashboard/daily-revenue
getDashboardAdmin BFF

/bff/dashboard/daily-revenue

Returns daily revenue data for the specified period with comparison to the previous period. Essential for monitoring business health and cash flow trends.

DashboardgetBffDashboardDaily-revenue

Parameters

1 query

1 total
Query · 1
daysnumber

Number of days to fetch. Defaults to 30.

Default: 30

Request

GET /bff/dashboard/daily-revenue

get
curl -X GET "https://api.bizkithub.com/bff/dashboard/daily-revenue?days=30" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

Daily revenue response with period comparison.

{
  "currentPeriod": {
    "totalRevenue": 0,
    "orderCount": 0,
    "startDate": "example_startDate",
    "endDate": "example_endDate"
  },
  "previousPeriod": {
    "totalRevenue": 0,
    "orderCount": 0,
    "startDate": "example_startDate",
    "endDate": "example_endDate"
  },
  "revenueChange": 0,
  "orderCountChange": 0,
  "dailyData": [
    {
      "date": "example_date",
      "revenue": 0,
      "orderCount": 0
    }
  ]
}

All response codes

1 status code documented

Need an API key?

All BizKitHub API endpoints require authentication via API key.

Get API Key