The REST Admin API is a legacy API as of October 1, 2024. All apps and integrations should be built with the GraphQL Admin API. For details and migration steps, visit our migration guide.
Requires
products
access scope.
Important
Listing, creating, updating, and deleting products is deprecated as of REST API 2024-04. For more information, refer to the guide to the new product model.
The Product resource lets you update and create products in a merchant's store. You can use product variants with the Product resource to create or update different versions of the same product. You can also add or update product images.
You can add products to collections with the CustomCollection resource and the SmartCollection resource.
Was this section helpful?
Properties
A description of the product. Supports HTML formatting.
The date and time (ISO 8601 format) when the product was created.
A unique human-friendly string for the product. Automatically generated from the product's
title
. Used by the Liquid templating language to refer to objects.An unsigned 64-bit integer that's used as a unique identifier for the product. Each
id
is unique across the Shopify system. No two products will have the same id
, even if they're from different shops.A list of product image objects, each one representing an image associated with the product.
The custom product properties. For example, Size, Color, and Material. Each product can have up to 3 options and each option value can be up to 255 characters. Product variants are made of up combinations of option values.
Options cannot be created without values. To create new options, a variant with an associated option value also needs to be created.
A categorization for the product used for filtering and searching products.
The date and time (ISO 8601 format) when the product was
published. Can be set to
null
to unpublish the product from the Online Store channel.published_scope
string
Whether the product is published to the Point of Sale channel. Valid values:
A string of comma-separated tags that are used for filtering and search.
A product can have up to 250 tags. Each tag can have up to 255 characters.
The suffix of the Liquid template used for the product page. If this property is specified, then the product page uses a template called "product.suffix.liquid", where "suffix" is the value of this property. If this property is
""
or null
, then the product page uses the default template "product.liquid". (default: null
)Was this section helpful?
Create a new product
api_version
string
required
Was this section helpful?
Request body
Product resource
Was this section helpful?
Retrieve a list of products.
api_version
string
required
collection_id
Return products by product collection ID.
created_at_max
Return products created before a specified date. (format: 2014-04-25T16:15:47-04:00)
created_at_min
Return products created after a specified date. (format: 2014-04-25T16:15:47-04:00)
fields
Return only certain fields specified by a comma-separated list of field names.
handle
Return only products specified by a comma-separated list of product handles.
ids
Return only products specified by a comma-separated list of product IDs.
limit
≤ 250
default 50
Return up to this many results per page.
presentment_currencies
Return presentment prices in only certain currencies, specified by a comma-separated list of ISO 4217 currency codes.
product_type
Return products by product type.
published_at_max
Return products published before a specified date. (format: 2014-04-25T16:15:47-04:00)
published_at_min
Return products published after a specified date. (format: 2014-04-25T16:15:47-04:00)
Was this section helpful?
Query parameters
Return only products specified by a comma-separated list of product IDs.
Was this section helpful?
Retrieve a single product.
api_version
string
required
product_id
string
required
fields
A comma-separated list of fields to include in the response.
Was this section helpful?
Path parameters
string
required
Was this section helpful?
Retrieve a count of products.
api_version
string
required
collection_id
Return products by product collection ID.
created_at_max
Return products created before a specified date. (format: 2014-04-25T16:15:47-04:00)
created_at_min
Return products created after a specified date. (format: 2014-04-25T16:15:47-04:00)
product_type
Return products by product type.
published_at_max
Return products published before a specified date. (format: 2014-04-25T16:15:47-04:00)
published_at_min
Return products published after a specified date. (format: 2014-04-25T16:15:47-04:00)
published_status
default any
Return products by their published status.
updated_at_max
Return products last updated before a specified date. (format: 2014-04-25T16:15:47-04:00)
updated_at_min
Return products last updated after a specified date. (format: 2014-04-25T16:15:47-04:00)
vendor
Return products by product vendor.
Was this section helpful?
Was this section helpful?
Update a product
api_version
string
required
product_id
string
required
Was this section helpful?
Path parameters
string
required
Request body
Product resource
Was this section helpful?
Deletes a product.
api_version
string
required
product_id
string
required
Was this section helpful?
Path parameters
string
required
Was this section helpful?