FCHubFCHub.co

Get order chart

Retrieve order chart data including gross sales, net revenue, order counts, item counts, and averages grouped by date with period comparison.

GET
/reports/order-chart

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
Formatdate
params[endDate]?string
Formatdate
params[groupKey]?string
Value in"daily" | "weekly" | "monthly"
params[compare_startDate]?string
Formatdate
params[compare_endDate]?string
Formatdate

Response Body

application/json

curl -X GET "https://your-site.com/wp-json/fluent-cart/v2/reports/order-chart"
{
  "orderChartData": [
    {
      "group": "string",
      "year": "string",
      "gross_sale": "string",
      "net_revenue": "string",
      "order_count": "string",
      "total_refund": "string",
      "shipping_total": "string",
      "tax_total": "string",
      "average_net": "string",
      "average_gross": "string",
      "total_item_count": "string",
      "average_order_items_count": "string",
      "average_order_gross": "string"
    }
  ],
  "summary": {
    "net_revenue": 0,
    "gross_sale": 0,
    "order_count": 0,
    "total_item_count": 0,
    "average_net": 0,
    "average_order_items_count": 0,
    "average_gross": 0,
    "total_refund": 0,
    "tax_total": 0,
    "shipping_total": 0,
    "monthly_net": 0,
    "monthly_gross": 0,
    "monthly_orders": 0,
    "monthly_items": 0
  },
  "previousSummary": [
    {}
  ],
  "fluctuations": [
    {}
  ]
}