包裹運送

使用這個範本說明包裹遞送狀態。

用途

基本包裹遞送

包裹遞送服務的簡單範例

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 (必要) 目的地地址。
deliveryAddress.name 文字 PostalAddress 的名稱。
deliveryAddress.streetAddress 文字 (必要) 街道地址。例如:1600 Amphitheatre Pkwy。
deliveryAddress.addressLocality 文字 (必要) 所在地。例如山景城。
deliveryAddress.addressRegion 文字 (必填) 區域。例如 CA。
deliveryAddress.addressCountry 文字或國家/地區 (必填) 國家/地區。例如「美國」。你也可以提供由兩個英文字母組成的 ISO 3166-1 alpha-2 國家/地區代碼。
deliveryAddress.postalCode 文字 (必填) 郵遞區號。例如 94043。
originAddress PostalAddress 寄件者地址。
originAddress.name 文字 PostalAddress 的名稱。
originAddress.streetAddress 文字 街道地址。例如:1600 Amphitheatre Pkwy。
originAddress.addressLocality 文字 縣市。例如山景城。
originAddress.addressRegion 文字 地區。例如 CA。
originAddress.addressCountry 文字或國家/地區 國家/地區。例如「美國」。你也可以提供由兩個英文字母組成的 ISO 3166-1 alpha-2 國家/地區代碼。
originAddress.postalCode 文字 郵遞區號。例如 94043。
expectedArrivalFrom DateTime 包裹預計送達的最早日期。
expectedArrivalUntil DateTime (必要) 包裹預計送達的最晚日期。
電信業者 機構組織 (必填) 負責包裹運送的單位。也接受字串 (例如「FedEx」)。
carrier.name 文字 (必填) 機構名稱。
carrier.url 網址 機構的網址。
itemShipped 產品預訂 (必填) 這批貨運送的產品。如要表示數量,請適當重複產品,或不要使用這個屬性,改用 partOfOrder 來表示包含哪些產品。也接受物件陣列。
itemShipped.name 文字 (必填) 產品名稱。
itemShipped.url 網址 (建議用於確認資訊卡/搜尋答案) 產品網址,通常是商家網站上的產品到達網頁。
itemShipped.image 網址 (建議用於確認資訊卡/搜尋答案) 產品圖片的網址,通常是商家網站上的圖片。
itemShipped.sku 文字 (建議用於確認資訊卡/搜尋答案) 存貨單位 (SKU),也就是商家專屬的產品或服務 ID,或是優惠所指的產品。
itemShipped.description 文字 產品的簡短說明。
itemShipped.brand 品牌 與產品相關的品牌。
itemShipped.brand.name 文字 品牌名稱。
itemShipped.color 文字 產品顏色。
trackingNumber 文字 (建議用於確認卡片/搜尋答案) 貨運公司追蹤號碼。
trackingUrl 網址 (建議用於確認函/搜尋答案) 可追蹤包裹的網頁。
hasDeliveryMethod DeliveryMethod 放送方式。
deliveryStatus DeliveryEvent 包裹在運送過程中,每經過一個階段 (從出貨到最終送達),系統就會新增一筆記錄。特別適合自取式配送 (例如店內取貨、從儲物櫃取貨)。
partOfOrder 訂購 (必填) 出貨訂單的詳細資料。如果無法透過 itemShipped 傳達運送產品的詳細資料 (例如運送數量),請改用這個 Order 傳達產品資訊。
partOfOrder.orderNumber 文字 (必填) 交易的商家專屬 ID。
partOfOrder.merchant OrganizationPerson (必填) 負責處理訂單的當事人 (例如 Amazon.com 是許多賣家的商家)。也接受字串 (例如「Bob Dole」)。
partOfOrder.merchant.name 文字 (必填) 機構名稱。
partOfOrder.merchant.sameAs 網址 商家的 Freebase 網址。
partOfOrder.orderStatus OrderStatus (建議用於確認資訊卡/搜尋答案) 訂單的目前狀態。