FCHubFCHub.co

Get revenue report

Retrieve revenue data grouped by day, week, or month, including net revenue, shipping, tax, refunds, and order counts with period comparison.

GET
/reports/revenue

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 (YYYY-MM-DD)

Formatdate
params[endDate]?string

End date (YYYY-MM-DD)

Formatdate
params[groupKey]?string

Grouping interval for the report

Value in"daily" | "weekly" | "monthly"
params[compare_startDate]?string

Comparison period start date

Formatdate
params[compare_endDate]?string

Comparison period end date

Formatdate

Response Body

application/json

curl -X GET "https://your-site.com/wp-json/fluent-cart/v2/reports/revenue"
{
  "revenueReport": [
    {
      "year": "string",
      "group": "string",
      "total_sales": "string",
      "net_revenue": "string",
      "shipping_total": "string",
      "total_tax": "string",
      "total_refunds": "string",
      "order_count": "string",
      "refunded_orders": "string"
    }
  ],
  "summary": {
    "net_revenue": 0,
    "gross_sale": 0,
    "total_refunded_amount": 0,
    "tax_total": 0,
    "shipping_total": 0,
    "order_count": 0,
    "refunded_orders": 0
  },
  "previousSummary": [
    {}
  ],
  "fluctuations": [
    {}
  ],
  "previousMetrics": [
    {}
  ],
  "appliedGroupKey": "string"
}