WooCommerce · JSON-LD Context

Woocommerce Rest Api Line Context

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

2 Classes 12 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

LineItem name

Properties

Property Type Container
id integer
productId integer
variationId integer
quantity integer
taxClass string
subtotal string
subtotalTax string
total string
totalTax string
sku string
price decimal
metaData set

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#",
    "LineItem": "woo:LineItem",
    "id": {
      "@id": "woo:id",
      "@type": "xsd:integer"
    },
    "name": "schema:name",
    "productId": {
      "@id": "woo:product_id",
      "@type": "xsd:integer"
    },
    "variationId": {
      "@id": "woo:variation_id",
      "@type": "xsd:integer"
    },
    "quantity": {
      "@id": "woo:quantity",
      "@type": "xsd:integer"
    },
    "taxClass": {
      "@id": "woo:tax_class",
      "@type": "xsd:string"
    },
    "subtotal": {
      "@id": "woo:subtotal",
      "@type": "xsd:string"
    },
    "subtotalTax": {
      "@id": "woo:subtotal_tax",
      "@type": "xsd:string"
    },
    "total": {
      "@id": "woo:total",
      "@type": "xsd:string"
    },
    "totalTax": {
      "@id": "woo:total_tax",
      "@type": "xsd:string"
    },
    "sku": {
      "@id": "woo:sku",
      "@type": "xsd:string"
    },
    "price": {
      "@id": "woo:price",
      "@type": "xsd:decimal"
    },
    "metaData": {
      "@id": "woo:meta_data",
      "@container": "@set"
    }
  }
}