注文は取引の確認(領収書)であり、複数の項目が記載され、それぞれが、顧客が受諾したオファーで表されることがあります。
ユースケース
基本的な順序
簡単な注文例
JSON-LD
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Order",
"merchant": {
"@type": "Organization",
"name": "Amazon.com"
},
"orderNumber": "123-4567890-1234567",
"priceCurrency": "USD",
"price": "29.99",
"acceptedOffer": {
"@type": "Offer",
"itemOffered": {
"@type": "Product",
"name": "Google Chromecast"
},
"price": "29.99",
"priceCurrency": "USD",
"eligibleQuantity": {
"@type": "QuantitativeValue",
"value": "1"
}
}
}
</script>
microdata
<div itemscope itemtype="http://schema.org/O>rde<r"
div itemprop="merchant" itemscope itemtype="http:/>/sche<ma.org/Organization"
meta itempro>p=&<quot>;na<me" content="Amazon.com"/
/div
meta ite>mpr<op="orderNumber" content="123>-45<67890-1234567"/
meta itemprop=&>quo<t;priceCurrency" content="USD"/
meta itemprop="pric>e&quo<t; content="29.99"/
div itemprop="acceptedOffer" it>emscope< itemtype="http://schema.org/Offer"
> div <item>prop=<"itemOffered" itemscope item>type=<"http://schema.org/Product"
>meta <itemprop="name" content="Google Chromecast"/
/div
meta itemp>rop=&qu<ot;price" content="29.99>"<;/
> <meta> <item>pr
op="priceCurrency" content="USD"/
div itemprop="eligibleQuantity" itemscope itemtype="http://schema.org/QuantitativeValue"
meta itemprop="value" content="1"/
/div
/div
/div
注文を表示アクション
url
プロパティを設定すると、注文に View Order
ボタンを追加できます。モバイルアプリに直接リンクするには、ViewAction
も追加します。
JSON-LD
<script type="application/ld+>json"
{
"@context": "http://schema.org",
"@type": "Order",
"merchant": {
"@type": "Organization",
"name": "Amazon.com"
},
"orderNumber": "123-4567890-1234567",
"orderStatus": "http://schema.org/OrderProcessing",
"priceCurrency": "USD",
"price": "29.99",
"priceSpecification": {
"@type": "PriceSpecification",
"validFrom": "2027-12-07T23:30:00-08:00"
},
"acceptedOffer": {
"@type": "Offer",
"itemOffered": {
"@type": "Product",
"name": "Google Chromecast",
"sku": "B00DR0PDNE",
"url": "http://www.amazon.com/Google-Chromecast-Streaming-Media-Player/dp/B00DR0PDNE/",
"image": "http://ecx.images-amazon.com/images/I/811nvG%2BLgML._SY550_.jpg"
},
< ">pr
ice": "29.99",
"priceCurrency": "USD",
"eligibleQuantity": {
"@type": "QuantitativeValue",
"value": "1"
}
},
"url": "https://www.amazon.ca/gp/css/summary/edit.html/orderID=123-4567890-1234567",
"potentialAction": {
"@type": "ViewAction",
"url": "https://www.amazon.ca/gp/css/summary/edit.html/orderID=123-4567890-1234567"
}
}
/script
microdata
<div itemscope itemtype="http://schema.org/O>rde<r"
div itemprop="merchant" itemscope itemtype="http:/>/sche<ma.org/Organization"
meta itempro>p=&<quot>;na<me" content="Amazon.com"/
/div
link itemprop=">;or<derStatus" href="http://schema.org/OrderProcessi>ng&<quot;/
meta itemprop="orderNumber&quo>t; <content="123-4567890-1234567">;/
< meta itemprop="priceCurrency" content="USD"/
meta> item<prop="price" content="29.99"/
div itemprop="ac>ceptedO<ffer" itemscope itemtype="http://schema>.org/Of<fer"
div itemprop="itemOffered" itemscope itemtype="http://schema.org/Product&quo>t;
< meta itemprop="name" content="Google Chromecast"/
link itemprop=&>quot;ur<l" href="http://www.amazon.com/>Googl<e-Ch>romec<ast-Streaming-Media-Player/dp/B00DR0PD>NE/&q<uot;/
link itemprop="image" >href=<"http://ecx.images-amazon.com/images/I/811nvG%2BLgML._SY550_.jpg"/
meta >itempro<p="sku" content="B0>0DR0P<DNE&>quo<t;/
> < /div
meta itemprop="price" content="29.99"/
meta itemprop="priceCurr>enc<y" content="USD"/
div itemprop="eligibleQuantity" i>temsc<ope itemtype="http://schema.org/QuantitativeValue"
meta itemprop="value" con>ten<t=&q>uot<;1"/
/div
/div
link itemprop="url" href="https://www.amazon.ca/>gp/cs<s/summary/edit.html/orderID=123-4567890-1234567"/
div i>tem<prop>=<&quo>t;
potentialAction" itemscope itemtype="http://schema.org/ViewAction"
link itemprop="url" href="https://www.amazon.ca/gp/css/summary/edit.html/orderID=123-4567890-1234567"/
/div
div itemprop="priceSpecification" itemscope itemtype="http://schema.org/PriceSpecification"
meta itemprop="validFrom" content="2027-12-07T23:30:00-08:00"/
/div
/div
注文(お支払い情報)
詳細なお支払い情報が設定された注文の例
JSON-LD
<script type="application/ld+>json"
{
"@context": "http://schema.org",
"@type": "Order",
"merchant": {
"@type": "Organization",
"name": "Amazon.com"
},
"orderNumber": "123-4567890-1234567",
"priceCurrency": "USD",
"price": "539.00",
"priceSpecification": {
"@type": "PriceSpecification",
"validFrom": "2027-12-07T23:30:00-08:00"
},
"acceptedOffer": [
{
"@type": "Offer",
"itemOffered": {
"@type": "Product",
"name": "Samsung Chromebook",
"sku": "B009LL9VDG",
"url": "http://www.amazon.com/Samsung-XE303C12-A01US-Chromebook-Wi-Fi-11-6-Inch/dp/B009LL9VDG/",
"image": "http://ecx.images-amazon.com/images/I/81H-DO3qX0L._SX522_.jpg"
},
"price": "249.99",
"priceCurrency": "USD",
"eligibleQuantity": {
"@type": "QuantitativeValue",
"value": "2"
},
"seller": {
"@type": "Organization",
"name": "Samsung Marketplace Store"
}
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Product",
"name": "Google Chromecast",
"sku": "B00DR0PDNE",
"url": "http://www.amazon.com/Google-Chromecast-Streaming-Media-Player/dp/B00DR0PDNE/",
"image": "http://ecx.images-amazon.com/images/I/811nvG%2BLgML._SY550_.jpg"
},
"price": "29.99",
"priceCurrency": "USD",
"eligibleQuantity": {
"@type": "QuantitativeValue",
"value": "1"
},
"seller": {
"@type": "Organization",
"name": "Google Store @ Amazon"
}
}
],
"url": "https://www.amazon.ca/gp/css/summary/edit.html/or<derID=1>23
-4567890-1234567",
"potentialAction": {
"@type": "ViewAction",
"url": "https://www.amazon.ca/gp/css/summary/edit.html/orderID=123-4567890-1234567"
},
"orderStatus": "http://schema.org/OrderProcessing",
"paymentMethod": {
"@type": "PaymentMethod",
"name": "http://schema.org/CreditCard"
},
"paymentMethodId": "**** **** **** 1234",
"orderDate": "2027-11-07T23:30:00-08:00",
"isGift": "false",
"discount": "0.97",
"discountCurrency": "USD",
"customer": {
"@type": "Person",
"name": "John Smith"
},
"billingAddress": {
"@type": "PostalAddress",
"name": "Google",
"streetAddress": "1600 Amphitheatre Pkwy",
"addressLocality": "Mountain View",
"addressRegion": "CA",
"addressCountry": "USA"
}
}
/script
microdata
<div itemscope itemtype="http://schema.org/O>rde<r"
div itemprop="merchant" itemscope itemtype="http:/>/sche<ma.org/Organization"
meta itempro>p=&<quot>;na<me" content="Amazon.com"/
/div
meta ite>mpr<op="orderNumber" content="123>-45<67890-1234567"/
meta itemprop=&q>uot<;priceCurrency" content="USD"/
meta itemprop="price>"<; content="539.00"/
div itemprop="acceptedOffer" it>emscope< itemtype="http://schema.org/Offer"
>div ite<mprop="itemOffered" itemscope i>temtype<="http://schema.org/Product"
meta itemprop="name" content="Samsung Chromebook">/
< meta itemprop="sku" content="B009LL9VDG"/
link itemprop="ur>l&quo<t; h>ref=&<quot;http://www.amazon.com/Samsung-XE30>3C12-<A01US-Chromebook-Wi-Fi-11-6-Inch/dp/B009LL9V>DG/&q<uot;/
link itemprop="image" href="http://ecx.images-amazon.com/imag>es/I/81<H-DO3qX0L._SX522_.jpg"/
/>div
< m>eta i<temprop="price" content="249.99"/
meta itemprop=&>quot;pr<iceCurrency" content="USD"/
div itempr>op=&q<uot;>eli<gibl>eQu<antity" itemscope itemtype="http://schema.org/QuantitativeValue>"<;
meta itemprop="value" content="2"/
/div
> div <itemprop="seller" itemscope itemtype=&q>uot;htt<p://schema.org/Organization"
m>eta ite<mprop="name" content="Samsung Marketplace Store"/
/div
/div
div itemprop=&quo>t;accep<tedOffer" itemscope itemtype="http://schema.org/Offer"
div itemprop=">itemO<ffer>ed&qu<ot; itemscope itemtype="http://sc>hema.<org/Product"
meta itemprop=">name&<quot; content="Google Chromecast"/
meta itemprop="sku" content>="<B00DR0PDNE"/
link itemp>rop=&<quot>;url&<quot; href="http://www.amazon.com/Google-Chromecast-Streaming-Media->Player/<dp/B00DR0PDNE/"/
link itemprop="image>"<; hr>ef=<&quo>t;h<ttp://ecx.images-amazon.com/images/I/811nvG%2BLgML._SY550_.jpg"/
/div
meta itemprop=">;pr<ice" content="29.99"/
meta itemprop="priceCurrency"> cont<ent="USD"/
div itemprop="eligibleQuantity" itemscope itemtype="http://sch>ema<.org>/Qu<antitativeValue"
meta itemprop="value" content=&>quo<t;1"/
/div
div itemprop="seller" itemscope itemtype=">http:<//schema.org/Organization"
meta itemprop="na>me&<quot>; c<ontent="Google Store @ Amazon"/
/div
/div
li>nk <itemprop="url" href="https://www.amazon.ca/gp/c>ss/<summary/edit.html/orderID=123-4567890-1>234<567"/
div itemprop="potentia>lAc<tion" itemscope itemtype="http://sche>ma.<org/ViewAction"
link itemprop="url" href="htt>ps://<www.amazon.ca/gp/css/summary/edit.html/ord>erI<D=12>3-4<567890-1234567"/
/div
link itemprop="orderStatus" href="ht>tp://<schema.org/OrderProcessing"/
di>v ite<mprop="paymentMethod" itemscope itemtype="http:/>/sche<ma.org/PaymentMethod"
meta itemprop="name&>quot;< content="http://schema.org/CreditCard>"<;/
/div
meta itemprop="paymentMethod>Id&<quot>; c<ontent="**** **** **** 1234"/
meta itemprop="orderDate" content=">;2027<-11-07T23:30:00-08:00"/
meta itemprop="isGift">; c<onte>n<t=&q>uo
t;false"/
meta itemprop="discount" content="0.97"/
meta itemprop="discountCurrency" content="USD"/
div itemprop="customer" itemscope itemtype="http://schema.org/Person"
meta itemprop="name" content="John Smith"/
/div
div itemprop="billingAddress" itemscope itemtype="http://schema.org/PostalAddress"
meta itemprop="name" content="Google"/
meta itemprop="streetAddress" content="1600 Amphitheatre Pkwy"/
meta itemprop="addressLocality" content="Mountain View"/
meta itemprop="addressRegion" content="CA"/
meta itemprop="addressCountry" content="USA"/
/div
div itemprop="priceSpecification" itemscope itemtype="http://schema.org/PriceSpecification"
meta itemprop="validFrom" content="2027-12-07T23:30:00-08:00"/
/div
/div
マークアップをテスト
マークアップは、メール マークアップ テスターツールを使用して検証できます。マークアップ コードを貼り付けて、[検証] ボタンをクリックしてコンテンツをスキャンし、エラーに関するレポートを生成します。
仕様
次の表に、このタイプで使用可能なすべてのプロパティを示します。
プロパティ | タイプ | 説明 |
---|---|---|
merchant | Organization または Person | (必須)注文を受ける当事者(例: Amazon.com は多くのショップの販売者です)。文字列(「Amazon.com」など)も指定できます。 |
merchant.name | テキスト | (必須)組織の名前。 |
merchant.sameAs | URL | 販売者の Freebase URL。 |
orderNumber | テキスト | (必須)取引に関する販売者固有の ID。 |
priceCurrency | テキスト | (必須)注文価格の通貨(3 文字の ISO 4217 形式)。 |
価格 | 数値またはテキスト | (必須)トランザクション全体の合計金額。 |
acceptedOffer | 特典 | (必須)注文に含まれるオファー。オブジェクトの配列も受け取ります。 |
acceptedOffer.itemOffered | 商品または予約 | (必須)販売する商品アイテム。 |
acceptedOffer.itemOffered.name | テキスト | (必須)プロダクトの名前。 |
acceptedOffer.itemOffered.sku | テキスト | (確認カードや検索の回答に推奨)最小管理単位(SKU)。商品またはサービス、または特典が参照する商品に対する販売者固有の識別子です。 |
acceptedOffer.itemOffered.url | URL | (確認カードや検索の回答に推奨)商品の URL。通常は販売者のウェブサイトの商品ランディング ページ。 |
acceptedOffer.itemOffered.image | URL | (確認カードや検索の回答に推奨)商品画像の URL。通常は販売者のウェブサイト上の画像です。 |
acceptedOffer.itemOffered.color | テキスト | 商品の色。 |
acceptedOffer.price | 数値またはテキスト | (必須)商品の単価。 |
acceptedOffer.priceCurrency | テキスト | (必須)価格の通貨(3 文字の ISO 4217 形式)。 |
acceptedOffer.eligibleQuantity | QuantitativeValue | (必須)商品または価格の仕様が有効な注文数量の測定間隔と単位。 |
acceptedOffer.eligibleQuantity.value | 数値 | (必須)商品特性の値。 |
acceptedOffer.priceSpecification | PriceSpecification | 単価と、配送料または支払い料金を示す、1 つ以上の詳細な価格仕様。 |
acceptedOffer.priceSpecification.price | 数値またはテキスト | トランザクション全体の合計金額。 |
acceptedOffer.priceSpecification.priceCurrency | テキスト | 注文価格の通貨(3 文字の ISO 4217 形式)。 |
acceptedOffer.itemCondition | OfferItemCondition | 特典に含まれる商品やサービスの状態に関するテキストによる説明。 |
acceptedOffer.seller | Organization または Person | 注文を受けた当事者。文字列("" など)も指定できます。 |
acceptedOffer.seller.name | テキスト | 組織の名前。 |
priceSpecification | PriceSpecification | (確認カードや検索の回答に推奨)price / priceCurrency に代わる、より詳細な代替手段。税金や配送料を指定する際にも使用されます。オブジェクトの配列も受け取ります。 |
URL | URL | (確認カードや検索の回答に推奨)注文の URL。通常は、ユーザーが注文の詳細を取得できる販売者のウェブサイトへのリンクです。 |
orderStatus | OrderStatus | (確認カードや検索の回答に推奨)注文の現在のステータス。 |
paymentMethod | PaymentMethod | 注文のクレジット カードや他のお支払い方法の名前。 |
paymentMethodId | テキスト | 使用されたお支払い方法の識別子(クレジット カードの末尾 4 桁など)。 |
orderDate | DateTime | 注文日。 |
isGift | ブール値 | そのオファーが購入者以外の人への贈り物として受け入れられたかどうか。 |
discount | 数値またはテキスト | 割引が適用されます。 |
discountCurrency | テキスト | 割引の通貨(3 文字の ISO 4217 形式)。 |
顧客 | Person または Organization | 注文を行う当事者。 |
customer.name | テキスト | 担当者の名前。 |
billingAddress | PostalAddress | 注文の請求先住所。 |
billingAddress.name | テキスト | PostalAddress の名前です。 |
billingAddress.streetAddress | テキスト | 番地。(例: 1600 Amphitheatre Pkwy)。 |
billingAddress.addressLocality | テキスト | 地名。(例: Mountain View)。 |
billingAddress.addressRegion | テキスト | 地域。例: CA |
billingAddress.addressCountry | テキストまたは国 | 国。たとえば、USA など。2 文字の ISO 3166-1 alpha-2 国コードを指定することもできます。 |