WooCommerce · JSON Structure

Woocommerce Rest Api Sales Report Structure

Aggregated sales report data for a time period.

Type: object Properties: 11
E-CommerceOpen-SourceOrderProductWordPress

SalesReport is a JSON Structure definition published by WooCommerce, describing 11 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

total_sales net_revenue average_sales total_orders total_items total_tax total_shipping total_refunds total_discount totals_grouped_by totals

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/woocommerce/refs/heads/main/json-structure/woocommerce-rest-api-sales-report-structure.json",
  "name": "SalesReport",
  "description": "Aggregated sales report data for a time period.",
  "type": "object",
  "properties": {
    "total_sales": {
      "type": "string",
      "description": "Total gross sales for the period.",
      "example": "string-value"
    },
    "net_revenue": {
      "type": "string",
      "description": "Net revenue (gross sales minus refunds).",
      "example": "string-value"
    },
    "average_sales": {
      "type": "string",
      "description": "Average daily sales for the period.",
      "example": "string-value"
    },
    "total_orders": {
      "type": "int32",
      "description": "Total number of orders in the period.",
      "example": 1
    },
    "total_items": {
      "type": "int32",
      "description": "Total number of items sold.",
      "example": 1
    },
    "total_tax": {
      "type": "string",
      "description": "Total tax collected.",
      "example": "string-value"
    },
    "total_shipping": {
      "type": "string",
      "description": "Total shipping revenue.",
      "example": "string-value"
    },
    "total_refunds": {
      "type": "double",
      "description": "Total refund amount.",
      "example": 10.5
    },
    "total_discount": {
      "type": "double",
      "description": "Total discount amount.",
      "example": 10.5
    },
    "totals_grouped_by": {
      "type": "string",
      "description": "Grouping interval for totals_by_date (day, week, month, year).",
      "example": "string-value"
    },
    "totals": {
      "type": "object",
      "description": "Sales totals grouped by the totals_grouped_by interval.",
      "additionalProperties": true,
      "example": {}
    }
  }
}

Work with this as data

Every JSON Structure here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Structure
curl "https://apis.io/api/v1/json-structures/woocommerce-rest-api-sales-report-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.