包裹投递

使用此模板描述包裹配送状态。

使用场景

基本包裹配送

包裹配送的最小示例

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 文字 必需 )地点。例如,Mountain View。
deliveryAddress.addressRegion 文字 必需 )区域。例如,CA。
deliveryAddress.addressCountry 文字或国家/地区 必需 )国家/地区。例如,USA。您还可以提供由 2 个字母组成的 ISO 3166-1 alpha-2 国家/地区代码。
deliveryAddress.postalCode 文字 必需 )邮政编码。例如,94043。
originAddress PostalAddress 发货人的地址。
originAddress.name 文字 PostalAddress 的名称。
originAddress.streetAddress 文字 街道地址。例如,1600 Amphitheatre Pkwy。
originAddress.addressLocality 文字 地点。例如,Mountain View。
originAddress.addressRegion 文字 区域。例如,CA。
originAddress.addressCountry 文字或国家/地区 国家/地区。例如,USA。您还可以提供由 2 个字母组成的 ISO 3166-1 alpha-2 国家/地区代码。
originAddress.postalCode 文字 邮政编码。例如,94043。
expectedArrivalFrom DateTime 包裹预计送达的最早日期。
expectedArrivalUntil DateTime 必需 )包裹预计送达的最晚日期。
carrier 组织 必需 )负责包裹配送的一方。还接受字符串(例如“FedEx”)。
carrier.name 文字 必需 )组织的名称。
carrier.url 网址 组织的网址。
itemShipped 商品预订 必需 )此批货物中包含的商品。如需表示数量,请适当重复商品,或者不使用此属性,而是使用 partOfOrder 来表示包含哪些商品。还接受对象数组。
itemShipped.name 文字 必需 )商品的名称。
itemShipped.url 网址 建议用于确认卡片/搜索答案 )商品的网址,通常是商家网站上的商品着陆页。
itemShipped.image 网址 建议用于确认卡片/搜索答案 )商品图片的网址,通常是商家网站上的图片。
itemShipped.sku 文字 建议用于确认卡片/搜索答案 )库存单元 (SKU),即商品或服务的商家专属标识符,或优惠所指的商品。
itemShipped.description 文字 商品的简短说明。
itemShipped.brand 品牌 与商品相关联的品牌。
itemShipped.brand.name 文字 品牌的名称。
itemShipped.color 文字 商品的颜色。
trackingNumber 文字 建议用于确认卡片/搜索答案 )发货人跟踪编号。
trackingUrl 网址 建议用于确认卡片/搜索答案 )可跟踪包裹的网页。
hasDeliveryMethod DeliveryMethod 配送时使用的方法。
deliveryStatus DeliveryEvent 随着包裹经过旅程的每个阶段(从发货到最终送达),系统会添加新条目。对于自提式配送(例如店内自提、储物柜自提)尤其有用。
partOfOrder 下单 必需 )正在配送的订单的详细信息。当无法通过 itemShipped 表示货物中包含的商品的详细信息(例如配送数量)时,请改用此订单来表示商品。
partOfOrder.orderNumber 文字 必需 )交易的商家专属标识符。
partOfOrder.merchant 组织个人 必需 )接受订单的一方(例如,Amazon.com 是许多卖家的商家)。还接受字符串(例如“Bob Dole”)。
partOfOrder.merchant.name 文字 必需 )组织的名称。
partOfOrder.merchant.sameAs 网址 商家的 Freebase 网址。
partOfOrder.orderStatus OrderStatus 建议用于确认卡片/搜索答案 )订单的当前状态。