包裹递送

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

使用场景

基本包裹递送

包裹配送的极简示例

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 文字 邮政地址的名称。
deliveryAddress.streetAddress 文字 必填)街道地址。例如,1600 Amphitheatre Pkwy.
deliveryAddress.addressLocality 文字 必需)市行政区。例如山景城。
deliveryAddress.addressRegion 文字 必需)地区。例如 CA。
deliveryAddress.addressCountry 文本或国家/地区 必需)国家/地区。例如,美国。您还可以提供由两个字母组成的 ISO 3166-1 alpha-2 国家/地区代码。
deliveryAddress.postalCode 文字 必填)邮政编码。例如 94043。
originAddress PostalAddress 发货人地址。
originAddress.name 文字 邮政地址的名称。
originAddress.街道地址 文字 街道地址。例如,1600 Amphitheatre Pkwy.
originAddress.addressLocality 文字 地点。例如山景城。
originAddress.regionRegion 文字 地区。例如 CA。
originAddress.addressCountry 文本或国家/地区 国家/地区。例如,美国。您还可以提供由两个字母组成的 ISO 3166-1 alpha-2 国家/地区代码。
originAddress.postalCode 文字 邮政编码。例如 94043。
预计送达日期 DateTime 包裹预计到达的最早日期。
预计送达时间:截至 DateTime 必需)包裹预计到达的最晚日期。
运营商 组织 必需)负责包裹递送的一方。也接受字符串(例如“FedEx”)。
carrier.name 文字 必填)组织名称。
carrier.url 网址 组织的网址。
已发货 产品预订 必需)本运单包含的商品。为了表示数量,请适当地重复商品,或者不要使用该属性,而改用 partOfOrder 来表达所包含的商品。也接受对象数组。
itemShipped.名称 文字 必需)产品名称。
itemShipped.网址 网址 建议用于确认卡片/搜索答案)商品的网址,通常是商家网站上的商品着陆页。
itemShipped. 网址 建议用于确认卡片/搜索答案)商品图片的网址,通常为商家网站上的图片。
itemShipped. SKU 文字 (建议用于确认卡/搜索答案)库存单元 (SKU),即特定于产品或服务的产品或服务标识符,或优惠所提及的产品。
itemShipped(商品已发货) 文字 商品的简短说明。
itemShipped.商品 品牌 与商品相关联的品牌。
itemShipped.brand.名称 文字 品牌名称。
itemShipped.颜色 文字 商品的颜色。
跟踪编号 文字 建议用于确认卡/搜索答案)发货跟踪编号。
跟踪网址 网址 推荐用于确认卡/搜索答案)可用于跟踪包裹的网页。
hasDeliveryMethod 投放方式 用于交付的方法。
deliveryStatus 投放事件 包裹在经过其航程中的每一个环节(从发货到最终送达)时都会新增条目。对于自提型送货服务(例如,在店内,从储物柜中取货)尤为有用。
部分订单 排序 必需)订单发货的详细信息。如果运单中包含的商品的详细信息无法通过 itemShipped (例如已发货的数量)来表示,请改用此订单来表达商品。
partOfOrder.orderNumber 文字 必需)交易的商家专用标识符。
partOfOrder.merchant 组织个人 必需)接受订单的一方(例如,Amazon.com 是许多卖家的商家)。也接受字符串(例如“Bob Dole”)。
partOfOrder.merchant.name 文字 必填)组织名称。
partOfOrder.merchant.sameAs 网址 商家的 Freebase 网址。
partOfOrder.orderStatus 订单状态 建议用于确认卡片/搜索答案)订单的当前状态。