Skip to main content

Return and shipping policy markup for online stores: JSON-LD examples

Where hasMerchantReturnPolicy and hasShippingService go in Google's docs, which properties are required, and what 15 live product pages publish today

Updated 6 min readMarkdown

A shopper asks an AI assistant, "which of these has free returns?" or "will this arrive before Friday?" The assistant can only answer from what it can read on your pages. If your shipping and return terms are only in a paragraph on a policy page, or in an image, it may guess or skip your store.

Google has a documented way to state both in structured data. This guide shows where the markup goes, which properties are required, and working JSON-LD you can adapt. I also checked what 15 live product pages from well-known Shopify stores publish today, so you can see how rare it is.

What I found on 15 live product pages

On December 1, 2026 I took the first product listed in each store's public /products.json for 27 well-known Shopify-style direct-to-consumer brands. 17 returned a product page, and 15 of those had Product JSON-LD my parser could read. For those 15 I looked for return and shipping markup anywhere in the page's JSON-LD:

Markup found in the page's JSON-LD Stores (of 15)
Product with an availability value 15
Return policy (hasMerchantReturnPolicy) 3
Shipping (shippingDetails or hasShippingService) 3
GTIN 6
Review rating (aggregateRating) 4

The three with both return and shipping markup were Stanley, Olaplex and Outdoor Voices. The other twelve had neither.

Limits: it's one product page per store, one run, one machine. A store could publish policy markup on a policies page that I didn't check. Ten of the 27 either had no public product feed or returned an error, so they're not counted. Treat this as a direction, not a census. It's in line with an October 2026 assessment by the agency Craftberry, which reported shipping information in structured data on 1 of 31 Shopify client stores and return policy on 2.

Where the markup goes

Google documents two levels for both policies.

  • Store level. A standard policy that applies to most or all of your products. For returns, nest MerchantReturnPolicy under your Organization (or OnlineStore) using hasMerchantReturnPolicy. For shipping, nest ShippingService under Organization using hasShippingService.
  • Product level. An override for specific products, nested under the Offer inside your Product markup. Google says offer-level return policies support a more limited set of properties, and recommends the store-level policy as your default.

Google also notes that if you have a Merchant Center account and your policies change often, you can configure return policies there instead of keeping markup up to date.

Return policy: required properties

Google's MerchantReturnPolicy documentation gives two ways to meet the requirement.

  • Option A: applicableCountry (two-letter ISO 3166-1 code, up to 50 countries) and returnPolicyCategory.
  • Option B: merchantReturnLink, a URL to a page describing your policy.

returnPolicyCategory takes one of three values: MerchantReturnFiniteReturnWindow, MerchantReturnUnlimitedWindow or MerchantReturnNotPermitted. If you use the finite window, merchantReturnDays is required. Recommended properties include returnFees, returnMethod and refundType.

Here's a store-level example for a US store with a 30-day window, free mail returns and a full refund:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "OnlineStore",
  "name": "Example Store",
  "url": "https://www.example.com",
  "hasMerchantReturnPolicy": {
    "@type": "MerchantReturnPolicy",
    "applicableCountry": "US",
    "returnPolicyCountry": "US",
    "returnPolicyCategory": "https://schema.org/MerchantReturnFiniteReturnWindow",
    "merchantReturnDays": 30,
    "returnMethod": "https://schema.org/ReturnByMail",
    "returnFees": "https://schema.org/FreeReturn",
    "refundType": "https://schema.org/FullRefund",
    "itemCondition": "https://schema.org/NewCondition"
  }
}
</script>

Rules worth knowing, straight from Google's page:

  • If returnFees is FreeReturn or ReturnFeesCustomerResponsibility, don't include returnShippingFeesAmount.
  • If returnFees is ReturnShippingFees, include a non-zero returnShippingFeesAmount as a MonetaryAmount.
  • merchantReturnDays counts from the delivery date.

Shipping policy: required properties

In Google's ShippingService documentation, the one required property is shippingConditions. Each ShippingConditions block says what applies for a destination, order value, weight or size: the rate, the transit time, or doesNotShip. If more than one block applies to a product, Google says it uses the lowest shipping cost, and the fastest speed if costs tie.

