{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/woocommerce/json-schema/woocommerce-sales-report-schema.json",
  "title": "SalesReport",
  "description": "Aggregated sales report data for a time period.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/woocommerce-reports-api-openapi.yml#/components/schemas/SalesReport",
  "type": "object",
  "properties": {
    "total_sales": {
      "type": "string",
      "description": "Total gross sales for the period."
    },
    "net_revenue": {
      "type": "string",
      "description": "Net revenue (gross sales minus refunds)."
    },
    "average_sales": {
      "type": "string",
      "description": "Average daily sales for the period."
    },
    "total_orders": {
      "type": "integer",
      "description": "Total number of orders in the period."
    },
    "total_items": {
      "type": "integer",
      "description": "Total number of items sold."
    },
    "total_tax": {
      "type": "string",
      "description": "Total tax collected."
    },
    "total_shipping": {
      "type": "string",
      "description": "Total shipping revenue."
    },
    "total_refunds": {
      "type": "number",
      "description": "Total refund amount."
    },
    "total_discount": {
      "type": "number",
      "description": "Total discount amount."
    },
    "totals_grouped_by": {
      "type": "string",
      "description": "Grouping interval for totals_by_date (day, week, month, year)."
    },
    "totals": {
      "type": "object",
      "description": "Sales totals grouped by the totals_grouped_by interval.",
      "additionalProperties": true
    }
  }
}