Zamówienie to potwierdzenie transakcji (pokwitowanie). Może ono zawierać wiele elementów zamówienia, z których każdy reprezentuje ofertę zaakceptowaną przez klienta.
Przypadki użycia
Porządek podstawowy
Przykład elementu „Minimalny”
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>
Mikrodane
<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
Wyświetl działanie związane z zamówieniem
Możesz dodać przycisk View Order
do zamówień, ustawiając właściwość url
. Aby kierować użytkowników bezpośrednio do aplikacji mobilnej, dodaj też 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
Mikrodane
<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
Zamówienie z informacjami o płatnościach
Przykładowe zamówienie ze szczegółowymi informacjami rozliczeniowymi
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
Mikrodane
<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
Sprawdź znaczniki
Swoje znaczniki możesz sprawdzić za pomocą Testera znaczników w e-mailu. Wklej kod znaczników i kliknij przycisk Weryfikuj, aby zeskanować treść i otrzymać raport o ewentualnych błędach.
Specyfikacja
Poniższa tabela zawiera wszystkie właściwości dostępne dla tego typu:
Właściwość | Typ | Opis |
---|---|---|
sprzedawca | Organizacja lub Osoba | (wymagane) strona, która przyjmuje zamówienie (np. Amazon.com jest sprzedawcą w przypadku wielu sprzedawców); Akceptuje też ciągi znaków (np. „Amazon.com”). |
merchant.name | Tekst | (wymagana) Nazwa organizacji. |
merchant.sameAs | URL | Adres URL Freebase dla sprzedawcy. |
orderNumber | Tekst | (wymagany) Identyfikator transakcji właściwy dla sprzedawcy. |
priceCurrency | Tekst | (wymagany) Waluta ceny zamówienia (w 3-literowym formacie ISO 4217). |
cena | Liczba lub tekst | (wymagane) Łączna cena całej transakcji. |
acceptedOffer | Oferta | (wymagane) Oferty uwzględnione w zamówieniu. Akceptuje także tablicę obiektów. |
acceptedOffer.itemOffered | Produkt lub Rezerwacja | (wymagany) Sprzedawany produkt. |
acceptedOffer.itemOffered.name | Tekst | (wymagana) Nazwa Produktu. |
acceptedOffer.itemOffered.sku | Tekst | (zalecane jako karty potwierdzenia/odpowiedzi na pytania w wyszukiwarce) jednostka magazynowa (SKU), czyli identyfikator produktu lub usługi, którego dotyczy oferta. |
acceptedOffer.itemOffered.url | URL | (zalecany w przypadku kart potwierdzenia/odpowiedzi w wyszukiwarce) adresu URL produktu, zwykle strony docelowej produktu w witrynie sprzedawcy. |
acceptedOffer.itemOffered.image | URL | (zalecany w przypadku kart potwierdzenia/odpowiedzi w wyszukiwarce) URL zdjęcia produktu, zwykle obrazu na stronie sprzedawcy. |
acceptedOffer.itemOffered.color | Tekst | Kolor produktu. |
acceptedOffer.price | Liczba lub tekst | (wymagany) Cena jednostkowa Produktu. |
acceptedOffer.priceCurrency | Tekst | (wymagany) Waluta ceny (w 3-literowym formacie ISO 4217). |
acceptedOffer.eligibleQuantity | QuantitativeValue | (wymagany) Przedział czasu i jednostka miary ilości zamawianych produktów, których dotyczy oferta lub specyfikacja ceny. |
acceptedOffer.eligibleQuantity.value | Liczba | (wymagany) Wartość właściwości produktu. |
acceptedOffer.priceSpecification | PriceSpecification | Co najmniej jedna szczegółowa specyfikacja ceny, która zawiera cenę jednostkową oraz koszty dostawy lub płatności. |
acceptedOffer.priceSpecification.price | Liczba lub tekst | Łączna cena całej transakcji. |
acceptedOffer.priceSpecification.priceCurrency | Tekst | Waluta ceny zamówienia (w 3-literowym formacie ISO 4217). |
acceptedOffer.itemCondition | OfferItemCondition | Opis tekstowy stanu produktów lub usług albo produktów lub usług objętych ofertą. |
acceptedOffer.seller | Organizacja lub Osoba | Strona, w której zostało złożone zamówienie. Akceptuje też ciągi znaków (np. „”). |
acceptedOffer.seller.name | Tekst | Nazwa organizacji. |
priceSpecification | PriceSpecification | (zalecane w przypadku kart potwierdzenia/odpowiedzi w wyszukiwarce) Wszystkie bardziej szczegółowe alternatywy dla właściwości price/priceCurrency. Służy również do określania wysokości podatku i kosztów dostawy. Akceptuje także tablicę obiektów. |
URL | URL | (zalecany w przypadku kart potwierdzenia/odpowiedzi w wyszukiwarce) adres URL zamówienia. Zwykle jest to link do witryny sprzedawcy, na której użytkownik może uzyskać dodatkowe informacje o zamówieniu. |
orderStatus | OrderStatus | (zalecane w przypadku kart potwierdzenia/odpowiedzi na pytania w wyszukiwarce) Bieżący stan zamówienia. |
paymentMethod | PaymentMethod | Nazwa karty kredytowej lub innej formy płatności użytej za zamówienie. |
paymentMethodId | Tekst | identyfikator użytej formy płatności (np. ostatnie 4 cyfry numeru karty kredytowej); |
orderDate | DateTime | Data złożenia zamówienia. |
isGift | Wartość logiczna | Czy oferta została zaakceptowana jako prezent dla innej osoby niż kupujący. |
discount | Liczba lub tekst | Obowiązujący rabat. |
discountCurrency | Tekst | Waluta rabatu (w 3-literowym formacie ISO 4217). |
Klient | Osoba lub Organizacja | Strona składająca zamówienie. |
customer.name | Tekst | Imię i nazwisko osoby. |
billingAddress | PostalAddress | Adres rozliczeniowy powiązany z zamówieniem. |
billingAddress.name | Tekst | Nazwa Adresu pocztowego. |
billingAddress.streetAddress | Tekst | Ulica i numer. Na przykład 1600 Amphitheatre Pkwy. |
billingAddress.addressLocality | Tekst | Miejscowość. Na przykład Mountain View. |
billingAddress.addressRegion | Tekst | Region. Na przykład CA. |
billingAddress.addressCountry | Tekst lub kraj | Kraj. Na przykład USA. Możesz też podać dwuliterowy kod kraju w formacie ISO 3166-1 alfa-2. |