The REST Admin API is a legacy API as of October 1, 2024. Starting April 1, 2025, all new public apps must be built exclusively with the GraphQL Admin API. For details and migration steps, visit our migration guide.
Product
products
access scope.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.
Endpoints
- post/admin/api/unstable/products.
json Create a new product - get/admin/api/unstable/products.
json?ids=632910392,921728736 Retrieve a list of products - get/admin/api/unstable/products/{product_
id}. json Retrieve a single product - get/admin/api/unstable/products/count.
json Retrieve a count of products - put/admin/api/unstable/products/{product_
id}. json Updates a product - del/admin/api/unstable/products/{product_
id}. json Delete a product
The Product resource
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.
Whether the product is published to the Point of Sale channel. Valid values:
Show published_scope properties
web
: The product isn't published to the Point of Sale channel.global
: The product is published to the Point of Sale channel.
The status of the product. Valid values:
Show status properties
active
: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active.archived
: The product is no longer being sold and isn't available to customers on sales channels and apps.draft
: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.
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
)
The Product resource
Anchor to POST request, Create a new productpostCreate a new product
Create a new product
Anchor to post-products-examplesExamples
Create a new draft product
Create a new draft product
Show product properties
The name of the product.
A description of the product. Supports HTML formatting.
The name of the product's vendor.
A categorization for the product used for filtering and searching products.
The status of the product. Valid values:
Show status properties
active
: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active.archived
: The product is no longer being sold and isn't available to customers on sales channels and apps.draft
: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.
Create a new product with multiple product variants
Create a new product with multiple product variants
Show product properties
The name of the product.
A description of the product. Supports HTML formatting.
The name of the product's vendor.
A categorization for the product used for filtering and searching products.
An array of product variants, each representing a different version of the product.
The position
property is read-only. The position of variants is indicated by the order in which they are listed.
Create a new product with multiple product variants and multiple options
Create a new product with multiple product variants and multiple options
Show product properties
The name of the product.
A description of the product. Supports HTML formatting.
The name of the product's vendor.
A categorization for the product used for filtering and searching products.
An array of product variants, each representing a different version of the product.
The position
property is read-only. The position of variants is indicated by the order in which they are listed.
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.Create a new product with the default product variant
Create a new product with the default product variant
Show product properties
The name of the product.
A description of the product. Supports HTML formatting.
The name of the product's vendor.
A categorization for the product used for filtering and searching products.
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.
Create a new product with the default variant and a product image that will be downloaded by Shopify
Create a new product with the default variant and a product image that will be downloaded by Shopify
Show product properties
The name of the product.
A description of the product. Supports HTML formatting.
The name of the product's vendor.
A categorization for the product used for filtering and searching products.
A list of product image objects, each one representing an image associated with the product.
Create a new product with the default variant and base64 encoded image
Create a new product with the default variant and base64 encoded image
Show product properties
The name of the product.
A description of the product. Supports HTML formatting.
The name of the product's vendor.
A categorization for the product used for filtering and searching products.
A list of product image objects, each one representing an image associated with the product.
Create a new unpublished product
Create a new unpublished product
Show product properties
The name of the product.
A description of the product. Supports HTML formatting.
The name of the product's vendor.
A categorization for the product used for filtering and searching products.
Create a product with a metafield
Create a product with a metafield
Show product properties
The name of the product.
A description of the product. Supports HTML formatting.
The name of the product's vendor.
A categorization for the product used for filtering and searching products.
Create a product with an SEO title and description
Create a product with an SEO title and description
Show product properties
The name of the product.
A description of the product. Supports HTML formatting.
The name of the product's vendor.
A categorization for the product used for filtering and searching products.
Creating a product without a title will return an error
Creating a product without a title will return an error
Show product properties
A description of the product. Supports HTML formatting.
/admin/api/unstable/products. json
Response
examples
Create a new draft product
curl -d '{"product":{"title":"Burton Custom Freestyle 151","body_html":"<strong>Good snowboard!</strong>","vendor":"Burton","product_type":"Snowboard","status":"draft"}}' \ -X POST "https://your-development-store.myshopify.com/admin/api/unstable/products.json" \ -H "X-Shopify-Access-Token: {access_token}" \ -H "Content-Type: application/json"
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.post({ path: 'products', data: {"product":{"title":"Burton Custom Freestyle 151","body_html":"<strong>Good snowboard!</strong>","vendor":"Burton","product_type":"Snowboard","status":"draft"}}, type: DataType.JSON, });
session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Rest::Admin.new( session: session ) response = client.post( path: 'products', body: { "product": { "title": "Burton Custom Freestyle 151", "body_html": "<strong>Good snowboard!</strong>", "vendor": "Burton", "product_type": "Snowboard", "status": "draft" } }, )
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.post({ path: 'products', data: {"product":{"title":"Burton Custom Freestyle 151","body_html":"<strong>Good snowboard!</strong>","vendor":"Burton","product_type":"Snowboard","status":"draft"}}, type: DataType.JSON, });
response
HTTP/1.1 201 Created{"product":{"id":1072481059,"title":"Burton Custom Freestyle 151","body_html":"<strong>Good snowboard!</strong>","vendor":"Burton","product_type":"Snowboard","created_at":"2025-01-10T16:23:25-05:00","handle":"burton-custom-freestyle-151","updated_at":"2025-01-10T16:23:26-05:00","published_at":null,"template_suffix":null,"published_scope":"web","tags":"","status":"draft","admin_graphql_api_id":"gid://shopify/Product/1072481059","variants":[{"id":1070325040,"product_id":1072481059,"title":"Default Title","price":"0.00","position":1,"inventory_policy":"deny","compare_at_price":null,"option1":"Default Title","option2":null,"option3":null,"created_at":"2025-01-10T16:23:25-05:00","updated_at":"2025-01-10T16:23:25-05:00","taxable":true,"barcode":null,"fulfillment_service":"manual","grams":0,"inventory_management":null,"requires_shipping":true,"sku":"","weight":0.0,"weight_unit":"lb","inventory_item_id":1070325040,"inventory_quantity":0,"old_inventory_quantity":0,"presentment_prices":[{"price":{"amount":"0.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/1070325040","image_id":null}],"options":[{"id":1064576514,"product_id":1072481059,"name":"Title","position":1,"values":["Default Title"]}],"images":[],"image":null}}
Create a new product with multiple product variants
curl -d '{"product":{"title":"Burton Custom Freestyle 151","body_html":"<strong>Good snowboard!</strong>","vendor":"Burton","product_type":"Snowboard","variants":[{"option1":"First","price":"10.00","sku":"123"},{"option1":"Second","price":"20.00","sku":"123"}]}}' \ -X POST "https://your-development-store.myshopify.com/admin/api/unstable/products.json" \ -H "X-Shopify-Access-Token: {access_token}" \ -H "Content-Type: application/json"
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.post({ path: 'products', data: {"product":{"title":"Burton Custom Freestyle 151","body_html":"<strong>Good snowboard!</strong>","vendor":"Burton","product_type":"Snowboard","variants":[{"option1":"First","price":"10.00","sku":"123"},{"option1":"Second","price":"20.00","sku":"123"}]}}, type: DataType.JSON, });
session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Rest::Admin.new( session: session ) response = client.post( path: 'products', body: { "product": { "title": "Burton Custom Freestyle 151", "body_html": "<strong>Good snowboard!</strong>", "vendor": "Burton", "product_type": "Snowboard", "variants": [{"option1"=>"First", "price"=>"10.00", "sku"=>"123"}, {"option1"=>"Second", "price"=>"20.00", "sku"=>"123"}] } }, )
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.post({ path: 'products', data: {"product":{"title":"Burton Custom Freestyle 151","body_html":"<strong>Good snowboard!</strong>","vendor":"Burton","product_type":"Snowboard","variants":[{"option1":"First","price":"10.00","sku":"123"},{"option1":"Second","price":"20.00","sku":"123"}]}}, type: DataType.JSON, });
response
HTTP/1.1 201 Created{"product":{"id":1072481064,"title":"Burton Custom Freestyle 151","body_html":"<strong>Good snowboard!</strong>","vendor":"Burton","product_type":"Snowboard","created_at":"2025-01-10T16:23:41-05:00","handle":"burton-custom-freestyle-151","updated_at":"2025-01-10T16:23:41-05:00","published_at":"2025-01-10T16:23:41-05:00","template_suffix":null,"published_scope":"global","tags":"","status":"active","admin_graphql_api_id":"gid://shopify/Product/1072481064","variants":[{"id":1070325044,"product_id":1072481064,"title":"First","price":"10.00","position":1,"inventory_policy":"deny","compare_at_price":null,"option1":"First","option2":null,"option3":null,"created_at":"2025-01-10T16:23:41-05:00","updated_at":"2025-01-10T16:23:41-05:00","taxable":true,"barcode":null,"fulfillment_service":"manual","grams":0,"inventory_management":null,"requires_shipping":true,"sku":"123","weight":0.0,"weight_unit":"lb","inventory_item_id":1070325044,"inventory_quantity":0,"old_inventory_quantity":0,"presentment_prices":[{"price":{"amount":"10.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/1070325044","image_id":null},{"id":1070325045,"product_id":1072481064,"title":"Second","price":"20.00","position":2,"inventory_policy":"deny","compare_at_price":null,"option1":"Second","option2":null,"option3":null,"created_at":"2025-01-10T16:23:41-05:00","updated_at":"2025-01-10T16:23:41-05:00","taxable":true,"barcode":null,"fulfillment_service":"manual","grams":0,"inventory_management":null,"requires_shipping":true,"sku":"123","weight":0.0,"weight_unit":"lb","inventory_item_id":1070325045,"inventory_quantity":0,"old_inventory_quantity":0,"presentment_prices":[{"price":{"amount":"20.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/1070325045","image_id":null}],"options":[{"id":1064576520,"product_id":1072481064,"name":"Title","position":1,"values":["First","Second"]}],"images":[],"image":null}}
Create a new product with multiple product variants and multiple options
curl -d '{"product":{"title":"Burton Custom Freestyle 151","body_html":"<strong>Good snowboard!</strong>","vendor":"Burton","product_type":"Snowboard","variants":[{"option1":"Blue","option2":"155"},{"option1":"Black","option2":"159"}],"options":[{"name":"Color","values":["Blue","Black"]},{"name":"Size","values":["155","159"]}]}}' \ -X POST "https://your-development-store.myshopify.com/admin/api/unstable/products.json" \ -H "X-Shopify-Access-Token: {access_token}" \ -H "Content-Type: application/json"
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.post({ path: 'products', data: {"product":{"title":"Burton Custom Freestyle 151","body_html":"<strong>Good snowboard!</strong>","vendor":"Burton","product_type":"Snowboard","variants":[{"option1":"Blue","option2":"155"},{"option1":"Black","option2":"159"}],"options":[{"name":"Color","values":["Blue","Black"]},{"name":"Size","values":["155","159"]}]}}, type: DataType.JSON, });
session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Rest::Admin.new( session: session ) response = client.post( path: 'products', body: { "product": { "title": "Burton Custom Freestyle 151", "body_html": "<strong>Good snowboard!</strong>", "vendor": "Burton", "product_type": "Snowboard", "variants": [{"option1"=>"Blue", "option2"=>"155"}, {"option1"=>"Black", "option2"=>"159"}], "options": [{"name"=>"Color", "values"=>["Blue", "Black"]}, {"name"=>"Size", "values"=>["155", "159"]}] } }, )
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.post({ path: 'products', data: {"product":{"title":"Burton Custom Freestyle 151","body_html":"<strong>Good snowboard!</strong>","vendor":"Burton","product_type":"Snowboard","variants":[{"option1":"Blue","option2":"155"},{"option1":"Black","option2":"159"}],"options":[{"name":"Color","values":["Blue","Black"]},{"name":"Size","values":["155","159"]}]}}, type: DataType.JSON, });
response
HTTP/1.1 201 Created{"product":{"id":1072481068,"title":"Burton Custom Freestyle 151","body_html":"<strong>Good snowboard!</strong>","vendor":"Burton","product_type":"Snowboard","created_at":"2025-01-10T16:23:50-05:00","handle":"burton-custom-freestyle-151","updated_at":"2025-01-10T16:23:50-05:00","published_at":"2025-01-10T16:23:50-05:00","template_suffix":null,"published_scope":"global","tags":"","status":"active","admin_graphql_api_id":"gid://shopify/Product/1072481068","variants":[{"id":1070325050,"product_id":1072481068,"title":"Blue / 155","price":"0.00","position":1,"inventory_policy":"deny","compare_at_price":null,"option1":"Blue","option2":"155","option3":null,"created_at":"2025-01-10T16:23:50-05:00","updated_at":"2025-01-10T16:23:50-05:00","taxable":true,"barcode":null,"fulfillment_service":"manual","grams":0,"inventory_management":null,"requires_shipping":true,"sku":null,"weight":0.0,"weight_unit":"lb","inventory_item_id":1070325050,"inventory_quantity":0,"old_inventory_quantity":0,"presentment_prices":[{"price":{"amount":"0.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/1070325050","image_id":null},{"id":1070325051,"product_id":1072481068,"title":"Black / 159","price":"0.00","position":2,"inventory_policy":"deny","compare_at_price":null,"option1":"Black","option2":"159","option3":null,"created_at":"2025-01-10T16:23:50-05:00","updated_at":"2025-01-10T16:23:50-05:00","taxable":true,"barcode":null,"fulfillment_service":"manual","grams":0,"inventory_management":null,"requires_shipping":true,"sku":null,"weight":0.0,"weight_unit":"lb","inventory_item_id":1070325051,"inventory_quantity":0,"old_inventory_quantity":0,"presentment_prices":[{"price":{"amount":"0.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/1070325051","image_id":null}],"options":[{"id":1064576525,"product_id":1072481068,"name":"Color","position":1,"values":["Blue","Black"]},{"id":1064576526,"product_id":1072481068,"name":"Size","position":2,"values":["155","159"]}],"images":[],"image":null}}
Create a new product with the default product variant
curl -d '{"product":{"title":"Burton Custom Freestyle 151","body_html":"<strong>Good snowboard!</strong>","vendor":"Burton","product_type":"Snowboard","tags":["Barnes & Noble","Big Air","John's Fav"]}}' \ -X POST "https://your-development-store.myshopify.com/admin/api/unstable/products.json" \ -H "X-Shopify-Access-Token: {access_token}" \ -H "Content-Type: application/json"
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.post({ path: 'products', data: {"product":{"title":"Burton Custom Freestyle 151","body_html":"<strong>Good snowboard!</strong>","vendor":"Burton","product_type":"Snowboard","tags":["Barnes & Noble","Big Air","John's Fav"]}}, type: DataType.JSON, });
session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Rest::Admin.new( session: session ) response = client.post( path: 'products', body: { "product": { "title": "Burton Custom Freestyle 151", "body_html": "<strong>Good snowboard!</strong>", "vendor": "Burton", "product_type": "Snowboard", "tags": ["Barnes & Noble", "Big Air", "John's Fav"] } }, )
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.post({ path: 'products', data: {"product":{"title":"Burton Custom Freestyle 151","body_html":"<strong>Good snowboard!</strong>","vendor":"Burton","product_type":"Snowboard","tags":["Barnes & Noble","Big Air","John's Fav"]}}, type: DataType.JSON, });
response
HTTP/1.1 201 Created{"product":{"id":1072481067,"title":"Burton Custom Freestyle 151","body_html":"<strong>Good snowboard!</strong>","vendor":"Burton","product_type":"Snowboard","created_at":"2025-01-10T16:23:46-05:00","handle":"burton-custom-freestyle-151","updated_at":"2025-01-10T16:23:46-05:00","published_at":"2025-01-10T16:23:46-05:00","template_suffix":null,"published_scope":"global","tags":"Barnes & Noble, Big Air, John's Fav","status":"active","admin_graphql_api_id":"gid://shopify/Product/1072481067","variants":[{"id":1070325049,"product_id":1072481067,"title":"Default Title","price":"0.00","position":1,"inventory_policy":"deny","compare_at_price":null,"option1":"Default Title","option2":null,"option3":null,"created_at":"2025-01-10T16:23:46-05:00","updated_at":"2025-01-10T16:23:46-05:00","taxable":true,"barcode":null,"fulfillment_service":"manual","grams":0,"inventory_management":null,"requires_shipping":true,"sku":"","weight":0.0,"weight_unit":"lb","inventory_item_id":1070325049,"inventory_quantity":0,"old_inventory_quantity":0,"presentment_prices":[{"price":{"amount":"0.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/1070325049","image_id":null}],"options":[{"id":1064576524,"product_id":1072481067,"name":"Title","position":1,"values":["Default Title"]}],"images":[],"image":null}}
Create a new product with the default variant and a product image that will be downloaded by Shopify
curl -d '{"product":{"title":"Burton Custom Freestyle 151","body_html":"<strong>Good snowboard!</strong>","vendor":"Burton","product_type":"Snowboard","images":[{"src":"http://example.com/rails_logo.gif"}]}}' \ -X POST "https://your-development-store.myshopify.com/admin/api/unstable/products.json" \ -H "X-Shopify-Access-Token: {access_token}" \ -H "Content-Type: application/json"
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.post({ path: 'products', data: {"product":{"title":"Burton Custom Freestyle 151","body_html":"<strong>Good snowboard!</strong>","vendor":"Burton","product_type":"Snowboard","images":[{"src":"http://example.com/rails_logo.gif"}]}}, type: DataType.JSON, });
session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Rest::Admin.new( session: session ) response = client.post( path: 'products', body: { "product": { "title": "Burton Custom Freestyle 151", "body_html": "<strong>Good snowboard!</strong>", "vendor": "Burton", "product_type": "Snowboard", "images": [{"src"=>"http://example.com/rails_logo.gif"}] } }, )
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.post({ path: 'products', data: {"product":{"title":"Burton Custom Freestyle 151","body_html":"<strong>Good snowboard!</strong>","vendor":"Burton","product_type":"Snowboard","images":[{"src":"http://example.com/rails_logo.gif"}]}}, type: DataType.JSON, });
response
HTTP/1.1 201 Created{"product":{"id":1072481065,"title":"Burton Custom Freestyle 151","body_html":"<strong>Good snowboard!</strong>","vendor":"Burton","product_type":"Snowboard","created_at":"2025-01-10T16:23:43-05:00","handle":"burton-custom-freestyle-151","updated_at":"2025-01-10T16:23:43-05:00","published_at":"2025-01-10T16:23:43-05:00","template_suffix":null,"published_scope":"global","tags":"","status":"active","admin_graphql_api_id":"gid://shopify/Product/1072481065","variants":[{"id":1070325046,"product_id":1072481065,"title":"Default Title","price":"0.00","position":1,"inventory_policy":"deny","compare_at_price":null,"option1":"Default Title","option2":null,"option3":null,"created_at":"2025-01-10T16:23:43-05:00","updated_at":"2025-01-10T16:23:43-05:00","taxable":true,"barcode":null,"fulfillment_service":"manual","grams":0,"inventory_management":null,"requires_shipping":true,"sku":"","weight":0.0,"weight_unit":"lb","inventory_item_id":1070325046,"inventory_quantity":0,"old_inventory_quantity":0,"presentment_prices":[{"price":{"amount":"0.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/1070325046","image_id":null}],"options":[{"id":1064576521,"product_id":1072481065,"name":"Title","position":1,"values":["Default Title"]}],"images":[{"id":1001473900,"alt":null,"position":1,"product_id":1072481065,"created_at":"2025-01-10T16:23:43-05:00","updated_at":"2025-01-10T16:23:43-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/1072273194","width":110,"height":140,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/files/rails_logo20250110-72478-nkqdne.gif?v=1736544223","variant_ids":[]}],"image":{"id":1001473900,"alt":null,"position":1,"product_id":1072481065,"created_at":"2025-01-10T16:23:43-05:00","updated_at":"2025-01-10T16:23:43-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/1072273194","width":110,"height":140,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/files/rails_logo20250110-72478-nkqdne.gif?v=1736544223","variant_ids":[]}}}
Create a new product with the default variant and base64 encoded image
curl -d '{"product":{"title":"Burton Custom Freestyle 151","body_html":"<strong>Good snowboard!</strong>","vendor":"Burton","product_type":"Snowboard","images":[{"attachment":"R0lGODlhAQABAIAAAAAAAAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==\n"}]}}' \ -X POST "https://your-development-store.myshopify.com/admin/api/unstable/products.json" \ -H "X-Shopify-Access-Token: {access_token}" \ -H "Content-Type: application/json"
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.post({ path: 'products', data: {"product":{"title":"Burton Custom Freestyle 151","body_html":"<strong>Good snowboard!</strong>","vendor":"Burton","product_type":"Snowboard","images":[{"attachment":"R0lGODlhAQABAIAAAAAAAAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==\n"}]}}, type: DataType.JSON, });
session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Rest::Admin.new( session: session ) response = client.post( path: 'products', body: { "product": { "title": "Burton Custom Freestyle 151", "body_html": "<strong>Good snowboard!</strong>", "vendor": "Burton", "product_type": "Snowboard", "images": [{"attachment"=>"R0lGODlhAQABAIAAAAAAAAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==\n"}] } }, )
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.post({ path: 'products', data: {"product":{"title":"Burton Custom Freestyle 151","body_html":"<strong>Good snowboard!</strong>","vendor":"Burton","product_type":"Snowboard","images":[{"attachment":"R0lGODlhAQABAIAAAAAAAAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==\n"}]}}, type: DataType.JSON, });
response
HTTP/1.1 201 Created{"product":{"id":1072481060,"title":"Burton Custom Freestyle 151","body_html":"<strong>Good snowboard!</strong>","vendor":"Burton","product_type":"Snowboard","created_at":"2025-01-10T16:23:28-05:00","handle":"burton-custom-freestyle-151","updated_at":"2025-01-10T16:23:28-05:00","published_at":"2025-01-10T16:23:28-05:00","template_suffix":null,"published_scope":"global","tags":"","status":"active","admin_graphql_api_id":"gid://shopify/Product/1072481060","variants":[{"id":1070325041,"product_id":1072481060,"title":"Default Title","price":"0.00","position":1,"inventory_policy":"deny","compare_at_price":null,"option1":"Default Title","option2":null,"option3":null,"created_at":"2025-01-10T16:23:28-05:00","updated_at":"2025-01-10T16:23:28-05:00","taxable":true,"barcode":null,"fulfillment_service":"manual","grams":0,"inventory_management":null,"requires_shipping":true,"sku":"","weight":0.0,"weight_unit":"lb","inventory_item_id":1070325041,"inventory_quantity":0,"old_inventory_quantity":0,"presentment_prices":[{"price":{"amount":"0.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/1070325041","image_id":null}],"options":[{"id":1064576515,"product_id":1072481060,"name":"Title","position":1,"values":["Default Title"]}],"images":[{"id":1001473899,"alt":null,"position":1,"product_id":1072481060,"created_at":"2025-01-10T16:23:28-05:00","updated_at":"2025-01-10T16:23:28-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/1072273193","width":1,"height":1,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/files/df3e567d6f16d040326c7a0ea29a4f41.gif?v=1736544208","variant_ids":[]}],"image":{"id":1001473899,"alt":null,"position":1,"product_id":1072481060,"created_at":"2025-01-10T16:23:28-05:00","updated_at":"2025-01-10T16:23:28-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/1072273193","width":1,"height":1,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/files/df3e567d6f16d040326c7a0ea29a4f41.gif?v=1736544208","variant_ids":[]}}}
Create a new unpublished product
curl -d '{"product":{"title":"Burton Custom Freestyle 151","body_html":"<strong>Good snowboard!</strong>","vendor":"Burton","product_type":"Snowboard","published":false}}' \ -X POST "https://your-development-store.myshopify.com/admin/api/unstable/products.json" \ -H "X-Shopify-Access-Token: {access_token}" \ -H "Content-Type: application/json"
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.post({ path: 'products', data: {"product":{"title":"Burton Custom Freestyle 151","body_html":"<strong>Good snowboard!</strong>","vendor":"Burton","product_type":"Snowboard","published":false}}, type: DataType.JSON, });
session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Rest::Admin.new( session: session ) response = client.post( path: 'products', body: { "product": { "title": "Burton Custom Freestyle 151", "body_html": "<strong>Good snowboard!</strong>", "vendor": "Burton", "product_type": "Snowboard", "published": false } }, )
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.post({ path: 'products', data: {"product":{"title":"Burton Custom Freestyle 151","body_html":"<strong>Good snowboard!</strong>","vendor":"Burton","product_type":"Snowboard","published":false}}, type: DataType.JSON, });
response
HTTP/1.1 201 Created{"product":{"id":1072481063,"title":"Burton Custom Freestyle 151","body_html":"<strong>Good snowboard!</strong>","vendor":"Burton","product_type":"Snowboard","created_at":"2025-01-10T16:23:38-05:00","handle":"burton-custom-freestyle-151","updated_at":"2025-01-10T16:23:38-05:00","published_at":null,"template_suffix":null,"published_scope":"global","tags":"","status":"active","admin_graphql_api_id":"gid://shopify/Product/1072481063","variants":[{"id":1070325043,"product_id":1072481063,"title":"Default Title","price":"0.00","position":1,"inventory_policy":"deny","compare_at_price":null,"option1":"Default Title","option2":null,"option3":null,"created_at":"2025-01-10T16:23:38-05:00","updated_at":"2025-01-10T16:23:38-05:00","taxable":true,"barcode":null,"fulfillment_service":"manual","grams":0,"inventory_management":null,"requires_shipping":true,"sku":"","weight":0.0,"weight_unit":"lb","inventory_item_id":1070325043,"inventory_quantity":0,"old_inventory_quantity":0,"presentment_prices":[{"price":{"amount":"0.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/1070325043","image_id":null}],"options":[{"id":1064576519,"product_id":1072481063,"name":"Title","position":1,"values":["Default Title"]}],"images":[],"image":null}}
Create a product with a metafield
curl -d '{"product":{"title":"Burton Custom Freestyle 151","body_html":"<strong>Good snowboard!</strong>","vendor":"Burton","product_type":"Snowboard","metafields":[{"key":"new","value":"newvalue","type":"single_line_text_field","namespace":"global"}]}}' \ -X POST "https://your-development-store.myshopify.com/admin/api/unstable/products.json" \ -H "X-Shopify-Access-Token: {access_token}" \ -H "Content-Type: application/json"
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.post({ path: 'products', data: {"product":{"title":"Burton Custom Freestyle 151","body_html":"<strong>Good snowboard!</strong>","vendor":"Burton","product_type":"Snowboard","metafields":[{"key":"new","value":"newvalue","type":"single_line_text_field","namespace":"global"}]}}, type: DataType.JSON, });
session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Rest::Admin.new( session: session ) response = client.post( path: 'products', body: { "product": { "title": "Burton Custom Freestyle 151", "body_html": "<strong>Good snowboard!</strong>", "vendor": "Burton", "product_type": "Snowboard", "metafields": [{"key"=>"new", "value"=>"newvalue", "type"=>"single_line_text_field", "namespace"=>"global"}] } }, )
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.post({ path: 'products', data: {"product":{"title":"Burton Custom Freestyle 151","body_html":"<strong>Good snowboard!</strong>","vendor":"Burton","product_type":"Snowboard","metafields":[{"key":"new","value":"newvalue","type":"single_line_text_field","namespace":"global"}]}}, type: DataType.JSON, });
response
HTTP/1.1 201 Created{"product":{"id":1072481074,"title":"Burton Custom Freestyle 151","body_html":"<strong>Good snowboard!</strong>","vendor":"Burton","product_type":"Snowboard","created_at":"2025-01-10T16:24:05-05:00","handle":"burton-custom-freestyle-151","updated_at":"2025-01-10T16:24:05-05:00","published_at":"2025-01-10T16:24:05-05:00","template_suffix":null,"published_scope":"global","tags":"","status":"active","admin_graphql_api_id":"gid://shopify/Product/1072481074","variants":[{"id":1070325056,"product_id":1072481074,"title":"Default Title","price":"0.00","position":1,"inventory_policy":"deny","compare_at_price":null,"option1":"Default Title","option2":null,"option3":null,"created_at":"2025-01-10T16:24:05-05:00","updated_at":"2025-01-10T16:24:05-05:00","taxable":true,"barcode":null,"fulfillment_service":"manual","grams":0,"inventory_management":null,"requires_shipping":true,"sku":"","weight":0.0,"weight_unit":"lb","inventory_item_id":1070325056,"inventory_quantity":0,"old_inventory_quantity":0,"presentment_prices":[{"price":{"amount":"0.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/1070325056","image_id":null}],"options":[{"id":1064576536,"product_id":1072481074,"name":"Title","position":1,"values":["Default Title"]}],"images":[],"image":null}}
Create a product with an SEO title and description
curl -d '{"product":{"title":"Burton Custom Freestyle 151","body_html":"<strong>Good snowboard!</strong>","vendor":"Burton","product_type":"Snowboard","metafields_global_title_tag":"Product SEO Title","metafields_global_description_tag":"Product SEO Description"}}' \ -X POST "https://your-development-store.myshopify.com/admin/api/unstable/products.json" \ -H "X-Shopify-Access-Token: {access_token}" \ -H "Content-Type: application/json"
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.post({ path: 'products', data: {"product":{"title":"Burton Custom Freestyle 151","body_html":"<strong>Good snowboard!</strong>","vendor":"Burton","product_type":"Snowboard","metafields_global_title_tag":"Product SEO Title","metafields_global_description_tag":"Product SEO Description"}}, type: DataType.JSON, });
session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Rest::Admin.new( session: session ) response = client.post( path: 'products', body: { "product": { "title": "Burton Custom Freestyle 151", "body_html": "<strong>Good snowboard!</strong>", "vendor": "Burton", "product_type": "Snowboard", "metafields_global_title_tag": "Product SEO Title", "metafields_global_description_tag": "Product SEO Description" } }, )
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.post({ path: 'products', data: {"product":{"title":"Burton Custom Freestyle 151","body_html":"<strong>Good snowboard!</strong>","vendor":"Burton","product_type":"Snowboard","metafields_global_title_tag":"Product SEO Title","metafields_global_description_tag":"Product SEO Description"}}, type: DataType.JSON, });
response
HTTP/1.1 201 Created{"product":{"id":1072481071,"title":"Burton Custom Freestyle 151","body_html":"<strong>Good snowboard!</strong>","vendor":"Burton","product_type":"Snowboard","created_at":"2025-01-10T16:23:59-05:00","handle":"burton-custom-freestyle-151","updated_at":"2025-01-10T16:23:59-05:00","published_at":"2025-01-10T16:23:59-05:00","template_suffix":null,"published_scope":"global","tags":"","status":"active","admin_graphql_api_id":"gid://shopify/Product/1072481071","variants":[{"id":1070325053,"product_id":1072481071,"title":"Default Title","price":"0.00","position":1,"inventory_policy":"deny","compare_at_price":null,"option1":"Default Title","option2":null,"option3":null,"created_at":"2025-01-10T16:23:59-05:00","updated_at":"2025-01-10T16:23:59-05:00","taxable":true,"barcode":null,"fulfillment_service":"manual","grams":0,"inventory_management":null,"requires_shipping":true,"sku":"","weight":0.0,"weight_unit":"lb","inventory_item_id":1070325053,"inventory_quantity":0,"old_inventory_quantity":0,"presentment_prices":[{"price":{"amount":"0.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/1070325053","image_id":null}],"options":[{"id":1064576531,"product_id":1072481071,"name":"Title","position":1,"values":["Default Title"]}],"images":[],"image":null}}
Creating a product without a title will return an error
curl -d '{"product":{"body_html":"A mystery!"}}' \ -X POST "https://your-development-store.myshopify.com/admin/api/unstable/products.json" \ -H "X-Shopify-Access-Token: {access_token}" \ -H "Content-Type: application/json"
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.post({ path: 'products', data: {"product":{"body_html":"A mystery!"}}, type: DataType.JSON, });
session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Rest::Admin.new( session: session ) response = client.post( path: 'products', body: { "product": { "body_html": "A mystery!" } }, )
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.post({ path: 'products', data: {"product":{"body_html":"A mystery!"}}, type: DataType.JSON, });
response
HTTP/1.1 422 Unprocessable Entity{"errors":{"title":["can't be blank"]}}
Anchor to GET request, Retrieve a list of productsgetRetrieve a list of products
Retrieve a list of products.
Return products by product collection ID.
Return products created before a specified date. (format: 2014-04-25T16:15:47-04:00)
Return products created after a specified date. (format: 2014-04-25T16:15:47-04:00)
Return fields by a comma-separated list of field names. Fields: admin_graphql_api_id, body_html, created_at, handle, id, image, images, options, product_type, published_at, published_scope, status, tags, template_suffix, title, updated_at, variants, vendor
Return only products specified by a comma-separated list of product handles.
Return only products specified by a comma-separated list of product IDs.
Return up to this many results per page.
Return presentment prices in only certain currencies, specified by a comma-separated list of ISO 4217 currency codes.
Return products by product type.
Return products published before a specified date. (format: 2014-04-25T16:15:47-04:00)
Return products published after a specified date. (format: 2014-04-25T16:15:47-04:00)
Retrieve a list of specific products
Retrieve a list of specific products
Return only products specified by a comma-separated list of product IDs.
Retrieve all products
Retrieve all products
Retrieve all products after the specified ID
Retrieve all products after the specified ID
Return only products after the specified ID.
Retrieve all products that belong to a certain collection
Retrieve all products that belong to a certain collection
Return products by product collection ID.
Retrieve all products with prices in selected presentment currencies
Retrieve all products with prices in selected presentment currencies
Return presentment prices in only certain currencies, specified by a comma-separated list of ISO 4217 currency codes.
Retrieve all products, showing only some attributes
Retrieve all products, showing only some attributes
Return fields by a comma-separated list of field names. Fields: admin_graphql_api_id, body_html, created_at, handle, id, image, images, options, product_type, published_at, published_scope, status, tags, template_suffix, title, updated_at, variants, vendor
/admin/api/unstable/products. json?ids= 632910392, 921728736
Response
examples
Retrieve a list of specific products
curl -X GET "https://your-development-store.myshopify.com/admin/api/unstable/products.json?ids=632910392%2C921728736" \ -H "X-Shopify-Access-Token: {access_token}"
const client = new shopify.clients.Rest({session}); const data = await client.get({ path: 'products', query: {"ids":"632910392%2C921728736"}, });
session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Rest::Admin.new( session: session ) response = client.get( path: 'products', query: { "ids": "632910392%2C921728736" }, )
const client = new shopify.clients.Rest({session}); const data = await client.get({ path: 'products', query: {"ids":"632910392%2C921728736"}, });
response
HTTP/1.1 200 OK{"products":[{"id":632910392,"title":"IPod Nano - 8GB","body_html":"<p>It's the small iPod with one very big idea: Video. Now the world's most popular music player, available in 4GB and 8GB models, lets you enjoy TV shows, movies, video podcasts, and more. The larger, brighter display means amazing picture quality. In six eye-catching colors, iPod nano is stunning all around. And with models starting at just $149, little speaks volumes.</p>","vendor":"Apple","product_type":"Cult Products","created_at":"2025-01-10T16:21:01-05:00","handle":"ipod-nano","updated_at":"2025-01-10T16:21:01-05:00","published_at":"2007-12-31T19:00:00-05:00","template_suffix":null,"published_scope":"web","tags":"Emotive, Flash Memory, MP3, Music","status":"active","admin_graphql_api_id":"gid://shopify/Product/632910392","variants":[{"id":808950810,"product_id":632910392,"title":"Pink","price":"199.00","position":1,"inventory_policy":"continue","compare_at_price":null,"option1":"Pink","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_pink","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008PINK","weight":1.25,"weight_unit":"lb","inventory_item_id":808950810,"inventory_quantity":10,"old_inventory_quantity":10,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/808950810","image_id":562641783},{"id":49148385,"product_id":632910392,"title":"Red","price":"199.00","position":2,"inventory_policy":"continue","compare_at_price":null,"option1":"Red","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_red","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008RED","weight":1.25,"weight_unit":"lb","inventory_item_id":49148385,"inventory_quantity":20,"old_inventory_quantity":20,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/49148385","image_id":null},{"id":39072856,"product_id":632910392,"title":"Green","price":"199.00","position":3,"inventory_policy":"continue","compare_at_price":null,"option1":"Green","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_green","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008GREEN","weight":1.25,"weight_unit":"lb","inventory_item_id":39072856,"inventory_quantity":30,"old_inventory_quantity":30,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/39072856","image_id":null},{"id":457924702,"product_id":632910392,"title":"Black","price":"199.00","position":4,"inventory_policy":"continue","compare_at_price":null,"option1":"Black","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_black","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008BLACK","weight":1.25,"weight_unit":"lb","inventory_item_id":457924702,"inventory_quantity":40,"old_inventory_quantity":40,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/457924702","image_id":null}],"options":[{"id":594680422,"product_id":632910392,"name":"Color","position":1,"values":["Pink","Red","Green","Black"]}],"images":[{"id":850703190,"alt":null,"position":1,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/498048120","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]},{"id":562641783,"alt":null,"position":2,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/1071517486","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano-2.png?v=1736544061","variant_ids":[808950810]},{"id":378407906,"alt":null,"position":3,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/220090436","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]}],"image":{"id":850703190,"alt":null,"position":1,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/498048120","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]}},{"id":921728736,"title":"IPod Touch 8GB","body_html":"<p>The iPod Touch has the iPhone's multi-touch interface, with a physical home button off the touch screen. The home screen has a list of buttons for the available applications.</p>","vendor":"Apple","product_type":"Cult Products","created_at":"2025-01-10T16:21:01-05:00","handle":"ipod-touch","updated_at":"2025-01-10T16:21:01-05:00","published_at":"2008-09-25T20:00:00-04:00","template_suffix":null,"published_scope":"web","tags":"","status":"active","admin_graphql_api_id":"gid://shopify/Product/921728736","variants":[{"id":447654529,"product_id":921728736,"title":"Black","price":"199.00","position":1,"inventory_policy":"continue","compare_at_price":null,"option1":"Black","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_black","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2009BLACK","weight":1.25,"weight_unit":"lb","inventory_item_id":447654529,"inventory_quantity":13,"old_inventory_quantity":13,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/447654529","image_id":null}],"options":[{"id":891236591,"product_id":921728736,"name":"Title","position":1,"values":["Black"]}],"images":[],"image":null}]}
Retrieve all products
curl -X GET "https://your-development-store.myshopify.com/admin/api/unstable/products.json" \ -H "X-Shopify-Access-Token: {access_token}"
const client = new shopify.clients.Rest({session}); const data = await client.get({ path: 'products', });
session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Rest::Admin.new( session: session ) response = client.get( path: 'products', )
const client = new shopify.clients.Rest({session}); const data = await client.get({ path: 'products', });
response
HTTP/1.1 200 OK{"products":[{"id":632910392,"title":"IPod Nano - 8GB","body_html":"<p>It's the small iPod with one very big idea: Video. Now the world's most popular music player, available in 4GB and 8GB models, lets you enjoy TV shows, movies, video podcasts, and more. The larger, brighter display means amazing picture quality. In six eye-catching colors, iPod nano is stunning all around. And with models starting at just $149, little speaks volumes.</p>","vendor":"Apple","product_type":"Cult Products","created_at":"2025-01-10T16:21:01-05:00","handle":"ipod-nano","updated_at":"2025-01-10T16:21:01-05:00","published_at":"2007-12-31T19:00:00-05:00","template_suffix":null,"published_scope":"web","tags":"Emotive, Flash Memory, MP3, Music","status":"active","admin_graphql_api_id":"gid://shopify/Product/632910392","variants":[{"id":808950810,"product_id":632910392,"title":"Pink","price":"199.00","position":1,"inventory_policy":"continue","compare_at_price":null,"option1":"Pink","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_pink","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008PINK","weight":1.25,"weight_unit":"lb","inventory_item_id":808950810,"inventory_quantity":10,"old_inventory_quantity":10,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/808950810","image_id":562641783},{"id":49148385,"product_id":632910392,"title":"Red","price":"199.00","position":2,"inventory_policy":"continue","compare_at_price":null,"option1":"Red","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_red","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008RED","weight":1.25,"weight_unit":"lb","inventory_item_id":49148385,"inventory_quantity":20,"old_inventory_quantity":20,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/49148385","image_id":null},{"id":39072856,"product_id":632910392,"title":"Green","price":"199.00","position":3,"inventory_policy":"continue","compare_at_price":null,"option1":"Green","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_green","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008GREEN","weight":1.25,"weight_unit":"lb","inventory_item_id":39072856,"inventory_quantity":30,"old_inventory_quantity":30,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/39072856","image_id":null},{"id":457924702,"product_id":632910392,"title":"Black","price":"199.00","position":4,"inventory_policy":"continue","compare_at_price":null,"option1":"Black","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_black","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008BLACK","weight":1.25,"weight_unit":"lb","inventory_item_id":457924702,"inventory_quantity":40,"old_inventory_quantity":40,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/457924702","image_id":null}],"options":[{"id":594680422,"product_id":632910392,"name":"Color","position":1,"values":["Pink","Red","Green","Black"]}],"images":[{"id":850703190,"alt":null,"position":1,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/498048120","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]},{"id":562641783,"alt":null,"position":2,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/1071517486","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano-2.png?v=1736544061","variant_ids":[808950810]},{"id":378407906,"alt":null,"position":3,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/220090436","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]}],"image":{"id":850703190,"alt":null,"position":1,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/498048120","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]}},{"id":921728736,"title":"IPod Touch 8GB","body_html":"<p>The iPod Touch has the iPhone's multi-touch interface, with a physical home button off the touch screen. The home screen has a list of buttons for the available applications.</p>","vendor":"Apple","product_type":"Cult Products","created_at":"2025-01-10T16:21:01-05:00","handle":"ipod-touch","updated_at":"2025-01-10T16:21:01-05:00","published_at":"2008-09-25T20:00:00-04:00","template_suffix":null,"published_scope":"web","tags":"","status":"active","admin_graphql_api_id":"gid://shopify/Product/921728736","variants":[{"id":447654529,"product_id":921728736,"title":"Black","price":"199.00","position":1,"inventory_policy":"continue","compare_at_price":null,"option1":"Black","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_black","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2009BLACK","weight":1.25,"weight_unit":"lb","inventory_item_id":447654529,"inventory_quantity":13,"old_inventory_quantity":13,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/447654529","image_id":null}],"options":[{"id":891236591,"product_id":921728736,"name":"Title","position":1,"values":["Black"]}],"images":[],"image":null}]}
Retrieve all products after the specified ID
curl -X GET "https://your-development-store.myshopify.com/admin/api/unstable/products.json?since_id=632910392" \ -H "X-Shopify-Access-Token: {access_token}"
const client = new shopify.clients.Rest({session}); const data = await client.get({ path: 'products', query: {"since_id":"632910392"}, });
session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Rest::Admin.new( session: session ) response = client.get( path: 'products', query: { "since_id": "632910392" }, )
const client = new shopify.clients.Rest({session}); const data = await client.get({ path: 'products', query: {"since_id":"632910392"}, });
response
HTTP/1.1 200 OK{"products":[{"id":921728736,"title":"IPod Touch 8GB","body_html":"<p>The iPod Touch has the iPhone's multi-touch interface, with a physical home button off the touch screen. The home screen has a list of buttons for the available applications.</p>","vendor":"Apple","product_type":"Cult Products","created_at":"2025-01-10T16:21:01-05:00","handle":"ipod-touch","updated_at":"2025-01-10T16:21:01-05:00","published_at":"2008-09-25T20:00:00-04:00","template_suffix":null,"published_scope":"web","tags":"","status":"active","admin_graphql_api_id":"gid://shopify/Product/921728736","variants":[{"id":447654529,"product_id":921728736,"title":"Black","price":"199.00","position":1,"inventory_policy":"continue","compare_at_price":null,"option1":"Black","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_black","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2009BLACK","weight":1.25,"weight_unit":"lb","inventory_item_id":447654529,"inventory_quantity":13,"old_inventory_quantity":13,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/447654529","image_id":null}],"options":[{"id":891236591,"product_id":921728736,"name":"Title","position":1,"values":["Black"]}],"images":[],"image":null}]}
Retrieve all products that belong to a certain collection
curl -X GET "https://your-development-store.myshopify.com/admin/api/unstable/products.json?collection_id=841564295" \ -H "X-Shopify-Access-Token: {access_token}"
const client = new shopify.clients.Rest({session}); const data = await client.get({ path: 'products', query: {"collection_id":"841564295"}, });
session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Rest::Admin.new( session: session ) response = client.get( path: 'products', query: { "collection_id": "841564295" }, )
const client = new shopify.clients.Rest({session}); const data = await client.get({ path: 'products', query: {"collection_id":"841564295"}, });
response
HTTP/1.1 200 OK{"products":[{"id":632910392,"title":"IPod Nano - 8GB","body_html":"<p>It's the small iPod with one very big idea: Video. Now the world's most popular music player, available in 4GB and 8GB models, lets you enjoy TV shows, movies, video podcasts, and more. The larger, brighter display means amazing picture quality. In six eye-catching colors, iPod nano is stunning all around. And with models starting at just $149, little speaks volumes.</p>","vendor":"Apple","product_type":"Cult Products","created_at":"2025-01-10T16:21:01-05:00","handle":"ipod-nano","updated_at":"2025-01-10T16:21:01-05:00","published_at":"2007-12-31T19:00:00-05:00","template_suffix":null,"published_scope":"web","tags":"Emotive, Flash Memory, MP3, Music","status":"active","admin_graphql_api_id":"gid://shopify/Product/632910392","variants":[{"id":808950810,"product_id":632910392,"title":"Pink","price":"199.00","position":1,"inventory_policy":"continue","compare_at_price":null,"option1":"Pink","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_pink","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008PINK","weight":1.25,"weight_unit":"lb","inventory_item_id":808950810,"inventory_quantity":10,"old_inventory_quantity":10,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/808950810","image_id":562641783},{"id":49148385,"product_id":632910392,"title":"Red","price":"199.00","position":2,"inventory_policy":"continue","compare_at_price":null,"option1":"Red","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_red","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008RED","weight":1.25,"weight_unit":"lb","inventory_item_id":49148385,"inventory_quantity":20,"old_inventory_quantity":20,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/49148385","image_id":null},{"id":39072856,"product_id":632910392,"title":"Green","price":"199.00","position":3,"inventory_policy":"continue","compare_at_price":null,"option1":"Green","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_green","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008GREEN","weight":1.25,"weight_unit":"lb","inventory_item_id":39072856,"inventory_quantity":30,"old_inventory_quantity":30,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/39072856","image_id":null},{"id":457924702,"product_id":632910392,"title":"Black","price":"199.00","position":4,"inventory_policy":"continue","compare_at_price":null,"option1":"Black","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_black","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008BLACK","weight":1.25,"weight_unit":"lb","inventory_item_id":457924702,"inventory_quantity":40,"old_inventory_quantity":40,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/457924702","image_id":null}],"options":[{"id":594680422,"product_id":632910392,"name":"Color","position":1,"values":["Pink","Red","Green","Black"]}],"images":[{"id":850703190,"alt":null,"position":1,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/498048120","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]},{"id":562641783,"alt":null,"position":2,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/1071517486","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano-2.png?v=1736544061","variant_ids":[808950810]},{"id":378407906,"alt":null,"position":3,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/220090436","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]}],"image":{"id":850703190,"alt":null,"position":1,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/498048120","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]}}]}
Retrieve all products with prices in selected presentment currencies
curl -X GET "https://your-development-store.myshopify.com/admin/api/unstable/products.json?presentment_currencies=USD" \ -H "X-Shopify-Access-Token: {access_token}"
const client = new shopify.clients.Rest({session}); const data = await client.get({ path: 'products', query: {"presentment_currencies":"USD"}, });
session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Rest::Admin.new( session: session ) response = client.get( path: 'products', query: { "presentment_currencies": "USD" }, )
const client = new shopify.clients.Rest({session}); const data = await client.get({ path: 'products', query: {"presentment_currencies":"USD"}, });
response
HTTP/1.1 200 OK{"products":[{"id":632910392,"title":"IPod Nano - 8GB","body_html":"<p>It's the small iPod with one very big idea: Video. Now the world's most popular music player, available in 4GB and 8GB models, lets you enjoy TV shows, movies, video podcasts, and more. The larger, brighter display means amazing picture quality. In six eye-catching colors, iPod nano is stunning all around. And with models starting at just $149, little speaks volumes.</p>","vendor":"Apple","product_type":"Cult Products","created_at":"2025-01-10T16:21:01-05:00","handle":"ipod-nano","updated_at":"2025-01-10T16:21:01-05:00","published_at":"2007-12-31T19:00:00-05:00","template_suffix":null,"published_scope":"web","tags":"Emotive, Flash Memory, MP3, Music","status":"active","admin_graphql_api_id":"gid://shopify/Product/632910392","variants":[{"id":808950810,"product_id":632910392,"title":"Pink","price":"199.00","position":1,"inventory_policy":"continue","compare_at_price":null,"option1":"Pink","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_pink","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008PINK","weight":1.25,"weight_unit":"lb","inventory_item_id":808950810,"inventory_quantity":10,"old_inventory_quantity":10,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/808950810","image_id":562641783},{"id":49148385,"product_id":632910392,"title":"Red","price":"199.00","position":2,"inventory_policy":"continue","compare_at_price":null,"option1":"Red","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_red","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008RED","weight":1.25,"weight_unit":"lb","inventory_item_id":49148385,"inventory_quantity":20,"old_inventory_quantity":20,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/49148385","image_id":null},{"id":39072856,"product_id":632910392,"title":"Green","price":"199.00","position":3,"inventory_policy":"continue","compare_at_price":null,"option1":"Green","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_green","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008GREEN","weight":1.25,"weight_unit":"lb","inventory_item_id":39072856,"inventory_quantity":30,"old_inventory_quantity":30,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/39072856","image_id":null},{"id":457924702,"product_id":632910392,"title":"Black","price":"199.00","position":4,"inventory_policy":"continue","compare_at_price":null,"option1":"Black","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_black","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008BLACK","weight":1.25,"weight_unit":"lb","inventory_item_id":457924702,"inventory_quantity":40,"old_inventory_quantity":40,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/457924702","image_id":null}],"options":[{"id":594680422,"product_id":632910392,"name":"Color","position":1,"values":["Pink","Red","Green","Black"]}],"images":[{"id":850703190,"alt":null,"position":1,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/498048120","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]},{"id":562641783,"alt":null,"position":2,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/1071517486","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano-2.png?v=1736544061","variant_ids":[808950810]},{"id":378407906,"alt":null,"position":3,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/220090436","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]}],"image":{"id":850703190,"alt":null,"position":1,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/498048120","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]}},{"id":921728736,"title":"IPod Touch 8GB","body_html":"<p>The iPod Touch has the iPhone's multi-touch interface, with a physical home button off the touch screen. The home screen has a list of buttons for the available applications.</p>","vendor":"Apple","product_type":"Cult Products","created_at":"2025-01-10T16:21:01-05:00","handle":"ipod-touch","updated_at":"2025-01-10T16:21:01-05:00","published_at":"2008-09-25T20:00:00-04:00","template_suffix":null,"published_scope":"web","tags":"","status":"active","admin_graphql_api_id":"gid://shopify/Product/921728736","variants":[{"id":447654529,"product_id":921728736,"title":"Black","price":"199.00","position":1,"inventory_policy":"continue","compare_at_price":null,"option1":"Black","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_black","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2009BLACK","weight":1.25,"weight_unit":"lb","inventory_item_id":447654529,"inventory_quantity":13,"old_inventory_quantity":13,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/447654529","image_id":null}],"options":[{"id":891236591,"product_id":921728736,"name":"Title","position":1,"values":["Black"]}],"images":[],"image":null}]}
Retrieve all products, showing only some attributes
curl -X GET "https://your-development-store.myshopify.com/admin/api/unstable/products.json?fields=id%2Cimages%2Ctitle" \ -H "X-Shopify-Access-Token: {access_token}"
const client = new shopify.clients.Rest({session}); const data = await client.get({ path: 'products', query: {"fields":"id%2Cimages%2Ctitle"}, });
session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Rest::Admin.new( session: session ) response = client.get( path: 'products', query: { "fields": "id%2Cimages%2Ctitle" }, )
const client = new shopify.clients.Rest({session}); const data = await client.get({ path: 'products', query: {"fields":"id%2Cimages%2Ctitle"}, });
response
HTTP/1.1 200 OK{"products":[{"id":632910392,"title":"IPod Nano - 8GB","images":[{"id":850703190,"alt":null,"position":1,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/498048120","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]},{"id":562641783,"alt":null,"position":2,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/1071517486","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano-2.png?v=1736544061","variant_ids":[808950810]},{"id":378407906,"alt":null,"position":3,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/220090436","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]}]},{"id":921728736,"title":"IPod Touch 8GB","images":[]}]}
Anchor to GET request, Retrieve a single productgetRetrieve a single product
Retrieve a single product.
A comma-separated list of fields to include in the response.
Retrieve a single product by ID
Retrieve a single product by ID
Retrieve only particular fields from a single product
Retrieve only particular fields from a single product
A comma-separated list of fields to include in the response.
/admin/api/unstable/products/632910392. json
Response
examples
Retrieve a single product by ID
curl -X GET "https://your-development-store.myshopify.com/admin/api/unstable/products/632910392.json" \ -H "X-Shopify-Access-Token: {access_token}"
const client = new shopify.clients.Rest({session}); const data = await client.get({ path: 'products/632910392', });
session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Rest::Admin.new( session: session ) response = client.get( path: 'products/632910392', )
const client = new shopify.clients.Rest({session}); const data = await client.get({ path: 'products/632910392', });
response
HTTP/1.1 200 OK{"product":{"id":632910392,"title":"IPod Nano - 8GB","body_html":"<p>It's the small iPod with one very big idea: Video. Now the world's most popular music player, available in 4GB and 8GB models, lets you enjoy TV shows, movies, video podcasts, and more. The larger, brighter display means amazing picture quality. In six eye-catching colors, iPod nano is stunning all around. And with models starting at just $149, little speaks volumes.</p>","vendor":"Apple","product_type":"Cult Products","created_at":"2025-01-10T16:21:01-05:00","handle":"ipod-nano","updated_at":"2025-01-10T16:21:01-05:00","published_at":"2007-12-31T19:00:00-05:00","template_suffix":null,"published_scope":"web","tags":"Emotive, Flash Memory, MP3, Music","status":"active","admin_graphql_api_id":"gid://shopify/Product/632910392","variants":[{"id":808950810,"product_id":632910392,"title":"Pink","price":"199.00","position":1,"inventory_policy":"continue","compare_at_price":null,"option1":"Pink","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_pink","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008PINK","weight":1.25,"weight_unit":"lb","inventory_item_id":808950810,"inventory_quantity":10,"old_inventory_quantity":10,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/808950810","image_id":562641783},{"id":49148385,"product_id":632910392,"title":"Red","price":"199.00","position":2,"inventory_policy":"continue","compare_at_price":null,"option1":"Red","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_red","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008RED","weight":1.25,"weight_unit":"lb","inventory_item_id":49148385,"inventory_quantity":20,"old_inventory_quantity":20,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/49148385","image_id":null},{"id":39072856,"product_id":632910392,"title":"Green","price":"199.00","position":3,"inventory_policy":"continue","compare_at_price":null,"option1":"Green","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_green","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008GREEN","weight":1.25,"weight_unit":"lb","inventory_item_id":39072856,"inventory_quantity":30,"old_inventory_quantity":30,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/39072856","image_id":null},{"id":457924702,"product_id":632910392,"title":"Black","price":"199.00","position":4,"inventory_policy":"continue","compare_at_price":null,"option1":"Black","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_black","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008BLACK","weight":1.25,"weight_unit":"lb","inventory_item_id":457924702,"inventory_quantity":40,"old_inventory_quantity":40,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/457924702","image_id":null}],"options":[{"id":594680422,"product_id":632910392,"name":"Color","position":1,"values":["Pink","Red","Green","Black"]}],"images":[{"id":850703190,"alt":null,"position":1,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/498048120","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]},{"id":562641783,"alt":null,"position":2,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/1071517486","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano-2.png?v=1736544061","variant_ids":[808950810]},{"id":378407906,"alt":null,"position":3,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/220090436","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]}],"image":{"id":850703190,"alt":null,"position":1,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/498048120","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]}}}
Retrieve only particular fields from a single product
curl -X GET "https://your-development-store.myshopify.com/admin/api/unstable/products/632910392.json?fields=id%2Cimages%2Ctitle" \ -H "X-Shopify-Access-Token: {access_token}"
const client = new shopify.clients.Rest({session}); const data = await client.get({ path: 'products/632910392', query: {"fields":"id%2Cimages%2Ctitle"}, });
session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Rest::Admin.new( session: session ) response = client.get( path: 'products/632910392', query: { "fields": "id%2Cimages%2Ctitle" }, )
const client = new shopify.clients.Rest({session}); const data = await client.get({ path: 'products/632910392', query: {"fields":"id%2Cimages%2Ctitle"}, });
response
HTTP/1.1 200 OK{"product":{"id":632910392,"title":"IPod Nano - 8GB","images":[{"id":850703190,"alt":null,"position":1,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/498048120","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]},{"id":562641783,"alt":null,"position":2,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/1071517486","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano-2.png?v=1736544061","variant_ids":[808950810]},{"id":378407906,"alt":null,"position":3,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/220090436","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]}]}}
Anchor to GET request, Retrieve a count of productsgetRetrieve a count of products
Retrieve a count of products.
Return products by product collection ID.
Return products created before a specified date. (format: 2014-04-25T16:15:47-04:00)
Return products created after a specified date. (format: 2014-04-25T16:15:47-04:00)
Return products by product type.
Return products published before a specified date. (format: 2014-04-25T16:15:47-04:00)
Return products published after a specified date. (format: 2014-04-25T16:15:47-04:00)
Return products by their published status.
Show published_status properties
published: Return only published products.
unpublished: Return only unpublished products.
any: Return all products.
Return products last updated before a specified date. (format: 2014-04-25T16:15:47-04:00)
Return products last updated after a specified date. (format: 2014-04-25T16:15:47-04:00)
Return products by product vendor.
Retrieve a count of all products
Retrieve a count of all products
Retrieve a count of all products of a given collection
Retrieve a count of all products of a given collection
Return products by product collection ID.
/admin/api/unstable/products/count. json
Response
examples
Retrieve a count of all products
curl -X GET "https://your-development-store.myshopify.com/admin/api/unstable/products/count.json" \ -H "X-Shopify-Access-Token: {access_token}"
const client = new shopify.clients.Rest({session}); const data = await client.get({ path: 'products/count', });
session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Rest::Admin.new( session: session ) response = client.get( path: 'products/count', )
const client = new shopify.clients.Rest({session}); const data = await client.get({ path: 'products/count', });
response
HTTP/1.1 200 OK{"count":2}
Retrieve a count of all products of a given collection
curl -X GET "https://your-development-store.myshopify.com/admin/api/unstable/products/count.json?collection_id=841564295" \ -H "X-Shopify-Access-Token: {access_token}"
const client = new shopify.clients.Rest({session}); const data = await client.get({ path: 'products/count', query: {"collection_id":"841564295"}, });
session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Rest::Admin.new( session: session ) response = client.get( path: 'products/count', query: { "collection_id": "841564295" }, )
const client = new shopify.clients.Rest({session}); const data = await client.get({ path: 'products/count', query: {"collection_id":"841564295"}, });
response
HTTP/1.1 200 OK{"count":1}
Anchor to PUT request, Updates a productputUpdates a product
Update a product
Add a metafield to an existing product
Add a metafield to an existing product
Show product properties
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.
Hide a published product by changing the published attribute to false
Hide a published product by changing the published attribute to false
Show product properties
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.
Update a product and one of its variants
Update a product and one of its variants
Show product properties
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.
The name of the product.
An array of product variants, each representing a different version of the product.
The position
property is read-only. The position of variants is indicated by the order in which they are listed.
Update a product by adding a new product image
Update a product by adding a new product image
Show product properties
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.
Update a product by clearing product images
Update a product by clearing product images
Show product properties
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.
Update a product by reordering the product images
Update a product by reordering the product images
Show product properties
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.
Update a product by reordering the product variants
Update a product by reordering the product variants
Show product properties
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.
An array of product variants, each representing a different version of the product.
The position
property is read-only. The position of variants is indicated by the order in which they are listed.
Update a product's SEO title and description
Update a product's SEO title and description
Show product properties
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.
Update a product's status
Update a product's status
Show product properties
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.
The status of the product. Valid values:
Show status properties
active
: The product is ready to sell and is available to customers on the online store, sales channels, and apps. By default, existing products are set to active.archived
: The product is no longer being sold and isn't available to customers on sales channels and apps.draft
: The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft.
Update a product's title
Update a product's title
Show product properties
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.
The name of the product.
/admin/api/unstable/products/632910392. json
Response
examples
Add a metafield to an existing product
curl -d '{"product":{"id":632910392,"metafields":[{"key":"new","value":"newvalue","type":"single_line_text_field","namespace":"global"}]}}' \ -X PUT "https://your-development-store.myshopify.com/admin/api/unstable/products/632910392.json" \ -H "X-Shopify-Access-Token: {access_token}" \ -H "Content-Type: application/json"
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.put({ path: 'products/632910392', data: {"product":{"id":632910392,"metafields":[{"key":"new","value":"newvalue","type":"single_line_text_field","namespace":"global"}]}}, type: DataType.JSON, });
session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Rest::Admin.new( session: session ) response = client.put( path: 'products/632910392', body: { "product": { "id": 632910392, "metafields": [{"key"=>"new", "value"=>"newvalue", "type"=>"single_line_text_field", "namespace"=>"global"}] } }, )
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.put({ path: 'products/632910392', data: {"product":{"id":632910392,"metafields":[{"key":"new","value":"newvalue","type":"single_line_text_field","namespace":"global"}]}}, type: DataType.JSON, });
response
HTTP/1.1 200 OK{"product":{"id":632910392,"title":"IPod Nano - 8GB","body_html":"<p>It's the small iPod with one very big idea: Video. Now the world's most popular music player, available in 4GB and 8GB models, lets you enjoy TV shows, movies, video podcasts, and more. The larger, brighter display means amazing picture quality. In six eye-catching colors, iPod nano is stunning all around. And with models starting at just $149, little speaks volumes.</p>","vendor":"Apple","product_type":"Cult Products","created_at":"2025-01-10T16:21:01-05:00","handle":"ipod-nano","updated_at":"2025-01-10T16:23:51-05:00","published_at":"2007-12-31T19:00:00-05:00","template_suffix":null,"published_scope":"web","tags":"Emotive, Flash Memory, MP3, Music","status":"active","admin_graphql_api_id":"gid://shopify/Product/632910392","variants":[{"id":808950810,"product_id":632910392,"title":"Pink","price":"199.00","position":1,"inventory_policy":"continue","compare_at_price":null,"option1":"Pink","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_pink","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008PINK","weight":1.25,"weight_unit":"lb","inventory_item_id":808950810,"inventory_quantity":10,"old_inventory_quantity":10,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/808950810","image_id":562641783},{"id":49148385,"product_id":632910392,"title":"Red","price":"199.00","position":2,"inventory_policy":"continue","compare_at_price":null,"option1":"Red","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_red","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008RED","weight":1.25,"weight_unit":"lb","inventory_item_id":49148385,"inventory_quantity":20,"old_inventory_quantity":20,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/49148385","image_id":null},{"id":39072856,"product_id":632910392,"title":"Green","price":"199.00","position":3,"inventory_policy":"continue","compare_at_price":null,"option1":"Green","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_green","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008GREEN","weight":1.25,"weight_unit":"lb","inventory_item_id":39072856,"inventory_quantity":30,"old_inventory_quantity":30,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/39072856","image_id":null},{"id":457924702,"product_id":632910392,"title":"Black","price":"199.00","position":4,"inventory_policy":"continue","compare_at_price":null,"option1":"Black","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_black","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008BLACK","weight":1.25,"weight_unit":"lb","inventory_item_id":457924702,"inventory_quantity":40,"old_inventory_quantity":40,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/457924702","image_id":null}],"options":[{"id":594680422,"product_id":632910392,"name":"Color","position":1,"values":["Pink","Red","Green","Black"]}],"images":[{"id":850703190,"alt":null,"position":1,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/498048120","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]},{"id":562641783,"alt":null,"position":2,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/1071517486","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano-2.png?v=1736544061","variant_ids":[808950810]},{"id":378407906,"alt":null,"position":3,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/220090436","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]}],"image":{"id":850703190,"alt":null,"position":1,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/498048120","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]}}}
Hide a published product by changing the published attribute to false
curl -d '{"product":{"id":632910392,"published":false}}' \ -X PUT "https://your-development-store.myshopify.com/admin/api/unstable/products/632910392.json" \ -H "X-Shopify-Access-Token: {access_token}" \ -H "Content-Type: application/json"
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.put({ path: 'products/632910392', data: {"product":{"id":632910392,"published":false}}, type: DataType.JSON, });
session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Rest::Admin.new( session: session ) response = client.put( path: 'products/632910392', body: { "product": { "id": 632910392, "published": false } }, )
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.put({ path: 'products/632910392', data: {"product":{"id":632910392,"published":false}}, type: DataType.JSON, });
response
HTTP/1.1 200 OK{"product":{"id":632910392,"title":"IPod Nano - 8GB","body_html":"<p>It's the small iPod with one very big idea: Video. Now the world's most popular music player, available in 4GB and 8GB models, lets you enjoy TV shows, movies, video podcasts, and more. The larger, brighter display means amazing picture quality. In six eye-catching colors, iPod nano is stunning all around. And with models starting at just $149, little speaks volumes.</p>","vendor":"Apple","product_type":"Cult Products","created_at":"2025-01-10T16:21:01-05:00","handle":"ipod-nano","updated_at":"2025-01-10T16:23:55-05:00","published_at":null,"template_suffix":null,"published_scope":"web","tags":"Emotive, Flash Memory, MP3, Music","status":"active","admin_graphql_api_id":"gid://shopify/Product/632910392","variants":[{"id":808950810,"product_id":632910392,"title":"Pink","price":"199.00","position":1,"inventory_policy":"continue","compare_at_price":null,"option1":"Pink","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_pink","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008PINK","weight":1.25,"weight_unit":"lb","inventory_item_id":808950810,"inventory_quantity":10,"old_inventory_quantity":10,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/808950810","image_id":562641783},{"id":49148385,"product_id":632910392,"title":"Red","price":"199.00","position":2,"inventory_policy":"continue","compare_at_price":null,"option1":"Red","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_red","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008RED","weight":1.25,"weight_unit":"lb","inventory_item_id":49148385,"inventory_quantity":20,"old_inventory_quantity":20,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/49148385","image_id":null},{"id":39072856,"product_id":632910392,"title":"Green","price":"199.00","position":3,"inventory_policy":"continue","compare_at_price":null,"option1":"Green","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_green","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008GREEN","weight":1.25,"weight_unit":"lb","inventory_item_id":39072856,"inventory_quantity":30,"old_inventory_quantity":30,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/39072856","image_id":null},{"id":457924702,"product_id":632910392,"title":"Black","price":"199.00","position":4,"inventory_policy":"continue","compare_at_price":null,"option1":"Black","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_black","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008BLACK","weight":1.25,"weight_unit":"lb","inventory_item_id":457924702,"inventory_quantity":40,"old_inventory_quantity":40,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/457924702","image_id":null}],"options":[{"id":594680422,"product_id":632910392,"name":"Color","position":1,"values":["Pink","Red","Green","Black"]}],"images":[{"id":850703190,"alt":null,"position":1,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/498048120","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]},{"id":562641783,"alt":null,"position":2,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/1071517486","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano-2.png?v=1736544061","variant_ids":[808950810]},{"id":378407906,"alt":null,"position":3,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/220090436","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]}],"image":{"id":850703190,"alt":null,"position":1,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/498048120","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]}}}
Show a hidden product by changing the published attribute to true
curl -d '{"product":{"id":632910392,"published":true}}' \ -X PUT "https://your-development-store.myshopify.com/admin/api/unstable/products/632910392.json" \ -H "X-Shopify-Access-Token: {access_token}" \ -H "Content-Type: application/json"
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.put({ path: 'products/632910392', data: {"product":{"id":632910392,"published":true}}, type: DataType.JSON, });
session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Rest::Admin.new( session: session ) response = client.put( path: 'products/632910392', body: { "product": { "id": 632910392, "published": true } }, )
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.put({ path: 'products/632910392', data: {"product":{"id":632910392,"published":true}}, type: DataType.JSON, });
response
HTTP/1.1 200 OK{"product":{"id":632910392,"title":"IPod Nano - 8GB","body_html":"<p>It's the small iPod with one very big idea: Video. Now the world's most popular music player, available in 4GB and 8GB models, lets you enjoy TV shows, movies, video podcasts, and more. The larger, brighter display means amazing picture quality. In six eye-catching colors, iPod nano is stunning all around. And with models starting at just $149, little speaks volumes.</p>","vendor":"Apple","product_type":"Cult Products","created_at":"2025-01-10T16:21:01-05:00","handle":"ipod-nano","updated_at":"2025-01-10T16:24:10-05:00","published_at":"2025-01-10T16:24:10-05:00","template_suffix":null,"published_scope":"web","tags":"Emotive, Flash Memory, MP3, Music","status":"active","admin_graphql_api_id":"gid://shopify/Product/632910392","variants":[{"id":808950810,"product_id":632910392,"title":"Pink","price":"199.00","position":1,"inventory_policy":"continue","compare_at_price":null,"option1":"Pink","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_pink","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008PINK","weight":1.25,"weight_unit":"lb","inventory_item_id":808950810,"inventory_quantity":10,"old_inventory_quantity":10,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/808950810","image_id":562641783},{"id":49148385,"product_id":632910392,"title":"Red","price":"199.00","position":2,"inventory_policy":"continue","compare_at_price":null,"option1":"Red","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_red","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008RED","weight":1.25,"weight_unit":"lb","inventory_item_id":49148385,"inventory_quantity":20,"old_inventory_quantity":20,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/49148385","image_id":null},{"id":39072856,"product_id":632910392,"title":"Green","price":"199.00","position":3,"inventory_policy":"continue","compare_at_price":null,"option1":"Green","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_green","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008GREEN","weight":1.25,"weight_unit":"lb","inventory_item_id":39072856,"inventory_quantity":30,"old_inventory_quantity":30,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/39072856","image_id":null},{"id":457924702,"product_id":632910392,"title":"Black","price":"199.00","position":4,"inventory_policy":"continue","compare_at_price":null,"option1":"Black","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_black","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008BLACK","weight":1.25,"weight_unit":"lb","inventory_item_id":457924702,"inventory_quantity":40,"old_inventory_quantity":40,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/457924702","image_id":null}],"options":[{"id":594680422,"product_id":632910392,"name":"Color","position":1,"values":["Pink","Red","Green","Black"]}],"images":[{"id":850703190,"alt":null,"position":1,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/498048120","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]},{"id":562641783,"alt":null,"position":2,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/1071517486","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano-2.png?v=1736544061","variant_ids":[808950810]},{"id":378407906,"alt":null,"position":3,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/220090436","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]}],"image":{"id":850703190,"alt":null,"position":1,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/498048120","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]}}}
Update a product and one of its variants
curl -d '{"product":{"id":632910392,"title":"Updated Product Title","variants":[{"id":808950810,"price":"2000.00","sku":"Updating the Product SKU"},{"id":49148385},{"id":39072856},{"id":457924702}]}}' \ -X PUT "https://your-development-store.myshopify.com/admin/api/unstable/products/632910392.json" \ -H "X-Shopify-Access-Token: {access_token}" \ -H "Content-Type: application/json"
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.put({ path: 'products/632910392', data: {"product":{"id":632910392,"title":"Updated Product Title","variants":[{"id":808950810,"price":"2000.00","sku":"Updating the Product SKU"},{"id":49148385},{"id":39072856},{"id":457924702}]}}, type: DataType.JSON, });
session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Rest::Admin.new( session: session ) response = client.put( path: 'products/632910392', body: { "product": { "id": 632910392, "title": "Updated Product Title", "variants": [{"id"=>808950810, "price"=>"2000.00", "sku"=>"Updating the Product SKU"}, {"id"=>49148385}, {"id"=>39072856}, {"id"=>457924702}] } }, )
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.put({ path: 'products/632910392', data: {"product":{"id":632910392,"title":"Updated Product Title","variants":[{"id":808950810,"price":"2000.00","sku":"Updating the Product SKU"},{"id":49148385},{"id":39072856},{"id":457924702}]}}, type: DataType.JSON, });
response
HTTP/1.1 200 OK{"product":{"id":632910392,"title":"Updated Product Title","body_html":"<p>It's the small iPod with one very big idea: Video. Now the world's most popular music player, available in 4GB and 8GB models, lets you enjoy TV shows, movies, video podcasts, and more. The larger, brighter display means amazing picture quality. In six eye-catching colors, iPod nano is stunning all around. And with models starting at just $149, little speaks volumes.</p>","vendor":"Apple","product_type":"Cult Products","created_at":"2025-01-10T16:21:01-05:00","handle":"ipod-nano","updated_at":"2025-01-10T16:23:32-05:00","published_at":"2007-12-31T19:00:00-05:00","template_suffix":null,"published_scope":"web","tags":"Emotive, Flash Memory, MP3, Music","status":"active","admin_graphql_api_id":"gid://shopify/Product/632910392","variants":[{"id":808950810,"product_id":632910392,"title":"Pink","price":"2000.00","position":1,"inventory_policy":"continue","compare_at_price":null,"option1":"Pink","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:23:32-05:00","taxable":true,"barcode":"1234_pink","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"Updating the Product SKU","weight":1.25,"weight_unit":"lb","inventory_item_id":808950810,"inventory_quantity":10,"old_inventory_quantity":10,"presentment_prices":[{"price":{"amount":"2000.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/808950810","image_id":562641783},{"id":49148385,"product_id":632910392,"title":"Red","price":"199.00","position":2,"inventory_policy":"continue","compare_at_price":null,"option1":"Red","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_red","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008RED","weight":1.25,"weight_unit":"lb","inventory_item_id":49148385,"inventory_quantity":20,"old_inventory_quantity":20,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/49148385","image_id":null},{"id":39072856,"product_id":632910392,"title":"Green","price":"199.00","position":3,"inventory_policy":"continue","compare_at_price":null,"option1":"Green","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_green","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008GREEN","weight":1.25,"weight_unit":"lb","inventory_item_id":39072856,"inventory_quantity":30,"old_inventory_quantity":30,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/39072856","image_id":null},{"id":457924702,"product_id":632910392,"title":"Black","price":"199.00","position":4,"inventory_policy":"continue","compare_at_price":null,"option1":"Black","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_black","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008BLACK","weight":1.25,"weight_unit":"lb","inventory_item_id":457924702,"inventory_quantity":40,"old_inventory_quantity":40,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/457924702","image_id":null}],"options":[{"id":594680422,"product_id":632910392,"name":"Color","position":1,"values":["Pink","Red","Green","Black"]}],"images":[{"id":850703190,"alt":null,"position":1,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/498048120","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]},{"id":562641783,"alt":null,"position":2,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/1071517486","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano-2.png?v=1736544061","variant_ids":[808950810]},{"id":378407906,"alt":null,"position":3,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/220090436","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]}],"image":{"id":850703190,"alt":null,"position":1,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/498048120","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]}}}
Update a product by adding a new product image
curl -d '{"product":{"id":632910392,"images":[{"id":850703190},{"id":562641783},{"id":378407906},{"src":"http://example.com/rails_logo.gif"}]}}' \ -X PUT "https://your-development-store.myshopify.com/admin/api/unstable/products/632910392.json" \ -H "X-Shopify-Access-Token: {access_token}" \ -H "Content-Type: application/json"
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.put({ path: 'products/632910392', data: {"product":{"id":632910392,"images":[{"id":850703190},{"id":562641783},{"id":378407906},{"src":"http://example.com/rails_logo.gif"}]}}, type: DataType.JSON, });
session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Rest::Admin.new( session: session ) response = client.put( path: 'products/632910392', body: { "product": { "id": 632910392, "images": [{"id"=>850703190}, {"id"=>562641783}, {"id"=>378407906}, {"src"=>"http://example.com/rails_logo.gif"}] } }, )
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.put({ path: 'products/632910392', data: {"product":{"id":632910392,"images":[{"id":850703190},{"id":562641783},{"id":378407906},{"src":"http://example.com/rails_logo.gif"}]}}, type: DataType.JSON, });
response
HTTP/1.1 200 OK{"product":{"id":632910392,"title":"IPod Nano - 8GB","body_html":"<p>It's the small iPod with one very big idea: Video. Now the world's most popular music player, available in 4GB and 8GB models, lets you enjoy TV shows, movies, video podcasts, and more. The larger, brighter display means amazing picture quality. In six eye-catching colors, iPod nano is stunning all around. And with models starting at just $149, little speaks volumes.</p>","vendor":"Apple","product_type":"Cult Products","created_at":"2025-01-10T16:21:01-05:00","handle":"ipod-nano","updated_at":"2025-01-10T16:24:08-05:00","published_at":"2007-12-31T19:00:00-05:00","template_suffix":null,"published_scope":"web","tags":"Emotive, Flash Memory, MP3, Music","status":"active","admin_graphql_api_id":"gid://shopify/Product/632910392","variants":[{"id":808950810,"product_id":632910392,"title":"Pink","price":"199.00","position":1,"inventory_policy":"continue","compare_at_price":null,"option1":"Pink","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_pink","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008PINK","weight":1.25,"weight_unit":"lb","inventory_item_id":808950810,"inventory_quantity":10,"old_inventory_quantity":10,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/808950810","image_id":562641783},{"id":49148385,"product_id":632910392,"title":"Red","price":"199.00","position":2,"inventory_policy":"continue","compare_at_price":null,"option1":"Red","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_red","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008RED","weight":1.25,"weight_unit":"lb","inventory_item_id":49148385,"inventory_quantity":20,"old_inventory_quantity":20,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/49148385","image_id":null},{"id":39072856,"product_id":632910392,"title":"Green","price":"199.00","position":3,"inventory_policy":"continue","compare_at_price":null,"option1":"Green","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_green","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008GREEN","weight":1.25,"weight_unit":"lb","inventory_item_id":39072856,"inventory_quantity":30,"old_inventory_quantity":30,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/39072856","image_id":null},{"id":457924702,"product_id":632910392,"title":"Black","price":"199.00","position":4,"inventory_policy":"continue","compare_at_price":null,"option1":"Black","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_black","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008BLACK","weight":1.25,"weight_unit":"lb","inventory_item_id":457924702,"inventory_quantity":40,"old_inventory_quantity":40,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/457924702","image_id":null}],"options":[{"id":594680422,"product_id":632910392,"name":"Color","position":1,"values":["Pink","Red","Green","Black"]}],"images":[{"id":850703190,"alt":null,"position":1,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/498048120","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]},{"id":562641783,"alt":null,"position":2,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/1071517486","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano-2.png?v=1736544061","variant_ids":[808950810]},{"id":378407906,"alt":null,"position":3,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/220090436","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]},{"id":1001473902,"alt":null,"position":4,"product_id":632910392,"created_at":"2025-01-10T16:24:08-05:00","updated_at":"2025-01-10T16:24:08-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/1072273196","width":110,"height":140,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/files/rails_logo20250110-72478-nnv1tn.gif?v=1736544248","variant_ids":[]}],"image":{"id":850703190,"alt":null,"position":1,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/498048120","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]}}}
Update a product by clearing product images
curl -d '{"product":{"id":632910392,"images":[]}}' \ -X PUT "https://your-development-store.myshopify.com/admin/api/unstable/products/632910392.json" \ -H "X-Shopify-Access-Token: {access_token}" \ -H "Content-Type: application/json"
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.put({ path: 'products/632910392', data: {"product":{"id":632910392,"images":[]}}, type: DataType.JSON, });
session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Rest::Admin.new( session: session ) response = client.put( path: 'products/632910392', body: { "product": { "id": 632910392, "images": [] } }, )
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.put({ path: 'products/632910392', data: {"product":{"id":632910392,"images":[]}}, type: DataType.JSON, });
response
HTTP/1.1 200 OK{"product":{"id":632910392,"title":"IPod Nano - 8GB","body_html":"<p>It's the small iPod with one very big idea: Video. Now the world's most popular music player, available in 4GB and 8GB models, lets you enjoy TV shows, movies, video podcasts, and more. The larger, brighter display means amazing picture quality. In six eye-catching colors, iPod nano is stunning all around. And with models starting at just $149, little speaks volumes.</p>","vendor":"Apple","product_type":"Cult Products","created_at":"2025-01-10T16:21:01-05:00","handle":"ipod-nano","updated_at":"2025-01-10T16:23:22-05:00","published_at":"2007-12-31T19:00:00-05:00","template_suffix":null,"published_scope":"web","tags":"Emotive, Flash Memory, MP3, Music","status":"active","admin_graphql_api_id":"gid://shopify/Product/632910392","variants":[{"id":808950810,"product_id":632910392,"title":"Pink","price":"199.00","position":1,"inventory_policy":"continue","compare_at_price":null,"option1":"Pink","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:23:22-05:00","taxable":true,"barcode":"1234_pink","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008PINK","weight":1.25,"weight_unit":"lb","inventory_item_id":808950810,"inventory_quantity":10,"old_inventory_quantity":10,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/808950810","image_id":null},{"id":49148385,"product_id":632910392,"title":"Red","price":"199.00","position":2,"inventory_policy":"continue","compare_at_price":null,"option1":"Red","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_red","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008RED","weight":1.25,"weight_unit":"lb","inventory_item_id":49148385,"inventory_quantity":20,"old_inventory_quantity":20,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/49148385","image_id":null},{"id":39072856,"product_id":632910392,"title":"Green","price":"199.00","position":3,"inventory_policy":"continue","compare_at_price":null,"option1":"Green","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_green","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008GREEN","weight":1.25,"weight_unit":"lb","inventory_item_id":39072856,"inventory_quantity":30,"old_inventory_quantity":30,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/39072856","image_id":null},{"id":457924702,"product_id":632910392,"title":"Black","price":"199.00","position":4,"inventory_policy":"continue","compare_at_price":null,"option1":"Black","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_black","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008BLACK","weight":1.25,"weight_unit":"lb","inventory_item_id":457924702,"inventory_quantity":40,"old_inventory_quantity":40,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/457924702","image_id":null}],"options":[{"id":594680422,"product_id":632910392,"name":"Color","position":1,"values":["Pink","Red","Green","Black"]}],"images":[],"image":null}}
Update a product by reordering the product images
curl -d '{"product":{"id":632910392,"images":[{"id":850703190,"position":3},{"id":562641783,"position":2},{"id":378407906,"position":1}]}}' \ -X PUT "https://your-development-store.myshopify.com/admin/api/unstable/products/632910392.json" \ -H "X-Shopify-Access-Token: {access_token}" \ -H "Content-Type: application/json"
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.put({ path: 'products/632910392', data: {"product":{"id":632910392,"images":[{"id":850703190,"position":3},{"id":562641783,"position":2},{"id":378407906,"position":1}]}}, type: DataType.JSON, });
session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Rest::Admin.new( session: session ) response = client.put( path: 'products/632910392', body: { "product": { "id": 632910392, "images": [{"id"=>850703190, "position"=>3}, {"id"=>562641783, "position"=>2}, {"id"=>378407906, "position"=>1}] } }, )
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.put({ path: 'products/632910392', data: {"product":{"id":632910392,"images":[{"id":850703190,"position":3},{"id":562641783,"position":2},{"id":378407906,"position":1}]}}, type: DataType.JSON, });
response
HTTP/1.1 200 OK{"product":{"id":632910392,"title":"IPod Nano - 8GB","body_html":"<p>It's the small iPod with one very big idea: Video. Now the world's most popular music player, available in 4GB and 8GB models, lets you enjoy TV shows, movies, video podcasts, and more. The larger, brighter display means amazing picture quality. In six eye-catching colors, iPod nano is stunning all around. And with models starting at just $149, little speaks volumes.</p>","vendor":"Apple","product_type":"Cult Products","created_at":"2025-01-10T16:21:01-05:00","handle":"ipod-nano","updated_at":"2025-01-10T16:23:23-05:00","published_at":"2007-12-31T19:00:00-05:00","template_suffix":null,"published_scope":"web","tags":"Emotive, Flash Memory, MP3, Music","status":"active","admin_graphql_api_id":"gid://shopify/Product/632910392","variants":[{"id":808950810,"product_id":632910392,"title":"Pink","price":"199.00","position":1,"inventory_policy":"continue","compare_at_price":null,"option1":"Pink","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_pink","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008PINK","weight":1.25,"weight_unit":"lb","inventory_item_id":808950810,"inventory_quantity":10,"old_inventory_quantity":10,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/808950810","image_id":562641783},{"id":49148385,"product_id":632910392,"title":"Red","price":"199.00","position":2,"inventory_policy":"continue","compare_at_price":null,"option1":"Red","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_red","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008RED","weight":1.25,"weight_unit":"lb","inventory_item_id":49148385,"inventory_quantity":20,"old_inventory_quantity":20,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/49148385","image_id":null},{"id":39072856,"product_id":632910392,"title":"Green","price":"199.00","position":3,"inventory_policy":"continue","compare_at_price":null,"option1":"Green","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_green","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008GREEN","weight":1.25,"weight_unit":"lb","inventory_item_id":39072856,"inventory_quantity":30,"old_inventory_quantity":30,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/39072856","image_id":null},{"id":457924702,"product_id":632910392,"title":"Black","price":"199.00","position":4,"inventory_policy":"continue","compare_at_price":null,"option1":"Black","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_black","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008BLACK","weight":1.25,"weight_unit":"lb","inventory_item_id":457924702,"inventory_quantity":40,"old_inventory_quantity":40,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/457924702","image_id":null}],"options":[{"id":594680422,"product_id":632910392,"name":"Color","position":1,"values":["Pink","Red","Green","Black"]}],"images":[{"id":378407906,"alt":null,"position":1,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:23:23-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/220090436","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544203","variant_ids":[]},{"id":562641783,"alt":null,"position":2,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/1071517486","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano-2.png?v=1736544061","variant_ids":[808950810]},{"id":850703190,"alt":null,"position":3,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:23:23-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/498048120","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544203","variant_ids":[]}],"image":{"id":378407906,"alt":null,"position":1,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:23:23-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/220090436","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544203","variant_ids":[]}}}
Update a product by reordering the product variants
curl -d '{"product":{"id":632910392,"variants":[{"id":457924702},{"id":39072856},{"id":49148385},{"id":808950810}]}}' \ -X PUT "https://your-development-store.myshopify.com/admin/api/unstable/products/632910392.json" \ -H "X-Shopify-Access-Token: {access_token}" \ -H "Content-Type: application/json"
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.put({ path: 'products/632910392', data: {"product":{"id":632910392,"variants":[{"id":457924702},{"id":39072856},{"id":49148385},{"id":808950810}]}}, type: DataType.JSON, });
session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Rest::Admin.new( session: session ) response = client.put( path: 'products/632910392', body: { "product": { "id": 632910392, "variants": [{"id"=>457924702}, {"id"=>39072856}, {"id"=>49148385}, {"id"=>808950810}] } }, )
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.put({ path: 'products/632910392', data: {"product":{"id":632910392,"variants":[{"id":457924702},{"id":39072856},{"id":49148385},{"id":808950810}]}}, type: DataType.JSON, });
response
HTTP/1.1 200 OK{"product":{"id":632910392,"title":"IPod Nano - 8GB","body_html":"<p>It's the small iPod with one very big idea: Video. Now the world's most popular music player, available in 4GB and 8GB models, lets you enjoy TV shows, movies, video podcasts, and more. The larger, brighter display means amazing picture quality. In six eye-catching colors, iPod nano is stunning all around. And with models starting at just $149, little speaks volumes.</p>","vendor":"Apple","product_type":"Cult Products","created_at":"2025-01-10T16:21:01-05:00","handle":"ipod-nano","updated_at":"2025-01-10T16:23:52-05:00","published_at":"2007-12-31T19:00:00-05:00","template_suffix":null,"published_scope":"web","tags":"Emotive, Flash Memory, MP3, Music","status":"active","admin_graphql_api_id":"gid://shopify/Product/632910392","variants":[{"id":457924702,"product_id":632910392,"title":"Black","price":"199.00","position":1,"inventory_policy":"continue","compare_at_price":null,"option1":"Black","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:23:52-05:00","taxable":true,"barcode":"1234_black","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008BLACK","weight":1.25,"weight_unit":"lb","inventory_item_id":457924702,"inventory_quantity":40,"old_inventory_quantity":40,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/457924702","image_id":null},{"id":39072856,"product_id":632910392,"title":"Green","price":"199.00","position":2,"inventory_policy":"continue","compare_at_price":null,"option1":"Green","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:23:52-05:00","taxable":true,"barcode":"1234_green","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008GREEN","weight":1.25,"weight_unit":"lb","inventory_item_id":39072856,"inventory_quantity":30,"old_inventory_quantity":30,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/39072856","image_id":null},{"id":49148385,"product_id":632910392,"title":"Red","price":"199.00","position":3,"inventory_policy":"continue","compare_at_price":null,"option1":"Red","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:23:52-05:00","taxable":true,"barcode":"1234_red","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008RED","weight":1.25,"weight_unit":"lb","inventory_item_id":49148385,"inventory_quantity":20,"old_inventory_quantity":20,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/49148385","image_id":null},{"id":808950810,"product_id":632910392,"title":"Pink","price":"199.00","position":4,"inventory_policy":"continue","compare_at_price":null,"option1":"Pink","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:23:52-05:00","taxable":true,"barcode":"1234_pink","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008PINK","weight":1.25,"weight_unit":"lb","inventory_item_id":808950810,"inventory_quantity":10,"old_inventory_quantity":10,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/808950810","image_id":562641783}],"options":[{"id":594680422,"product_id":632910392,"name":"Color","position":1,"values":["Black","Green","Red","Pink"]}],"images":[{"id":850703190,"alt":null,"position":1,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/498048120","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]},{"id":562641783,"alt":null,"position":2,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/1071517486","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano-2.png?v=1736544061","variant_ids":[808950810]},{"id":378407906,"alt":null,"position":3,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/220090436","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]}],"image":{"id":850703190,"alt":null,"position":1,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/498048120","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]}}}
Update a product's SEO title and description
curl -d '{"product":{"id":632910392,"metafields_global_title_tag":"Brand new title","metafields_global_description_tag":"Brand new description"}}' \ -X PUT "https://your-development-store.myshopify.com/admin/api/unstable/products/632910392.json" \ -H "X-Shopify-Access-Token: {access_token}" \ -H "Content-Type: application/json"
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.put({ path: 'products/632910392', data: {"product":{"id":632910392,"metafields_global_title_tag":"Brand new title","metafields_global_description_tag":"Brand new description"}}, type: DataType.JSON, });
session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Rest::Admin.new( session: session ) response = client.put( path: 'products/632910392', body: { "product": { "id": 632910392, "metafields_global_title_tag": "Brand new title", "metafields_global_description_tag": "Brand new description" } }, )
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.put({ path: 'products/632910392', data: {"product":{"id":632910392,"metafields_global_title_tag":"Brand new title","metafields_global_description_tag":"Brand new description"}}, type: DataType.JSON, });
response
HTTP/1.1 200 OK{"product":{"id":632910392,"title":"IPod Nano - 8GB","body_html":"<p>It's the small iPod with one very big idea: Video. Now the world's most popular music player, available in 4GB and 8GB models, lets you enjoy TV shows, movies, video podcasts, and more. The larger, brighter display means amazing picture quality. In six eye-catching colors, iPod nano is stunning all around. And with models starting at just $149, little speaks volumes.</p>","vendor":"Apple","product_type":"Cult Products","created_at":"2025-01-10T16:21:01-05:00","handle":"ipod-nano","updated_at":"2025-01-10T16:21:01-05:00","published_at":"2007-12-31T19:00:00-05:00","template_suffix":null,"published_scope":"web","tags":"Emotive, Flash Memory, MP3, Music","status":"active","admin_graphql_api_id":"gid://shopify/Product/632910392","variants":[{"id":808950810,"product_id":632910392,"title":"Pink","price":"199.00","position":1,"inventory_policy":"continue","compare_at_price":null,"option1":"Pink","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_pink","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008PINK","weight":1.25,"weight_unit":"lb","inventory_item_id":808950810,"inventory_quantity":10,"old_inventory_quantity":10,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/808950810","image_id":562641783},{"id":49148385,"product_id":632910392,"title":"Red","price":"199.00","position":2,"inventory_policy":"continue","compare_at_price":null,"option1":"Red","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_red","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008RED","weight":1.25,"weight_unit":"lb","inventory_item_id":49148385,"inventory_quantity":20,"old_inventory_quantity":20,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/49148385","image_id":null},{"id":39072856,"product_id":632910392,"title":"Green","price":"199.00","position":3,"inventory_policy":"continue","compare_at_price":null,"option1":"Green","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_green","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008GREEN","weight":1.25,"weight_unit":"lb","inventory_item_id":39072856,"inventory_quantity":30,"old_inventory_quantity":30,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/39072856","image_id":null},{"id":457924702,"product_id":632910392,"title":"Black","price":"199.00","position":4,"inventory_policy":"continue","compare_at_price":null,"option1":"Black","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_black","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008BLACK","weight":1.25,"weight_unit":"lb","inventory_item_id":457924702,"inventory_quantity":40,"old_inventory_quantity":40,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/457924702","image_id":null}],"options":[{"id":594680422,"product_id":632910392,"name":"Color","position":1,"values":["Pink","Red","Green","Black"]}],"images":[{"id":850703190,"alt":null,"position":1,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/498048120","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]},{"id":562641783,"alt":null,"position":2,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/1071517486","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano-2.png?v=1736544061","variant_ids":[808950810]},{"id":378407906,"alt":null,"position":3,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/220090436","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]}],"image":{"id":850703190,"alt":null,"position":1,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/498048120","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]}}}
Update a product's status
curl -d '{"product":{"id":632910392,"status":"draft"}}' \ -X PUT "https://your-development-store.myshopify.com/admin/api/unstable/products/632910392.json" \ -H "X-Shopify-Access-Token: {access_token}" \ -H "Content-Type: application/json"
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.put({ path: 'products/632910392', data: {"product":{"id":632910392,"status":"draft"}}, type: DataType.JSON, });
session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Rest::Admin.new( session: session ) response = client.put( path: 'products/632910392', body: { "product": { "id": 632910392, "status": "draft" } }, )
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.put({ path: 'products/632910392', data: {"product":{"id":632910392,"status":"draft"}}, type: DataType.JSON, });
response
HTTP/1.1 200 OK{"product":{"id":632910392,"title":"IPod Nano - 8GB","body_html":"<p>It's the small iPod with one very big idea: Video. Now the world's most popular music player, available in 4GB and 8GB models, lets you enjoy TV shows, movies, video podcasts, and more. The larger, brighter display means amazing picture quality. In six eye-catching colors, iPod nano is stunning all around. And with models starting at just $149, little speaks volumes.</p>","vendor":"Apple","product_type":"Cult Products","created_at":"2025-01-10T16:21:01-05:00","handle":"ipod-nano","updated_at":"2025-01-10T16:23:54-05:00","published_at":null,"template_suffix":null,"published_scope":"web","tags":"Emotive, Flash Memory, MP3, Music","status":"draft","admin_graphql_api_id":"gid://shopify/Product/632910392","variants":[{"id":808950810,"product_id":632910392,"title":"Pink","price":"199.00","position":1,"inventory_policy":"continue","compare_at_price":null,"option1":"Pink","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_pink","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008PINK","weight":1.25,"weight_unit":"lb","inventory_item_id":808950810,"inventory_quantity":10,"old_inventory_quantity":10,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/808950810","image_id":562641783},{"id":49148385,"product_id":632910392,"title":"Red","price":"199.00","position":2,"inventory_policy":"continue","compare_at_price":null,"option1":"Red","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_red","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008RED","weight":1.25,"weight_unit":"lb","inventory_item_id":49148385,"inventory_quantity":20,"old_inventory_quantity":20,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/49148385","image_id":null},{"id":39072856,"product_id":632910392,"title":"Green","price":"199.00","position":3,"inventory_policy":"continue","compare_at_price":null,"option1":"Green","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_green","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008GREEN","weight":1.25,"weight_unit":"lb","inventory_item_id":39072856,"inventory_quantity":30,"old_inventory_quantity":30,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/39072856","image_id":null},{"id":457924702,"product_id":632910392,"title":"Black","price":"199.00","position":4,"inventory_policy":"continue","compare_at_price":null,"option1":"Black","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_black","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008BLACK","weight":1.25,"weight_unit":"lb","inventory_item_id":457924702,"inventory_quantity":40,"old_inventory_quantity":40,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/457924702","image_id":null}],"options":[{"id":594680422,"product_id":632910392,"name":"Color","position":1,"values":["Pink","Red","Green","Black"]}],"images":[{"id":850703190,"alt":null,"position":1,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/498048120","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]},{"id":562641783,"alt":null,"position":2,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/1071517486","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano-2.png?v=1736544061","variant_ids":[808950810]},{"id":378407906,"alt":null,"position":3,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/220090436","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]}],"image":{"id":850703190,"alt":null,"position":1,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/498048120","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]}}}
Update a product's tags
curl -d '{"product":{"id":632910392,"tags":"Barnes & Noble, John's Fav"}}' \ -X PUT "https://your-development-store.myshopify.com/admin/api/unstable/products/632910392.json" \ -H "X-Shopify-Access-Token: {access_token}" \ -H "Content-Type: application/json"
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.put({ path: 'products/632910392', data: {"product":{"id":632910392,"tags":"Barnes & Noble, John's Fav"}}, type: DataType.JSON, });
session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Rest::Admin.new( session: session ) response = client.put( path: 'products/632910392', body: { "product": { "id": 632910392, "tags": "Barnes & Noble, John's Fav" } }, )
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.put({ path: 'products/632910392', data: {"product":{"id":632910392,"tags":"Barnes & Noble, John's Fav"}}, type: DataType.JSON, });
response
HTTP/1.1 200 OK{"product":{"id":632910392,"title":"IPod Nano - 8GB","body_html":"<p>It's the small iPod with one very big idea: Video. Now the world's most popular music player, available in 4GB and 8GB models, lets you enjoy TV shows, movies, video podcasts, and more. The larger, brighter display means amazing picture quality. In six eye-catching colors, iPod nano is stunning all around. And with models starting at just $149, little speaks volumes.</p>","vendor":"Apple","product_type":"Cult Products","created_at":"2025-01-10T16:21:01-05:00","handle":"ipod-nano","updated_at":"2025-01-10T16:23:18-05:00","published_at":"2007-12-31T19:00:00-05:00","template_suffix":null,"published_scope":"web","tags":"Barnes & Noble, John's Fav","status":"active","admin_graphql_api_id":"gid://shopify/Product/632910392","variants":[{"id":808950810,"product_id":632910392,"title":"Pink","price":"199.00","position":1,"inventory_policy":"continue","compare_at_price":null,"option1":"Pink","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_pink","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008PINK","weight":1.25,"weight_unit":"lb","inventory_item_id":808950810,"inventory_quantity":10,"old_inventory_quantity":10,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/808950810","image_id":562641783},{"id":49148385,"product_id":632910392,"title":"Red","price":"199.00","position":2,"inventory_policy":"continue","compare_at_price":null,"option1":"Red","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_red","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008RED","weight":1.25,"weight_unit":"lb","inventory_item_id":49148385,"inventory_quantity":20,"old_inventory_quantity":20,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/49148385","image_id":null},{"id":39072856,"product_id":632910392,"title":"Green","price":"199.00","position":3,"inventory_policy":"continue","compare_at_price":null,"option1":"Green","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_green","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008GREEN","weight":1.25,"weight_unit":"lb","inventory_item_id":39072856,"inventory_quantity":30,"old_inventory_quantity":30,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/39072856","image_id":null},{"id":457924702,"product_id":632910392,"title":"Black","price":"199.00","position":4,"inventory_policy":"continue","compare_at_price":null,"option1":"Black","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_black","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008BLACK","weight":1.25,"weight_unit":"lb","inventory_item_id":457924702,"inventory_quantity":40,"old_inventory_quantity":40,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/457924702","image_id":null}],"options":[{"id":594680422,"product_id":632910392,"name":"Color","position":1,"values":["Pink","Red","Green","Black"]}],"images":[{"id":850703190,"alt":null,"position":1,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/498048120","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]},{"id":562641783,"alt":null,"position":2,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/1071517486","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano-2.png?v=1736544061","variant_ids":[808950810]},{"id":378407906,"alt":null,"position":3,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/220090436","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]}],"image":{"id":850703190,"alt":null,"position":1,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/498048120","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]}}}
Update a product's title
curl -d '{"product":{"id":632910392,"title":"New product title"}}' \ -X PUT "https://your-development-store.myshopify.com/admin/api/unstable/products/632910392.json" \ -H "X-Shopify-Access-Token: {access_token}" \ -H "Content-Type: application/json"
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.put({ path: 'products/632910392', data: {"product":{"id":632910392,"title":"New product title"}}, type: DataType.JSON, });
session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Rest::Admin.new( session: session ) response = client.put( path: 'products/632910392', body: { "product": { "id": 632910392, "title": "New product title" } }, )
import { DataType } from '@shopify/shopify-api'; const client = new shopify.clients.Rest({session}); const data = await client.put({ path: 'products/632910392', data: {"product":{"id":632910392,"title":"New product title"}}, type: DataType.JSON, });
response
HTTP/1.1 200 OK{"product":{"id":632910392,"title":"New product title","body_html":"<p>It's the small iPod with one very big idea: Video. Now the world's most popular music player, available in 4GB and 8GB models, lets you enjoy TV shows, movies, video podcasts, and more. The larger, brighter display means amazing picture quality. In six eye-catching colors, iPod nano is stunning all around. And with models starting at just $149, little speaks volumes.</p>","vendor":"Apple","product_type":"Cult Products","created_at":"2025-01-10T16:21:01-05:00","handle":"ipod-nano","updated_at":"2025-01-10T16:23:20-05:00","published_at":"2007-12-31T19:00:00-05:00","template_suffix":null,"published_scope":"web","tags":"Emotive, Flash Memory, MP3, Music","status":"active","admin_graphql_api_id":"gid://shopify/Product/632910392","variants":[{"id":808950810,"product_id":632910392,"title":"Pink","price":"199.00","position":1,"inventory_policy":"continue","compare_at_price":null,"option1":"Pink","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_pink","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008PINK","weight":1.25,"weight_unit":"lb","inventory_item_id":808950810,"inventory_quantity":10,"old_inventory_quantity":10,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/808950810","image_id":562641783},{"id":49148385,"product_id":632910392,"title":"Red","price":"199.00","position":2,"inventory_policy":"continue","compare_at_price":null,"option1":"Red","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_red","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008RED","weight":1.25,"weight_unit":"lb","inventory_item_id":49148385,"inventory_quantity":20,"old_inventory_quantity":20,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/49148385","image_id":null},{"id":39072856,"product_id":632910392,"title":"Green","price":"199.00","position":3,"inventory_policy":"continue","compare_at_price":null,"option1":"Green","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_green","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008GREEN","weight":1.25,"weight_unit":"lb","inventory_item_id":39072856,"inventory_quantity":30,"old_inventory_quantity":30,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/39072856","image_id":null},{"id":457924702,"product_id":632910392,"title":"Black","price":"199.00","position":4,"inventory_policy":"continue","compare_at_price":null,"option1":"Black","option2":null,"option3":null,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","taxable":true,"barcode":"1234_black","fulfillment_service":"manual","grams":567,"inventory_management":"shopify","requires_shipping":true,"sku":"IPOD2008BLACK","weight":1.25,"weight_unit":"lb","inventory_item_id":457924702,"inventory_quantity":40,"old_inventory_quantity":40,"presentment_prices":[{"price":{"amount":"199.00","currency_code":"USD"},"compare_at_price":null}],"admin_graphql_api_id":"gid://shopify/ProductVariant/457924702","image_id":null}],"options":[{"id":594680422,"product_id":632910392,"name":"Color","position":1,"values":["Pink","Red","Green","Black"]}],"images":[{"id":850703190,"alt":null,"position":1,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/498048120","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]},{"id":562641783,"alt":null,"position":2,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/1071517486","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano-2.png?v=1736544061","variant_ids":[808950810]},{"id":378407906,"alt":null,"position":3,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/220090436","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]}],"image":{"id":850703190,"alt":null,"position":1,"product_id":632910392,"created_at":"2025-01-10T16:21:01-05:00","updated_at":"2025-01-10T16:21:01-05:00","admin_graphql_api_id":"gid://shopify/MediaImage/498048120","width":123,"height":456,"src":"https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1736544061","variant_ids":[]}}}
Anchor to DELETE request, Delete a productdelDelete a product
Deletes a product.
Anchor to Parameters of Delete a productParameters
Delete a product along with all its variants and images
Delete a product along with all its variants and images
/admin/api/unstable/products/632910392. json
Response
examples
Delete a product along with all its variants and images
curl -X DELETE "https://your-development-store.myshopify.com/admin/api/unstable/products/632910392.json" \ -H "X-Shopify-Access-Token: {access_token}"
const client = new shopify.clients.Rest({session}); const data = await client.delete({ path: 'products/632910392', });
session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Rest::Admin.new( session: session ) response = client.delete( path: 'products/632910392', )
const client = new shopify.clients.Rest({session}); const data = await client.delete({ path: 'products/632910392', });
response
HTTP/1.1 200 OK{}