Setting the priceValidUntil schema field for Shopify
Published: January 13, 2026
As Google moves more and more towards using structured data instead of a product feed, we wanted to roll out a small change to the priceValidUntil field.
In the past, JSON-LD for SEO always set the priceValidUntil field to be 90 days from today. Now you'll have the ability to set the number of days from today the price is valid until directly in the app.
To be clear, you are not required to change anything. The app still defaults to 90 days from today, but now you have the option to override that field if you wish.
For example, if we look at the page on January 1st, the priceValidUntil field would show April 1. Since this is a rolling number, if we look again on February 1st, the priceValidUntil would show May 2.
Defaulting to 90 days is a good enough solution for most stores. Yet it didn't provide the flexibility to stores who change prices more frequently.
With this change, you can set the number of days to be anything you want it to be.
For those who change prices frequently, I recommend setting this field to one of the following:
- 0 = Price is valid for today only
- 1 = Price is valid until tomorrow
- 2 = Price is valid until the day after tomorrow
A few things to note:
- If the field is blank in the app, the
priceValidUntilfield will default to 90 days. -
You cannot set a specific date. We only allow for the number of days from today. Google doesn't support dates that have passed so this is for your protection to ensure you qualify for Rich Results at all times.
Option 1: Set the field for all products
In JSON-LD for SEO, you can set the number of days you want your prices valid for from today across all products.
To change the priceValidUntil field in JSON-LD for SEO for all products, go to Products from the top menu and select Price Valid Until.

Option 2: Setting the priceValidUntil per product with metafields
JSON-LD for SEO uses Shopify metafields to configure the priceValidUntil field. Metafields are a common way to store extra data about things that Shopify hasn’t built a user interface for yet.
Setting the field with metafields would override whatever you have set in the app. This can be handy if you want a general policy for all products and then a different one for specific products.
Create a new metafield
Add the following as a Product level metafield.
namespace: jsonld
key: price_valid_until_days
type: Integer
We'll use Shopify's native metafield editor for our example but you can use your metafield tool of choice.
- Select Settings and go to Metafields and metaobjects
- Select Products
- Select Add a definition
- Enter whatever name you wish, I used Price valid until in days.
- Click on the light grey text to change the namespace and key. This is required for the data to work correctly.
- Change the namespace and key to match the following text exactly. You can copy and paste if needed.
jsonld.price_valid_until_days - Change the type to use Integer.
- Select Save
Set your value
- Now go to the product you wish to use a custom
priceValidUntilfield in the Shopify Admin. Scroll down until you see Metafields and locate the metafield we just created. In the box, enter the number of days of your choosing.
- Select Save at the top of the page.
Test the new data
Once that’s done you can test the product in Rich Results Testing Tool.
Run the product URL through the testing tool. Open up the Product Snippets and look for our data with #json-ld-for-seo appended to the @id. Once you found our data, search for priceValidUntil and the date should match the number of days from today you entered.
From here, you'll just need to wait for Google to recrawl and reanalyze the page. Once that happens, you should be good to go.
Reverting to the default priceValidUntil setting
If you need to revert to the default priceValidUntil setting of 90 days from today, simply delete the number you set in the app or the metafield you created.
Not a JSON-LD for SEO customer but want the ability to change the priceValidUntil field, contact me for a free structured data audit or install JSON-LD for SEO now.
JSON-LD for SEO
Get more organic search traffic from Google without having to fight for better rankings by utilizing search enhancements called Rich Results.
