包裹運送

請使用此範本描述包裹遞送狀態。

用途

基本包裹遞送

包裹遞送的最小範例:

JSON-LD

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "ParcelDelivery",
  "deliveryAddress": {
    "@type": "PostalAddress",
    "name": "Pickup Corner",
    "streetAddress": "24 Willie Mays Plaza",
    "addressLocality": "San Francisco",
    "addressRegion": "CA",
    "addressCountry": "US",
    "postalCode": "94107"
  },
  "expectedArrivalUntil": "2027-03-12T12:00:00-08:00",
  "carrier": {
    "@type": "Organization",
    "name": "FedEx"
  },
  "itemShipped": {
    "@type": "Product",
    "name": "Google Chromecast"
  },
  "partOfOrder": {
    "@type": "Order",
    "orderNumber": "176057",
    "merchant": {
      "@type": "Organization",
      "name": "Bob Dole"
    }
  }
}
</script>

微資料

<div itemscope itemtype="http://schema.org/ParcelDelivery">
  <div itemprop="deliveryAddress" itemscope itemtype="http://schema.org/PostalAddress">
    <meta itemprop="name" content="Pickup Corner"/>
    <meta itemprop="streetAddress" content="24 Willie Mays Plaza"/>
    <meta itemprop="addressLocality" content="San Francisco"/>
    <meta itemprop="addressRegion" content="CA"/>
    <meta itemprop="addressCountry" content="US"/>
    <meta itemprop="postalCode" content="94107"/>
  </div>
  <meta itemprop="expectedArrivalUntil" content="2027-03-12T12:00:00-08:00"/>
  <div itemprop="carrier" itemscope itemtype="http://schema.org/Organization">
    <meta itemprop="name" content="FedEx"/>
  </div>
  <div itemprop="itemShipped" itemscope itemtype="http://schema.org/Product">
    <meta itemprop="name" content="Google Chromecast"/>
  </div>
  <div itemprop="partOfOrder" itemscope itemtype="http://schema.org/Order">
    <meta itemprop="orderNumber" content="176057"/>
    <div itemprop="merchant" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Bob Dole"/>
    </div>
  </div>
</div>

包裹遞送及運送訊息

包含詳細運送資訊的包裹遞送範例:

JSON-LD

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "ParcelDelivery",
  "deliveryAddress": {
    "@type": "PostalAddress",
    "name": "John Frank",
    "streetAddress": "24 Willie Mays Plaza",
    "addressLocality": "San Francisco",
    "addressRegion": "CA",
    "addressCountry": "US",
    "postalCode": "94107"
  },
  "originAddress": {
    "@type": "PostalAddress",
    "name": "John Frank",
    "streetAddress": "25 Willie Mays Plaza",
    "addressLocality": "San Francisco",
    "addressRegion": "CA",
    "addressCountry": "US",
    "postalCode": "94107"
  },
  "expectedArrivalFrom": "2027-03-10T12:00:00-08:00",
  "expectedArrivalUntil": "2027-03-12T12:00:00-08:00",
  "carrier": {
    "@type": "Organization",
    "name": "FedEx",
    "url": "http://fedex.com/"
  },
  "itemShipped": {
    "@type": "Product",
    "name": "iPod Mini",
    "url": "http://apple.com/ipad32gb",
    "image": "http://apple.com/images/ipad32gb.jpg",
    "sku": "B00DR0PDNE",
    "description": "iPod Mini 32Gb White",
    "brand": {
      "@type": "Brand",
      "name": "Apple"
    },
    "color": "white"
  },
  "trackingNumber": "3453291231",
  "trackingUrl": "http://fedex.com/track/3453291231",
  "potentialAction": {
    "@type": "TrackAction",
    "url": "http://fedex.com/track/3453291231"
  },
  "hasDeliveryMethod": {
    "@type": "ParcelService",
    "name": "http://schema.org/ParcelService"
  },
  "partOfOrder": {
    "@type": "Order",
    "orderNumber": "176057",
    "merchant": {
      "@type": "Organization",
      "name": "Bob Dole",
      "sameAs": "http://www.freebase.com/m/0fhkx"
    },
    "orderStatus": "http://schema.org/OrderInTransit"
  }
}
</script>

微資料

