Mark up product availability

Availability in Product markup must reflect real inventory. Use schema.org values such as InStock, OutOfStock, PreOrder, BackOrder and SoldOut, and keep the visible page identical. Generate markup from the commerce system, not from a static template, and revalidate after integrations change.

highIn codeimpact effort

Why this matters

InStock means in stock, at crawl time.

Get the full breakdown

The extended brief explains when this works, when it does not, and the trade-offs. Join the waitlist and it unlocks for every tip when sign-in opens; MCP access is the paid part.

Join the waitlist

Before you start

  • Live inventory data at render time
  • Product template access

How to apply it

  1. Map inventory states to schema values

    Define which inventory state maps to InStock, OutOfStock, BackOrder, PreOrder or SoldOut. Document the mapping next to the product template.

    Check: The mapping covers every inventory state the commerce system can return.

  2. Generate markup at render time

    Emit offers.availability from the same inventory value used for the buy box. Do not cache markup across inventory changes.

    Check: The JSON-LD availability matches the buy box state for ten sampled products.

  3. Monitor and revalidate

    Check the Merchant listings report weekly for availability or price errors, and revalidate after changing the inventory integration.

    Check: The report shows no availability or price errors for current items.

Get the prompt for your agent

A ready-to-paste prompt for your agent that implements this tip and verifies the result in your repo.

Join the waitlist

Source: seo-mcp playbook · curated entry · report an error

Framework notes

shopify

`variant.available` and `variant.inventory_quantity` drive the buy box; use the same values for `offers.availability` in the product section.

nextjs-app

Fetch inventory with `cache: 'no-store'` or a short revalidation window on the product route so markup does not outlive the stock state.

Official references

Let your agent apply this + 161 more tips.

Pre-order — $19