CompoundPriceSpecification

A compound price specification is one that bundles multiple prices that all apply in combination for different dimensions of consumption. Use the name property of the attached unit price specification for indicating the dimension of a price component (e.g. "electricity" or "final cleaning").

Example compoundPrice-1

Without Markup (source lint)

A bank account fee will be 5 USD per month and $ 0.10 per transaction

RDFa (source lint)

This example is currently available in Microdata and JSON-LD syntaxes only.

microdata (source lint)

<div itemscope itemtype="http://schema.org/Offer">
  <h1 itemprop="description">Our Private Bank Account Package: Low monthly fees and fair per-use charges.</h1>
  <b itemprop="name">Private Bank Account Package</b>
  <span itemprop="itemOffered" itemscope itemtype="http://schema.org/BankAccount">
    <span itemprop="name">ACME Private Bank Account</span>
    APR: <meta itemprop="annualPercentageRate" content="0.0314">3.14%
  </span> 
  <span itemprop="priceSpecification" itemscope itemtype="http://schema.org/CompoundPriceSpecification">
    <span itemprop="priceComponent" itemscope itemtype="http://schema.org/UnitPriceSpecification">
      <span itemprop="price">5</span> 
      <meta itemprop="priceCurrency" content="USD"> US$
      <meta itemprop="unitCode" content="MON"> per month
    </span>
    <span itemprop="priceComponent" itemscope itemtype="http://schema.org/UnitPriceSpecification">
      <span itemprop="price">0.10</span> 
      <meta itemprop="priceCurrency" content="USD"> US$
      <span itemprop="unitText"> per transaction</span>
    </span>
  </span>
</div>

JSON-LD (source lint)

<script type="application/ld+json">
{
    "@context": "http://schema.org",
    "@type": "Offer",
    "description": "Our Private Bank Account Package: Low monthly fees and fair per-use charges.",
    "name" : "Private Bank Account Package",
    "itemOffered" : { 
        "@type" : "BankAccount",
        "name" : "ACME Private Bank Account",
        "annualPercentageRate" : 0.0314 },
    "priceSpecification" : {
        "@type" : "CompoundPriceSpecification",
        "priceComponent" : 
        [
        {
            "@type" : "UnitPriceSpecification",
            "price" : 5,
            "priceCurrency" : "USD",
            "unitCode" : "MON"
        },
        {
            "@type" : "UnitPriceSpecification",
            "price" : 0.10,
            "priceCurrency" : "USD",
            "unitText" : "per transaction"
        }
        ]
    }
}
</script>

structured

rdf:type schema:Offer
schema:description Our Private Bank Account Package: Low monthly fees and fair per-use charges.
schema:itemOffered
rdf:type schema:BankAccount
schema:annualPercentageRate 3.14E-2
schema:name ACME Private Bank Account
schema:name Private Bank Account Package
schema:priceSpecification
rdf:type schema:CompoundPriceSpecification
schema:priceComponent
  • rdf:type schema:UnitPriceSpecification
    schema:price 1.0E-1
    schema:priceCurrency USD
    schema:unitText per transaction
  • rdf:type schema:UnitPriceSpecification
    schema:price 5
    schema:priceCurrency USD
    schema:unitCode MON

Example compoundPrice-2

Without Markup (source lint)

<div>
      <h1>Cath's Cafe</h1>
      <p>Open: Daily from 11:00am till 8pm</p>
      <p>Phone: 555-0100-3344</p>
      <p>View <a href="/menu">our menu</a>.</p>
     </div>

RDFa (source lint)

TODO.

microdata (source lint)

<div itemid="http://cathscafe.example.com/" itemscope itemtype="https://schema.org/WebPage">
    <div itemprop="mainEntity" itemscope itemtype="https://schema.org/Restaurant" itemid="#thecafe">
      <h1 itemprop="name">Cath's Cafe</h1>
      <p>Open: <span itemprop="openingHours" content="Mo,Tu,We,Th,Fr,Sa,Su 11:00-20:00">Daily from 11:00am till 8pm</span></p>
      <p>Phone: <span itemprop="telephone" content="+155501003344">555-0100-3344</span></p>
      <p>View <a itemprop="hasMenu" href="/menu">our menu</a>.</p>
    </div>
</div>

JSON-LD (source lint)

<script type="application/ld+json">
{
    "@context": "https://schema.org",
    "@type": "WebPage",
    "@id": "http://cathscafe.example.com/",
    "mainEntity": {
      "@type": "Restaurant",
      "name": "Cath's Cafe",
      "openingHours": "Mo,Tu,We,Th,Fr,Sa,Su 11:00-20:00",
      "telephone": "+155501003344",
      "hasMenu": "/menu"
    }
}
</script>

structured

@id http://cathscafe.example.com/(0)
rdf:type schema:WebPage
schema:mainEntity
rdf:type schema:Restaurant
schema:hasMenu /menu
schema:name Cath's Cafe
schema:openingHours Mo,Tu,We,Th,Fr,Sa,Su 11:00-20:00
schema:telephone +155501003344