<div itemscope itemtype="http://schema.org/ParcelDelivery">
  <div itemprop="deliveryAddress" itemscope itemtype="http://schema.org/PostalAddress">
    <meta itemprop="name" content="John Frank"/>
    <meta itemprop="streetAddress" content="24 Willie Mays Plaza"/>
    <meta itemprop="addressLocality" content="San Francisco"/>
    <meta itemprop="addressRegion" content="CA"/>
    <meta itemprop="addressCountry" content="US"/>
    <meta itemprop="postalCode" content="94107"/>
  </div>
  <div itemprop="originAddress" itemscope itemtype="http://schema.org/PostalAddress">
    <meta itemprop="name" content="John Frank"/>
    <meta itemprop="streetAddress" content="25 Willie Mays Plaza"/>
    <meta itemprop="addressLocality" content="San Francisco"/>
    <meta itemprop="addressRegion" content="CA"/>
    <meta itemprop="addressCountry" content="US"/>
    <meta itemprop="postalCode" content="94107"/>
  </div>
  <meta itemprop="expectedArrivalFrom" content="2027-03-10T12:00:00-08:00"/>
  <meta itemprop="expectedArrivalUntil" content="2027-03-12T12:00:00-08:00"/>
  <div itemprop="carrier" itemscope itemtype="http://schema.org/Organization">
    <meta itemprop="name" content="FedEx"/>
    <link itemprop="url" href="http://fedex.com/"/>
  </div>
  <div itemprop="itemShipped" itemscope itemtype="http://schema.org/Product">
    <meta itemprop="name" content="iPod Mini"/>
    <link itemprop="url" href="http://apple.com/ipad32gb"/>
    <link itemprop="image" href="http://apple.com/images/ipad32gb.jpg"/>
    <meta itemprop="sku" content="B00DR0PDNE"/>
    <meta itemprop="description" content="iPod Mini 32Gb White"/>
    <div itemprop="brand" itemscope itemtype="http://schema.org/Brand">
      <meta itemprop="name" content="Apple"/>
    </div>
    <meta itemprop="color" content="white"/>
  </div>
  <meta itemprop="trackingNumber" content="3453291231"/>
  <link itemprop="trackingUrl" href="http://fedex.com/track/3453291231"/>
  <div itemprop="potentialAction" itemscope itemtype="http://schema.org/TrackAction">
    <link itemprop="url" href="http://fedex.com/track/3453291231"/>
  </div>
  <div itemprop="hasDeliveryMethod" itemscope itemtype="http://schema.org/ParcelService">
    <meta itemprop="name" content="http://schema.org/ParcelService"/>
  </div>
  <div itemprop="partOfOrder" itemscope itemtype="http://schema.org/Order">
    <meta itemprop="orderNumber" content="176057"/>
    <div itemprop="merchant" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Bob Dole"/>
      <link itemprop="sameAs" href="http://www.freebase.com/m/0fhkx"/>
    </div>
    <link itemprop="orderStatus" href="http://schema.org/OrderInTransit"/>
  </div>
</div>

測試標記

您可以使用電子郵件標記測試工具驗證標記。貼上標記程式碼,然後按一下「驗證」按鈕掃描內容,並取得錯誤報表。

規格

下表列出了此類型所有可用的屬性:

屬性 類型 說明
deliveryAddress PostalAddress 必填)目標位址。
送貨地址.名稱 文字 郵寄地址名稱。
送貨地址.街道地址 文字 必填)街道地址。例如,1600 Amphitheatre Pkwy。
送貨地址.地址位置 文字 必填)位置。例如,山景城。
送貨地址.地址區域 文字 必填)該區域。例如,CA。
送貨地址.地址國家/地區 文字或國家/地區 必填)國。例如,美國。您也可以提供兩位字母的 ISO 3166-1 alpha-2 國家代碼。
送貨地址.郵遞區號 文字 必填)郵遞區號。例如 94043。
originAddress PostalAddress 發貨人地址。
originAddress.name 文字 郵寄地址名稱。
originAddress.streetAddress 文字 街道地址。例如,1600 Amphitheatre Pkwy。
originAddress.addressLocality 文字 縣市。例如,山景城。
originAddress.addressRegion 文字 地區。例如,CA。
originAddress.addressCountry 文字或國家/地區 這個國家。例如,美國。您也可以提供兩位字母的 ISO 3166-1 alpha-2 國家代碼。
originAddress.郵遞區號 文字 郵遞區號。例如 94043。
expectedArrivalFrom DateTime 包裹預計最早到達日期。
expectedArrivalUntil DateTime 必填)包裹預計最晚抵達日期。
電信業者 機構組織 必填)負責包裹遞送的一方。也接受字串(例如“FedEx”)。
運營商.名稱 文字 必填)組織名稱。
運營商.網址 網址 組織機構網址。
itemShipped 產品預訂 必填)本次出貨所包含的產品。要表示數量,要么適當地重複產品,要么不要使用此屬性,而是使用 partOfOrder 來表示包含哪些產品。也接受物件陣列。
item 已出貨。名稱 文字 必填)產品名稱。
item 已出貨。url 網址 推薦用於確認卡片/搜尋答案)產品網址,通常是商家網站上的產品登陸頁面。
件已出貨。圖片 網址 推薦用於確認卡片/搜尋答案)產品圖片的 URL,通常是商家網站上的圖片。
件已出貨。sku 文字 建議用於確認卡片/搜尋答案)庫存單位 (SKU),即商家對產品或服務的特定標識符,或報價所指的產品。
商品已出貨。描述 文字 產品簡介。
商品已出貨。品牌 品牌 與該產品相關的品牌。
itemShipped.brand.名稱 文字 品牌名稱。
itemShipped.color 文字 產品的顏色。
trackingNumber 文字 推薦用於確認卡片/搜尋答案)發貨人追蹤號碼。
trackingUrl 網址 推薦用於確認卡片/搜尋答案)可追蹤包裹的網頁。
hasDeliveryMethod DeliveryMethod 配送方式。
deliveryStatus DeliveryEvent 包裹在運輸的每個階段(從發貨到最終交付)都會添加新的條目。特別適用於自提式配送(例如店內自提、置物櫃自提)。
partOfOrder 訂購 必填)待出貨訂單的詳細資料。如果無法透過 itemShipped 表示運送的產品詳細資料 (例如運送數量),請改用這個 Order 表示產品。
訂單部分.訂單編號 文字 必填)交易的商家特定識別碼。
訂單部分.商家 OrganizationPerson required)接受訂單的一方(例如 Amazon.com 是許多賣家的商家)。也接受字串(例如“鮑勃·多爾”)。
partOfOrder.merchant.名稱 文字 必填)組織名稱。
partOfOrder.merchant.sameAs 網址 商家的 Freebase URL。
partOfOrder.orderStatus OrderStatus 建議用於確認卡片/搜尋答案)訂單的當前狀態。