Product
Requires access scope.
The Product
object lets you manage products in a merchant’s store.
Products are the goods and services that merchants offer to customers. They can include various details such as title, description, price, images, and options such as size or color. You can use product variants to create or update different versions of the same product. You can also add or update product media. Products can be organized by grouping them into a collection.
Learn more about working with Shopify's product model, including limitations and considerations.
Anchor to Fields and connectionsFields and connections
- Anchor to availablePublicationsCountavailable•Count
Publications Count The number of publications that a resource is published to, without feedback errors.
- Anchor to bundleComponentsbundle•Product
Components Bundle Component Connection! non-null A list of components that are associated with a product in a bundle.
- Anchor to categorycategory•Taxonomy
Category The category of a product from Shopify's Standard Product Taxonomy.
- Anchor to collectionscollections•Collection
Connection! non-null A list of collections that include the product.
- Anchor to combinedListingcombined•Combined
Listing Listing A special product type that combines separate products from a store into a single product listing. Combined listings are connected by a shared option, such as color, model, or dimension.
- Anchor to combinedListingRolecombined•Combined
Listing Role Listings Role The role of the product in a combined listing.
If
null
, then the product isn't part of any combined listing.- Anchor to compareAtPriceRangecompare•Product
At Price Range Compare At Price Range The compare-at price range of the product in the shop's default currency.
- Anchor to contextualPricingcontextual•Product
Pricing Contextual Pricing! non-null The pricing that applies to a customer in a specific context. For example, a price might vary depending on the customer's location. Only active markets are considered in the price resolution.
- Anchor to createdAtcreated•Date
At Time! non-null The date and time when the product was created.
- Anchor to defaultCursordefault•String!
Cursor non-null A default cursor that returns the single next record, sorted ascending by ID.
- Anchor to descriptiondescription•String!non-null
A single-line description of the product, with HTML tags removed.
- Anchor to descriptionHtmldescription•HTML!
Html non-null The description of the product, with HTML tags. For example, the description might include bold
<strong></strong>
and italic<i></i>
text.- Anchor to featuredMediafeatured•Media
Media The featured media associated with the product.
- Anchor to feedbackfeedback•Resource
Feedback The information that lets merchants know what steps they need to take to make sure that the app is set up correctly.
For example, if a merchant hasn't set up a product correctly in the app, then the feedback might include a message that says "You need to add a price to this product".
- Anchor to giftCardTemplateSuffixgift•String
Card Template Suffix The theme template that's used when customers view the gift card in a store.
- Anchor to handlehandle•String!non-null
A unique, human-readable string of the product's title. A handle can contain letters, hyphens (
-
), and numbers, but no spaces. The handle is used in the online store URL for the product.- Anchor to hasOnlyDefaultVarianthas•Boolean!
Only Default Variant non-null Whether the product has only a single variant with the default option and value.
- Anchor to hasOutOfStockVariantshas•Boolean!
Out Of Stock Variants non-null Whether the product has variants that are out of stock.
- Anchor to hasVariantsThatRequiresComponentshas•Boolean!
Variants That Requires Components non-null Whether at least one of the product variants requires bundle components.
Learn more about store eligibility for bundles.
- •ID!non-null
A globally-unique ID.
- Anchor to inCollectionin•Boolean!
Collection non-null Whether the product is in a specified collection.
- Anchor to isGiftCardis•Boolean!
Gift Card non-null Whether the product is a gift card.
- Anchor to legacyResourceIdlegacy•Unsigned
Resource Id Int64! non-null The ID of the corresponding resource in the REST Admin API.
- Anchor to mediaCountmedia•Count
Count The total count of media that's associated with a product.
- Anchor to metafieldmetafield•Metafield
A custom field, including its
namespace
andkey
, that's associated with a Shopify resource for the purposes of adding and storing additional information.- Anchor to metafieldsmetafields•Metafield
Connection! non-null A list of custom fields that a merchant associates with a Shopify resource.
- Anchor to onlineStorePreviewUrlonline•URL
Store Preview Url The preview URL for the online store.
- Anchor to onlineStoreUrlonline•URL
Store Url The product's URL on the online store. If
null
, then the product isn't published to the online store sales channel.- Anchor to optionsoptions•[Product
Option!]! non-null A list of product options. The limit is defined by the shop's resource limits for product options (
).
- Anchor to priceRangeV2price•Product
Range V2 Price Range V2! non-null The minimum and maximum prices of a product, expressed in decimal numbers. For example, if the product is priced between $10.00 and $50.00, then the price range is $10.00 - $50.00.
- Anchor to productTypeproduct•String!
Type non-null The product type that merchants define.
- Anchor to publishedAtpublished•Date
At Time The date and time when the product was published to the online store.
- Anchor to publishedInContextpublished•Boolean!
In Context non-null Whether the product is published for a customer only in a specified context. For example, a product might be published for a customer only in a specific location.
- Anchor to publishedOnCurrentPublicationpublished•Boolean!
On Current Publication non-null Whether the resource is published to the app's publication. For example, the resource might be published to the app's online store channel.
- Anchor to publishedOnPublicationpublished•Boolean!
On Publication non-null Whether the resource is published to a specified publication.
- Anchor to requiresSellingPlanrequires•Boolean!
Selling Plan non-null Whether the product can only be purchased with a selling plan. Products that are sold on subscription (
) can be updated only for online stores. If you update a product to be subscription-only (
), then the product is unpublished from all channels, except the online store.
- Anchor to resourcePublicationOnCurrentPublicationresource•Resource
Publication On Current Publication Publication V2 The resource that's either published or staged to be published to the publication.
- Anchor to resourcePublicationsresource•Resource
Publications Publication Connection! non-null The list of resources that are published to a publication.
- Anchor to resourcePublicationsCountresource•Count
Publications Count The number of publications that a resource is published to, without feedback errors.
- Anchor to resourcePublicationsV2resource•Resource
Publications V2 Publication V2Connection! non-null The list of resources that are either published or staged to be published to a publication.
- Anchor to restrictedForResourcerestricted•Restricted
For Resource For Resource Whether the merchant can make changes to the product when they edit the order associated with the product. For example, a merchant might be restricted from changing product details when they edit an order.
- Anchor to sellingPlanGroupsselling•Selling
Plan Groups Plan Group Connection! non-null A list of all selling plan groups that are associated with the product either directly, or through the product's variants.
- Anchor to sellingPlanGroupsCountselling•Count
Plan Groups Count A count of selling plan groups that are associated with the product.
- •SEO!non-null
The SEO title and description that are associated with a product.
- Anchor to statusstatus•Product
Status! non-null The product status, which controls visibility across all sales channels.
- •[String!]!non-null
A comma-separated list of searchable keywords that are associated with the product. For example, a merchant might apply the
sports
andsummer
tags to products that are associated with sportwear for summer.Updating
tags
overwrites any existing tags that were previously added to the product. To add new tags without overwriting existing tags, use themutation.
- Anchor to templateSuffixtemplate•String
Suffix The theme template that's used when customers view the product in a store.
- Anchor to titletitle•String!non-null
The name for the product that displays to customers. The title is used to construct the product's handle. For example, if a product is titled "Black Sunglasses", then the handle is
black-sunglasses
.- Anchor to totalInventorytotal•Int!
Inventory non-null The quantity of inventory that's in stock.
- Anchor to tracksInventorytracks•Boolean!
Inventory non-null Whether inventory tracking has been enabled for the product.
- Anchor to translationstranslations•[Translation!]!non-null
The published translations associated with the resource.
- Anchor to unpublishedPublicationsunpublished•Publication
Publications Connection! non-null The list of publications that the resource isn't published to.
- Anchor to updatedAtupdated•Date
At Time! non-null The date and time when the product was last modified. A product's
value can change for different reasons. For example, if an order is placed for a product that has inventory tracking set up, then the inventory adjustment is counted as an update.
- Anchor to variantsvariants•Product
Variant Connection! non-null A list of variants associated with the product. If querying a single product at the root, you can fetch up to 2000 variants.
- Anchor to variantsCountvariants•Count
Count The number of variants that are associated with the product.
- Anchor to vendorvendor•String!non-null
The name of the product's vendor.
Deprecated fields and connections
- Anchor to bodyHtmlbody•String
Html Deprecated - Anchor to customProductTypecustom•String
Product Type Deprecated - Anchor to descriptionPlainSummarydescription•String!
Plain Summary non-nullDeprecated - Anchor to featuredImagefeatured•Image
Image Deprecated - Anchor to imagesimages•Image
Connection! non-nullDeprecated - Anchor to metafieldDefinitionsmetafield•Metafield
Definitions Definition Connection! non-nullDeprecated - Anchor to priceRangeprice•Product
Range Price Range! non-nullDeprecated - Anchor to productCategoryproduct•Product
Category Category Deprecated - Anchor to productPublicationsproduct•Product
Publications Publication Connection! non-nullDeprecated - Anchor to publicationCountpublication•Int!
Count non-nullDeprecated - Anchor to publicationspublications•Product
Publication Connection! non-nullDeprecated - Anchor to publishedOnChannelpublished•Boolean!
On Channel non-nullDeprecated - Anchor to publishedOnCurrentChannelpublished•Boolean!
On Current Channel non-nullDeprecated - Anchor to sellingPlanGroupCountselling•Int!
Plan Group Count non-nullDeprecated - Anchor to standardizedProductTypestandardized•Standardized
Product Type Product Type Deprecated - Anchor to storefrontIdstorefront•Storefront
Id ID! non-nullDeprecated - Anchor to totalVariantstotal•Int!
Variants non-nullDeprecated - Anchor to unpublishedChannelsunpublished•Channel
Channels Connection! non-nullDeprecated
Anchor to QueriesQueries
- •query
Retrieves a product by its ID. A product is an item that a merchant can sell in their store.
Use the
product
query when you need to:- Access essential product data (for example, title, description, price, images, SEO metadata, and metafields).
- Build product detail pages and manage inventory.
- Handle international sales with localized pricing and content.
- Manage product variants and product options.
Learn more about working with Shopify's product model.
- •query
Return a product by an identifier.
- •query
Retrieves a list of products in a store. Products are the items that merchants can sell in their store.
Use the
products
query when you need to:- Build a browsing interface for a product catalog.
- Create product searching, sorting, and filtering experiences.
- Implement product recommendations.
- Sync product data with external systems.
The
products
query supports pagination to handle large product catalogs and saved searches for frequently used product queries.The
products
query returns products with their associated metadata, including:- Basic product information (for example, title, description, vendor, and type)
- Product options and product variants, with their prices and inventory
- Media attachments (for example, images and videos)
- SEO metadata
- Product categories and tags
- Product availability and publishing statuses
Learn more about working with Shopify's product model.
- •queryDeprecated
Anchor to MutationsMutations
- •mutation
Add, remove and update
s of a given Product.
s are comprised of multiple products to create a single listing. There are two kinds of products used in a
:
- Parent products
- Child products
The parent product is created with a
with a
of
. Once created, you can associate child products with the parent product using this mutation. Parent products represent the idea of a product (e.g. Shoe).
Child products represent a particular option value (or combination of option values) of a parent product. For instance, with your Shoe parent product, you may have several child products representing specific colors of the shoe (e.g. Shoe - Blue). You could also have child products representing more than a single option (e.g. Shoe - Blue/Canvas, Shoe - Blue/Leather, etc...).
The combined listing is the association of parent product to one or more child products.
Learn more about Combined Listings.
- Anchor to optionsAndValuesoptions•[Option
And Values And Value Input!] The ordered options and values to be used by the combined listing. Options and values will be reordered to match the order specified here.
- Anchor to parentProductIdparent•ID!
Product Id required The ID of the parent product.
- Anchor to productsAddedproducts•[Child
Added Product Relation Input!] The child products to add and their assigned options and option values.
- Anchor to productsEditedproducts•[Child
Edited Product Relation Input!] The child products to edit and their assigned options and option values.
- Anchor to productsRemovedIdsproducts•[ID!]
Removed Ids The IDs of products to be removed from the combined listing.
- Anchor to titletitle•String
The updated title for the combined listing.
Arguments
- Anchor to productproduct•Product
The parent product.
- Anchor to userErrorsuser•[Combined
Errors Listing Update User Error!]! non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Updates the fixed prices for all variants for a product on a price list. You can use the
mutation to set or remove a fixed price for all variants of a product associated with the price list.
- Anchor to priceListIdprice•ID!
List Id required The price list to update the prices for.
- Anchor to pricesToAddprices•[Price
To Add List Product Price Input!] A list of
that identifies which products to update the fixed prices for.
- Anchor to pricesToDeleteByProductIdsprices•[ID!]
To Delete By Product Ids A list of product IDs that identifies which products to remove the fixed prices for.
Arguments
- Anchor to priceListprice•Price
List List The price list for which the fixed prices were modified.
- Anchor to pricesToAddProductsprices•[Product!]
To Add Products The product for which the fixed prices were added.
- Anchor to pricesToDeleteProductsprices•[Product!]
To Delete Products The product for which the fixed prices were deleted.
- Anchor to userErrorsuser•[Price
Errors List Fixed Prices By Product Bulk Update User Error!]! non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Creates a product with attributes such as title, description, vendor, and media.
The
mutation helps you create many products at once, avoiding the tedious or time-consuming process of adding them one by one in the Shopify admin. Common examples include creating products for a new collection, launching a new product line, or adding seasonal products.
You can define product options and values, allowing you to create products with different variations like sizes or colors. You can also associate media files to your products, including images and videos.
The
mutation only supports creating a product with its initial product variant. To create multiple product variants for a single product and manage prices, use the
mutation.
NoteThe
mutation has a throttle that takes effect when a store has 50,000 product variants. After this threshold is reached, no more than 1,000 new product variants can be created per day.
After you create a product, you can make subsequent edits to the product using one of the following mutations:
: Used to publish the product and make it available to customers. The
mutation creates products in an unpublished state by default, so you must perform a separate operation to publish the product.
: Used to update a single product, such as changing the product's title, description, vendor, or associated media.
: Used to perform multiple operations on products, such as creating or modifying product options and variants.
Learn more about the product model and adding product data.
- Anchor to inputinput•Product
Input Deprecated - Anchor to mediamedia•[Create
Media Input!] The media to add to the product.
- Anchor to productproduct•Product
Create Input The attributes of the new product.
Arguments
- Anchor to productproduct•Product
The product object.
- Anchor to shopshop•Shop!non-null
The shop associated with the product.
- Anchor to userErrorsuser•[User
Errors Error!]! non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Duplicates a product.
If you need to duplicate a large product, such as one that has many variants that are active at several locations, you might encounter timeout errors.
To avoid these timeout errors, you can instead duplicate the product asynchronously.
In API version 2024-10 and higher, include
synchronous: false
argument in this mutation to perform the duplication asynchronously.In API version 2024-07 and lower, use the asynchronous
.
Metafield values are not duplicated if the unique values capability is enabled.
- Anchor to includeImagesinclude•Boolean
Images Default:false Specifies whether or not to duplicate images.
- Anchor to includeTranslationsinclude•Boolean
Translations Default:false Specifies whether or not to duplicate translations.
- Anchor to newStatusnew•Product
Status Status The new status of the product. If no value is provided the status will be inherited from the original product.
- Anchor to newTitlenew•String!
Title required The new title of the product.
- Anchor to productIdproduct•ID!
Id required The ID of the product to be duplicated.
- Anchor to synchronoussynchronous•BooleanDefault:true
Specifies whether or not to run the mutation synchronously.
Arguments
- Anchor to imageJobimage•Job
Job The asynchronous job that duplicates the product images.
- Anchor to newProductnew•Product
Product The duplicated product.
- Anchor to productDuplicateOperationproduct•Product
Duplicate Operation Duplicate Operation The product duplicate operation, returned when run in asynchronous mode.
- Anchor to shopshop•Shop!non-null
The user's shop.
- Anchor to userErrorsuser•[User
Errors Error!]! non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Adds multiple selling plan groups to a product.
- •ID!required
The ID of the product.
- Anchor to sellingPlanGroupIdsselling•[ID!]!
Plan Group Ids required The IDs of the selling plan groups to add.
Arguments
- Anchor to productproduct•Product
The product object.
- Anchor to userErrorsuser•[Selling
Errors Plan Group User Error!]! non-null The list of errors that occurred from executing the mutation.
Fields
- •ID!
- •mutation
Removes multiple groups from a product.
- •ID!required
The ID of the product.
- Anchor to sellingPlanGroupIdsselling•[ID!]!
Plan Group Ids required The IDs of the selling plan groups to add.
Arguments
- Anchor to productproduct•Product
The product object.
- Anchor to userErrorsuser•[Selling
Errors Plan Group User Error!]! non-null The list of errors that occurred from executing the mutation.
Fields
- •ID!
- •mutation
Creates one or more options on a product, such as size, color, or material. Each option includes a name, position, and a list of values. The combination of a product option and value creates a product variant.
Use the
mutation for the following use cases:
- Add product choices: Add a new option, like "Size" (Small, Medium, Large) or "Color" (Red, Blue, Green), to an existing product so customers can select their preferred variant.
- Enable personalization features: Add options such as "Engraving text" to let customers customize their purchase.
- Offer seasonal or limited edition products: Add a new value (for example, "Holiday red") to an existing option to support limited-time or seasonal variants.
- Integrate with apps that manage product configuration: Allow third-party apps to add options, like "Bundle size", when customers select or customize product bundles.
- Link options to metafields: Associate a product option with a custom metafield, like "Fabric code", for richer integrations with other systems or apps.
NoteThe
mutation enforces strict data integrity for product options and variants. All option positions must be sequential, and every option should be used by at least one variant. If you use the
variant strategy, consider the maximum allowed number of variants for each product (100 by default, and 2,048 if you've enabled the Extended Variants developer preview).
After you create product options, you can further manage a product's configuration using related mutations:
Learn more about the product model and adding product data.
- Anchor to optionsoptions•[Option
Create Input!]! required Options to add to the product.
- Anchor to productIdproduct•ID!
Id required The ID of the product to update.
- Anchor to variantStrategyvariant•Product
Strategy Option Create Variant Strategy Default:LEAVE_AS_IS The strategy defines which behavior the mutation should observe regarding variants. If not provided or set to null, the strategy
will be used.
Arguments
- Anchor to productproduct•Product
The updated product object.
- Anchor to userErrorsuser•[Product
Errors Options Create User Error!]! non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Deletes one or more options from a product. Product options define the choices available for a product, such as size, color, or material.
CautionUse the
mutation for the following use cases:
- Simplify product configuration: Remove obsolete or unnecessary options (for example, discontinue "Material" if all variants are now the same material).
- Clean up after seasonal or limited-time offerings: Delete options that are no longer relevant (for example, "Holiday edition").
- Automate catalog management: Enable apps or integrations to programmatically remove options as product data changes.
NoteThe
mutation enforces strict data integrity for product options and variants. All option positions must remain sequential, and every remaining option must be used by at least one variant.
After you delete a product option, you can further manage a product's configuration using related mutations:
Learn more about the product model and adding product data.
- Anchor to optionsoptions•[ID!]!required
IDs of the options to delete from the product.
- Anchor to productIdproduct•ID!
Id required ID of the product from which to delete the options.
- Anchor to strategystrategy•Product
Option Delete Strategy Default:DEFAULT The strategy defines which behavior the mutation should observe,such as how to handle a situation where deleting an option would result in duplicate variants.
Arguments
- Anchor to deletedOptionsIdsdeleted•[ID!]
Options Ids IDs of the options deleted.
- Anchor to productproduct•Product
The updated product object.
- Anchor to userErrorsuser•[Product
Errors Options Delete User Error!]! non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Reorders the options and option values on a product, updating the order in which product variants are presented to customers.
The
mutation accepts a list of product options, each identified by
id
orname
, and an optional list of values (also byid
orname
) specifying the new order. The order of options in the mutation's input determines their new positions (for example, the first option becomesoption1
). The order of values within each option determines their new positions. The mutation recalculates the order of variants based on the new option and value order.Suppose a product has the following variants:
"Red / Small"
"Green / Medium"
"Blue / Small"
You reorder options and values:
options: [ { name: "Size", values: [{ name: "Small" }, { name: "Medium" }] }, { name: "Color", values: [{ name: "Green" }, { name: "Red" }, { name: "Blue" }] } ]
The resulting variant order will be:
"Small / Green"
"Small / Red"
"Small / Blue"
"Medium / Green"
Use the
mutation for the following use cases:
- Change the order of product options: For example, display "Color" before "Size" in a store.
- Reorder option values within an option: For example, show "Red" before "Blue" in a color picker.
- Control the order of product variants: The order of options and their values determines the sequence in which variants are listed and selected.
- Highlight best-selling options: Present the most popular or relevant options and values first.
- Promote merchandising strategies: Highlight seasonal colors, limited editions, or featured sizes.
NoteThe
mutation enforces strict data integrity for product options and variants. All option positions must be sequential, and every option should be used by at least one variant.
After you reorder product options, you can further manage a product's configuration using related mutations:
Learn more about the product model and managing product data.
- Anchor to optionsoptions•[Option
Reorder Input!]! required Options to reorder on the product.
- Anchor to productIdproduct•ID!
Id required The ID of the product to update.
Arguments
- Anchor to productproduct•Product
The updated product object.
- Anchor to userErrorsuser•[Product
Errors Options Reorder User Error!]! non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Updates an option on a product, such as size, color, or material. Each option includes a name, position, and a list of values. The combination of a product option and value creates a product variant.
Use the
mutation for the following use cases:
- Update product choices: Modify an existing option, like "Size" (Small, Medium, Large) or "Color" (Red, Blue, Green), so customers can select their preferred variant.
- Enable personalization features: Update an option (for example, "Engraving text") to let customers customize their purchase.
- Offer seasonal or limited edition products: Update a value (for example, "Holiday red") on an existing option to support limited-time or seasonal variants.
- Integrate with apps that manage product configuration: Allow third-party apps to update options, like "Bundle size", when customers select or customize product bundles.
- Link options to metafields: Associate a product option with a custom metafield, like "Fabric code", for richer integrations with other systems or apps.
NoteThe
mutation enforces strict data integrity for product options and variants. All option positions must be sequential, and every option should be used by at least one variant.
After you update a product option, you can further manage a product's configuration using related mutations:
Learn more about the product model and adding product data.
- Anchor to optionoption•Option
Update Input! required Option to update.
- Anchor to optionValuesToAddoption•[Option
Values To Add Value Create Input!] New option values to create.
- Anchor to optionValuesToDeleteoption•[ID!]
Values To Delete IDs of the existing option values to delete.
- Anchor to optionValuesToUpdateoption•[Option
Values To Update Value Update Input!] Existing option values to update.
- Anchor to productIdproduct•ID!
Id required The ID of the Product the Option belongs to.
- Anchor to variantStrategyvariant•Product
Strategy Option Update Variant Strategy The strategy defines which behavior the mutation should observe regarding variants, such as creating variants or deleting them in response to option values to add or to delete. If not provided or set to null, the strategy
will be used.
Arguments
- Anchor to productproduct•Product
The product with which the option being updated is associated.
- Anchor to userErrorsuser•[Product
Errors Option Update User Error!]! non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Performs multiple operations to create or update products in a single request.
Use the
mutation to sync information from an external data source into Shopify, manage large product catalogs, and perform batch updates. The mutation is helpful for bulk product management, including price adjustments, inventory updates, and product lifecycle management.
The behavior of
depends on the type of field it's modifying:
For list fields: Creates new entries, updates existing entries, and deletes existing entries that aren't included in the mutation's input. Common examples of list fields include
collections
,metafields
, andvariants
.For all other field types: Updates only the included fields. Any omitted fields will remain unchanged.
NoteBy default, stores have a limit of 100 product variants for each product. You can create a development store and enable the Extended Variants developer preview to create or update a maximum of 2,048 product variants in a single operation.
You can run
in one of the following modes:
- Synchronously: Returns the updated product in the response.
- Asynchronously: Returns a
object. Use the
query to check the status of the operation and retrieve details of the updated product and its product variants.
If you need to only manage product variants, then use one of the following mutations:
If you need to only manage product options, then use one of the following mutations:
Learn more about syncing product data from an external source.
- Anchor to identifieridentifier•Product
Set Identifiers Specifies the identifier that will be used to lookup the resource.
- Anchor to inputinput•Product
Set Input! required The properties of the newly created or updated product.
- Anchor to synchronoussynchronous•BooleanDefault:true
Whether the mutation should be run synchronously or asynchronously.
If
true
, the mutation will return the updatedproduct
.If
false
, the mutation will return a.
Defaults to
true
.Setting
synchronous: false
may be desirable depending on the input complexity/size, and should be used if you are experiencing timeouts.Note: When run in the context of a bulk operation, the mutation will always run synchronously and this argument will be ignored.
Arguments
- Anchor to productproduct•Product
The product object.
- Anchor to productSetOperationproduct•Product
Set Operation Set Operation The product set operation, returned when run in asynchronous mode.
- Anchor to userErrorsuser•[Product
Errors Set User Error!]! non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Updates a product with attributes such as title, description, vendor, and media.
The
mutation helps you modify many products at once, avoiding the tedious or time-consuming process of updating them one by one in the Shopify admin. Common examples including updating product details like status or tags.
The
mutation doesn't support updating product variants. To update multiple product variants for a single product and manage prices, use the
mutation.
NoteThe
mutation has a throttle that takes effect when a store has 50,000 product variants. After this threshold is reached, no more than 1,000 new product variants can be updated per day.
After updating a product, you can make additional changes using one of the following mutations:
: Used to perform multiple operations on products, such as creating or modifying product options and variants.
: Used to publish the product and make it available to customers, if the product is currently unpublished.
Learn more about the product model and adding product data.
- Anchor to inputinput•Product
Input Deprecated - Anchor to mediamedia•[Create
Media Input!] List of new media to be added to the product.
- Anchor to productproduct•Product
Update Input The updated properties for a product.
Arguments
- Anchor to productproduct•Product
The updated product object.
- Anchor to userErrorsuser•[User
Errors Error!]! non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Appends media from a product to variants of the product.
- Anchor to productIdproduct•ID!
Id required Specifies the product associated to the media.
- Anchor to variantMediavariant•[Product
Media Variant Append Media Input!]! required A list of pairs of variants and media to be attached to the variants.
Arguments
- Anchor to productproduct•Product
The product associated with the variants and media.
- Anchor to productVariantsproduct•[Product
Variants Variant!] The product variants that were updated.
- Anchor to userErrorsuser•[Media
Errors User Error!]! non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Detaches media from product variants.
- Anchor to productIdproduct•ID!
Id required Specifies the product to which the variants and media are associated.
- Anchor to variantMediavariant•[Product
Media Variant Detach Media Input!]! required A list of pairs of variants and media to be deleted from the variants.
Arguments
- Anchor to productproduct•Product
The product associated with the variants and media.
- Anchor to productVariantsproduct•[Product
Variants Variant!] The product variants that were updated.
- Anchor to userErrorsuser•[Media
Errors User Error!]! non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Creates multiple product variants for a single product in one operation. You can run this mutation directly or as part of a bulk operation for large-scale catalog updates.
Use the
mutation to efficiently add new product variants—such as different sizes, colors, or materials—to an existing product. The mutation is helpful if you need to add product variants in bulk, such as importing from an external system.
The mutation supports:
- Creating variants with custom options and values
- Associating media (for example, images, videos, and 3D models) with the product or its variants
- Handling complex product configurations
NoteBy default, stores have a limit of 100 product variants for each product. You can create a development store and enable the Extended Variants developer preview to create a maximum of 2,048 product variants in a single operation.
After creating variants, you can make additional changes using one of the following mutations:
: Updates multiple product variants for a single product in one operation.
: Used to perform multiple operations on products, such as creating or modifying product options and variants.
You can also specifically manage product options through related mutations:
Learn more about the product model and adding product data.
- Anchor to mediamedia•[Create
Media Input!] List of new media to be added to the product.
- Anchor to productIdproduct•ID!
Id required The ID of the product on which to create the variants.
- Anchor to strategystrategy•Product
Variants Bulk Create Strategy Default:DEFAULT The strategy defines which behavior the mutation should observe, such as whether to keep or delete the standalone variant (when product has only a single or default variant) when creating new variants in bulk.
- Anchor to variantsvariants•[Product
Variants Bulk Input!]! required An array of product variants to be created.
Arguments
- Anchor to productproduct•Product
The updated product object.
- Anchor to productVariantsproduct•[Product
Variants Variant!] The newly created variants.
- Anchor to userErrorsuser•[Product
Errors Variants Bulk Create User Error!]! non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Deletes multiple variants in a single product. This mutation can be called directly or via the bulkOperation.
- Anchor to productIdproduct•ID!
Id required The ID of the product with the variants to update.
- Anchor to variantsIdsvariants•[ID!]!
Ids required An array of product variants IDs to delete.
Arguments
- Anchor to productproduct•Product
The updated product object.
- Anchor to userErrorsuser•[Product
Errors Variants Bulk Delete User Error!]! non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Reorders multiple variants in a single product. This mutation can be called directly or via the bulkOperation.
- Anchor to positionspositions•[Product
Variant Position Input!]! required An array of variant positions.
- Anchor to productIdproduct•ID!
Id required The product ID of the variants to be reordered.
Arguments
- Anchor to productproduct•Product
The updated product.
- Anchor to userErrorsuser•[Product
Errors Variants Bulk Reorder User Error!]! non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Updates multiple product variants for a single product in one operation. You can run this mutation directly or as part of a bulk operation for large-scale catalog updates.
Use the
mutation to efficiently modify product variants—such as different sizes, colors, or materials—associated with an existing product. The mutation is helpful if you need to update a product's variants in bulk, such as importing from an external system.
The mutation supports:
- Updating variants with custom options and values
- Associating media (for example, images, videos, and 3D models) with the product or its variants
- Handling complex product configurations
NoteBy default, stores have a limit of 100 product variants for each product. You can create a development store and enable the Extended Variants developer preview to update a maximum of 2,048 product variants in a single operation.
After creating variants, you can make additional changes using the
mutation, which is used to perform multiple operations on products, such as creating or modifying product options and variants.
You can also specifically manage product options through related mutations:
Learn more about the product model and adding product data.
- Anchor to allowPartialUpdatesallow•Boolean
Partial Updates Default:false When partial updates are allowed, valid variant changes may be persisted even if some of the variants updated have invalid data and cannot be persisted. When partial updates are not allowed, any error will prevent all variants from updating.
- Anchor to mediamedia•[Create
Media Input!] List of new media to be added to the product.
- Anchor to productIdproduct•ID!
Id required The ID of the product associated with the variants to update.
- Anchor to variantsvariants•[Product
Variants Bulk Input!]! required An array of product variants to update.
Arguments
- Anchor to productproduct•Product
The updated product object.
- Anchor to productVariantsproduct•[Product
Variants Variant!] The updated variants.
- Anchor to userErrorsuser•[Product
Errors Variants Bulk Update User Error!]! non-null The list of errors that occurred from executing the mutation.
Fields
Deprecated mutations
- •mutationDeprecated
- Anchor to productIdproduct•ID!
Id required The ID of the product.
- Anchor to statusstatus•Product
Status! required The status to be assigned to the product.
Arguments
- Anchor to productproduct•Product
The product object.
- Anchor to userErrorsuser•[Product
Errors Change Status User Error!]! non-null The list of errors that occurred from executing the mutation.
Fields
- •mutationDeprecated
- Anchor to mediamedia•[Create
Media Input!]! required List of new media to be added to a product.
- Anchor to productIdproduct•ID!
Id required Specifies the product associated with the media.
Arguments
- Anchor to mediamedia•[Media!]
The newly created media.
- Anchor to mediaUserErrorsmedia•[Media
User Errors User Error!]! non-null The list of errors that occurred from executing the mutation.
- Anchor to productproduct•Product
The product associated with the media.
- Anchor to userErrorsuser•[User
Errors Error!]! non-nullDeprecated
Fields
- •mutationDeprecated
- Anchor to mediaIdsmedia•[ID!]!
Ids required The media IDs to be deleted.
- Anchor to productIdproduct•ID!
Id required Specifies the product ID from which the media will be deleted.
Arguments
- Anchor to deletedMediaIdsdeleted•[ID!]
Media Ids List of media IDs which were deleted.
- Anchor to deletedProductImageIdsdeleted•[ID!]
Product Image Ids List of product image IDs which were deleted.
- Anchor to mediaUserErrorsmedia•[Media
User Errors User Error!]! non-null The list of errors that occurred from executing the mutation.
- Anchor to productproduct•Product
The product associated with the deleted media.
- Anchor to userErrorsuser•[User
Errors Error!]! non-nullDeprecated
Fields
- •mutationDeprecated
- Anchor to inputinput•Product
Publish Input! required Specifies the product to publish and the channels to publish it to.
Arguments
- Anchor to productproduct•Product
The product that has been published.
- Anchor to shopshop•Shop!non-null
The user's shop.
- Anchor to userErrorsuser•[User
Errors Error!]! non-null The list of errors that occurred from executing the mutation.
- Anchor to productPublicationsproduct•[Product
Publications Publication!] Deprecated
Fields
- •mutationDeprecated
- Anchor to inputinput•Product
Unpublish Input! required Specifies the product to unpublish and the channel to unpublish it from.
Arguments
- Anchor to productproduct•Product
The product that has been unpublished.
- Anchor to shopshop•Shop!non-null
The user's shop.
- Anchor to userErrorsuser•[User
Errors Error!]! non-null The list of errors that occurred from executing the mutation.
Fields
- •mutationDeprecated
- Anchor to mediamedia•[Update
Media Input!]! required A list of media updates.
- Anchor to productIdproduct•ID!
Id required Specifies the product on which media will be updated.
Arguments
- Anchor to mediamedia•[Media!]
The updated media object.
- Anchor to mediaUserErrorsmedia•[Media
User Errors User Error!]! non-null The list of errors that occurred from executing the mutation.
- Anchor to productproduct•Product
The product on which media was updated.
- Anchor to userErrorsuser•[User
Errors Error!]! non-nullDeprecated
Fields
Anchor to InterfacesInterfaces
- •interface
- •interface
- •interface
- •interface
- •interface