Example compoundPrice-1

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>

Example compoundPrice-2

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 standard rental car is 50 USD per day and and $ 0.10 per mile.</h1>
  <b itemprop="name">Rental Car Package</b>
  <span itemprop="itemOffered" itemscope itemtype="http://schema.org/Car">
    <span itemprop="name">Volkswagen Golf Class Car</span>
  </span> 
  <span itemprop="priceSpecification" itemscope itemtype="http://schema.org/CompoundPriceSpecification">
    <span itemprop="priceComponent" itemscope itemtype="http://schema.org/UnitPriceSpecification">
      <span itemprop="price">50</span> 
      <meta itemprop="priceCurrency" content="USD"> US$
      <meta itemprop="unitCode" content="DAY"> per day
    </span>
    <span itemprop="priceComponent" itemscope itemtype="http://schema.org/UnitPriceSpecification">
      <span itemprop="price">0.10</span> 
      <meta itemprop="priceCurrency" content="USD"> US$
      <meta itemprop="unitCode" content="SMI"> per mile
    </span>
  </span>
</div>

JSON-LD (source lint)

<script type="application/ld+json">
{
    "@context": "http://schema.org",
    "@type": "Offer",
    "description": "Our standard rental car is 50 USD per day and and $ 0.10 per mile.",
    "name" : "Rental Car Package",
    "itemOffered" : { 
        "@type" : "Car",
        "name" : "Volkswagen Golf Class Car"
        },
    "priceSpecification" : {
        "@type" : "CompoundPriceSpecification",
        "priceComponent" : [
        {
            "@type" : "UnitPriceSpecification",
            "price" : 50,
            "priceCurrency" : "USD",
            "unitCode" : "DAY"
        },
        {
            "@type" : "UnitPriceSpecification",
            "price" : 0.10,
            "priceCurrency" : "USD",
            "unitCode" : "SMI"
        }
        ]
    }
}
</script>