FCHubFCHub.co

Get reports overview

Retrieve a high-level financial overview including gross revenue, net revenue, and top countries broken down by month and quarter with year-over-year growth.

GET
/reports/overview

Authorization

applicationPassword
AuthorizationBasic <token>

WordPress Application Password authentication. Generate one at wp-admin > Users > Application Passwords. Use as Basic Auth with username:application_password (base64-encoded).

In: header

Query Parameters

params[startDate]?string

Start date for the report period (YYYY-MM-DD)

Formatdate
params[endDate]?string

End date for the report period (YYYY-MM-DD)

Formatdate

Response Body

application/json

curl -X GET "https://your-site.com/wp-json/fluent-cart/v2/reports/overview"
{
  "data": {
    "gross_revenue": {},
    "gross_revenue_quarterly": {},
    "net_revenue": {},
    "net_revenue_quarterly": {},
    "gross_summary": {
      "total": 0,
      "total_prev": 0,
      "yoy_growth": 0
    },
    "net_summary": {
      "total": 0,
      "total_prev": 0,
      "yoy_growth": 0
    },
    "top_country_net": {},
    "top_country_gross": {}
  }
}