包裹投递

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

使用场景

基本包裹配送

包裹递送的最小示例:

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 文本或国家/地区 必需属性)国家/地区。例如,美国。您也可以提供由 2 个字母表示的 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 文本或国家/地区 国家/地区。例如,美国。您也可以提供由 2 个字母表示的 ISO 3166-1 alpha-2 国家/地区代码。
originAddress.邮政编码 文本 邮政编码。例如 94043。
expectedArrivalFrom DateTime 包裹预计最早到达日期。
expectedArrivalUntil DateTime 必填)包裹预计最晚到达日期。
运营商 组织 必填)负责包裹递送的一方。也接受字符串(例如“FedEx”)。
运营商.名称 文本 必填)组织名称。
运营商.网址 网址 组织机构网址。
itemShipped 产品预订 必填)本次发货包含的产品。要表示数量,要么适当地重复产品,要么不要使用此属性,而是使用 partOfOrder 来表示包含哪些产品。还接受对象数组。
item 已发货。名称 文本 必填)产品名称。
item 已发货。url 网址 推荐用于确认卡/搜索答案)产品网址,通常是商家网站上的产品着陆页。
件已发货。图片 网址 推荐用于确认卡/搜索答案)产品图片的 网址,通常是商家网站上的图片。
件已发货。sku 文本 推荐用于确认卡/搜索答案)库存单位 (SKU),即商家对产品或服务的特定标识符,或报价所指的产品。
商品已发货。描述 文本 产品简介。
商品已发货。品牌 品牌 与该产品相关的品牌。
itemShipped.brand.名称 文本 品牌名称。
itemShipped.color 文本 产品的颜色。
trackingNumber 文本 推荐用于确认卡/搜索答案)发货人跟踪号码。
trackingUrl 网址 推荐用于确认卡/搜索答案)可跟踪包裹的网页。
hasDeliveryMethod DeliveryMethod 配送方式。
deliveryStatus DeliveryEvent 包裹在运输的每个阶段(从发货到最终交付)都会添加新的条目。特别适用于自提式配送(例如店内自提、储物柜自提)。
partOfOrder 下单 必填)待发货订单的详细信息。当无法通过 itemShipped 表达发货中包含的产品的详细信息(例如发货数量)时,请使用此订单来表达产品。
订单部分.订单号 文本 必填)交易的商户特定标识符。
订单部分.商家 OrganizationPerson 必需)接受订单的一方(例如,Amazon.com 是许多卖家的商家)。也接受字符串(例如“鲍勃·多尔”)。
partOfOrder.merchant.名称 文本 必填)组织名称。
partOfOrder.merchant.sameAs 网址 商家的 Freebase 网址。
partOfOrder.orderStatus OrderStatus (建议用于确认卡片/Google 搜索答案)订单的当前状态。