WooCommerce · JSON-LD Context

Woocommerce Rest Api Sales Context

JSON-LD context defining the semantic vocabulary for Woocommerce Rest Api Sales from WooCommerce.

1 Classes 11 Properties 4 Namespaces
View Context View on GitHub

Namespaces

woo: https://woocommerce.dev/schema/
schema: https://schema.org/
dcterms: http://purl.org/dc/terms/
xsd: http://www.w3.org/2001/XMLSchema#

Classes

SalesReport

Properties

Property Type Container
totalSales string
netRevenue string
averageSales string
totalOrders integer
totalItems integer
totalTax string
totalShipping string
totalRefunds decimal
totalDiscount decimal
totalsGroupedBy string
totals reference

JSON-LD Document

Raw ↑
{
  "@context": {
    "@version": 1.1,
    "woo": "https://woocommerce.dev/schema/",
    "schema": "https://schema.org/",
    "dcterms": "http://purl.org/dc/terms/",
    "xsd": "http://www.w3.org/2001/XMLSchema#",
    "SalesReport": "woo:SalesReport",
    "totalSales": {
      "@id": "woo:total_sales",
      "@type": "xsd:string"
    },
    "netRevenue": {
      "@id": "woo:net_revenue",
      "@type": "xsd:string"
    },
    "averageSales": {
      "@id": "woo:average_sales",
      "@type": "xsd:string"
    },
    "totalOrders": {
      "@id": "woo:total_orders",
      "@type": "xsd:integer"
    },
    "totalItems": {
      "@id": "woo:total_items",
      "@type": "xsd:integer"
    },
    "totalTax": {
      "@id": "woo:total_tax",
      "@type": "xsd:string"
    },
    "totalShipping": {
      "@id": "woo:total_shipping",
      "@type": "xsd:string"
    },
    "totalRefunds": {
      "@id": "woo:total_refunds",
      "@type": "xsd:decimal"
    },
    "totalDiscount": {
      "@id": "woo:total_discount",
      "@type": "xsd:decimal"
    },
    "totalsGroupedBy": {
      "@id": "woo:totals_grouped_by",
      "@type": "xsd:string"
    },
    "totals": {
      "@id": "woo:totals",
      "@type": "@id"
    }
  }
}