Here's a store that ships free over $50 in the US and charges $4.99 below that. Both tiers deliver in 2 to 5 business days:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "OnlineStore",
  "name": "Example Store",
  "url": "https://www.example.com",
  "hasShippingService": {
    "@type": "ShippingService",
    "name": "Standard shipping",
    "fulfillmentType": "https://schema.org/FulfillmentTypeDelivery",
    "handlingTime": {
      "@type": "ServicePeriod",
      "duration": { "@type": "QuantitativeValue", "minValue": 0, "maxValue": 1, "unitCode": "DAY" },
      "businessDays": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"]
    },
    "shippingConditions": [
      {
        "@type": "ShippingConditions",
        "shippingDestination": { "@type": "DefinedRegion", "addressCountry": "US" },
        "orderValue": { "@type": "MonetaryAmount", "minValue": 0, "maxValue": 49.99, "currency": "USD" },
        "shippingRate": { "@type": "MonetaryAmount", "value": 4.99, "currency": "USD" },
        "transitTime": {
          "@type": "ServicePeriod",
          "duration": { "@type": "QuantitativeValue", "minValue": 2, "maxValue": 5, "unitCode": "DAY" },
          "businessDays": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"]
        }
      },
      {
        "@type": "ShippingConditions",
        "shippingDestination": { "@type": "DefinedRegion", "addressCountry": "US" },
        "orderValue": { "@type": "MonetaryAmount", "minValue": 50, "currency": "USD" },
        "shippingRate": { "@type": "MonetaryAmount", "value": 0, "currency": "USD" },
        "transitTime": {
          "@type": "ServicePeriod",
          "duration": { "@type": "QuantitativeValue", "minValue": 2, "maxValue": 5, "unitCode": "DAY" },
          "businessDays": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"]
        }
      }
    ]
  }
}
</script>

I ran both blocks through a JSON parser to confirm they're valid, but run your own through Google's Rich Results Test before you ship. I adapted these from the structure in Google's examples and didn't submit them to Google.

Product-level override

If one product has different terms, such as a final-sale item or a heavy item with its own rate, put the override inside that product's Offer. This is the shape from Google's merchant listing documentation:

"offers": {
  "@type": "Offer",
  "price": 39.99,
  "priceCurrency": "USD",
  "availability": "https://schema.org/InStock",
  "shippingDetails": {
    "@type": "OfferShippingDetails",
    "shippingRate": { "@type": "MonetaryAmount", "value": 3.49, "currency": "USD" },
    "shippingDestination": { "@type": "DefinedRegion", "addressCountry": "US" },
    "deliveryTime": {
      "@type": "ShippingDeliveryTime",
      "handlingTime": { "@type": "QuantitativeValue", "minValue": 0, "maxValue": 1, "unitCode": "DAY" },
      "transitTime": { "@type": "QuantitativeValue", "minValue": 1, "maxValue": 5, "unitCode": "DAY" }
    }
  }
}

To point a product's offer at your store-level return policy without repeating it, Google documents referencing it by @id: "hasMerchantReturnPolicy": { "@id": "https://example.com/returns#policy" }. That only works if the policy is defined with that @id on the page it points to.

Make sure the markup matches the page

Google's structured data guidelines say not to mark up content that isn't visible to readers of the page. If your markup says 30 days and your returns page says 14, you've created a mismatch an AI assistant can quote either way. Update both when the policy changes. Also confirm the page with the markup isn't blocked by robots.txt or a login.

A five-minute check

  1. Open your homepage or policy page and view source. Search for hasMerchantReturnPolicy and hasShippingService.
  2. Open one product page and search for shippingDetails.
  3. Paste the URL into the Rich Results Test and read any warnings.

If neither term appears, your policies are text only. On Shopify and WooCommerce, theme settings or plugins may or may not add this markup, so check the rendered source rather than assuming. The page on linking shipping and returns policies from product pages covers the related problem of policy pages that agents can't find.

About the author

  • SubstrateLayer checks what AI shopping agents and AI search can actually read on your store: crawler access, product data, prices and policy links. Free 2-page preview at substratelayer.com.

No comments yet. Be the first to comment.