Update Product

Update an existing product with the provided details.

🔒

Requires write_product access scope. For more access scope

📘

Important Note: When updating the same product, the updateProduct API is more performant than updateVariant. If there are multiple updates for the same product (e.g., updating variant prices), it is strongly recommended to use updateProduct to avoid potential locking issues. This ensures better performance and reduces delays.

The Update Product API allows developers to update product details by using its unique domain prefix (shopdomain) and providing various configurable fields. This endpoint supports modifying specific fields such as product title, description, variants and images. It is particularly useful for managing product catalog updates and maintaining accurate product information.This API is especially useful for:

  1. Updating product metadata like title, description, and SEO fields through its unique identifier (product_id).

  2. Managing product variants, options, and inventory details.

Request Parameters

Public Request Parameters

📘

Path Parameters

ParameterTypeRequiredDescriptionExample
product_idstringYesUnique identifier of the product to update"prod_123456789"

Body Parameters

ParameterTypeRequiredDescriptionExample
product_idstringNoProduct identifier confirmation"prod_123456789"
no_entitybooleanNoReturn empty object on successfalse
productobjectNoContainer for product updates-
product.titlestringNoProduct display name"Premium Wireless Headphones"
product.briefstringNoShort description"Noise-cancelling Bluetooth"
product.descriptionstringNoFull description"40hr battery life..."
product.publishedbooleanNoPublication statustrue
product.require_shippingbooleanNoShipping requirementtrue
product.taxablebooleanNoTaxable statustrue
product.tagsobjectNoProduct tags-
product.tags.valuesarray of stringsNoTag values["audio", "wireless"]
product.vendorstringNoManufacturer name"Sony"
product.vendor_urlstringNoVendor website"https://sony.com"
product.notestringNoInternal notes"2025 summer collection"
product.seo_titlestringNoSEO title"Best Wireless Headphones"
product.seo_descriptionstringNoSEO description"Premium audio quality"
product.seo_keywordsobjectNoSEO keywords-
product.seo_keywords.valuesarray of stringsNoKeyword values["headphones", "bluetooth"]
product.handlestringNoURL handle"premium-headphones"
product. has_only_default_variantbooleanNoSingle variant flagfalse
product.inventory_trackingbooleanNoInventory trackingtrue
product.inventory_policystringNoInventory policy"deny"
product.inventory_quantitystringNoStock quantity"150"
product.spustringNoStandard product unit"SPU12345"
product.fake_salesstringNoDisplay sales count"100"
product.display_fake_salesbooleanNoShow fake salestrue
product.imagesarray of objectsNoProduct images-
product.images.srcstringNoImage URL"https://example.com/image.jpg"
product.images.widthint32NoImage width800
product.images.heightint32NoImage height600
product.images.altstringNoAlt text"Black headphones"
product.optionsarray of objectsNoProduct options-
product.options.namestringNoOption name"Color"
product.options.valuesarray of stringsNoOption values["Black", "White"]
product.variantsarray of objectsNoProduct variants-
product.variants.idstringNoVariant ID"var_123456"
product.variants.option1stringNoOption 1 value"Black"
product.variants.option2stringNoOption 2 value"Large"
product.variants.option3stringNoOption 3 value""
product.variants.imageobjectNoVariant image-
product.variants. image.srcstringNoImage URL"https://example.com/variant.jpg"
product.variants. image.widthint32NoImage width800
product.variants. image.heightint32NoImage height600
product.variants. image.altstringNoAlt text"Black variant"
product.variants. compare_at_pricedoubleNoOriginal price199.99
product.variants.pricedoubleNoSelling price149.99
product.variants.skustringNoStock keeping unit"SKU123BLK"
product.variants.barcodestringNoProduct barcode"123456789"
product.variants.notestringNoVariant notes"New stock"
product.variants.weightdoubleNoProduct weight0.5
product.variants. weight_unitstringNoWeight unit"kg"
product.variants. cost_pricedoubleNoCost price89.99
product.variants. whole_pricesarray of objectsNoWholesale prices-
product.variants. whole_prices.pricefloatNoWholesale price129.99
product.variants. whole_prices.min_quantitystringNoMinimum order"10"
product.variants. retail_pricedoubleNoRetail price149.99
product.variants.image_idstringNoImage reference"img_123456"
product.variants.extendobjectNoExtended properties-
product.variants. extend.inventory_quantitystringNoVariant stock"50"
product.collection_idsobjectNoProduct collections-
product.collection_ids. valuesarray of stringsNoCollection IDs["coll_123", "coll_456"]
product.need_variant_imagebooleanNoVariant image requirementtrue
product.need_shippingbooleanNoShipping requirementtrue

Response Explanation

Public Response Parameters

📘

Successful Response

ParameterTypeExampleDescription
codestring"200"HTTP status code
messagestring"Success"Operation result message
data.productobjects-

Product Object

ParameterTypeExampleDescription
idstring"prod_123"Product ID
titlestring"Wireless Headphones"Product title
descriptionstring"Noise-cancelling wireless headphones"Product description
publishedbooleantruePublished status
requires_shippingbooleantrueShipping requirement
taxablebooleantrueTaxable status
tagsarray of strings["audio", "wireless"]Product tags
vendorstring"Sony"Vendor name
vendor_urlstring"https://sony.com"Vendor URL
notestring"Limited edition"Internal note
seo_titlestring"Premium Headphones"SEO title
seo_descriptionstring"Buy best wireless headphones"SEO description
seo_keywordsarray of strings["headphones", "audio"]SEO keywords
handlestring"wireless-headphones"Product handle
has_only_default_variantbooleanfalseSingle variant flag
inventory_trackingbooleantrueInventory tracking
inventory_policystring"deny"Inventory policy
need_variant_imagebooleantrueVariant image requirement
spustring"SPU123"Standard product unit
fake_salesstring"100"Display sales count
display_fake_salesbooleantrueShow fake sales
optionsarray of objects-Product options
options.idstring"opt_123"Option ID
options.namestring"Color"Option name
options.valuesarray of strings["Black", "White"]Option values
options.positionstring"1"Option position
imagesarray of objects-Product images
images.idstring"img_123"Image ID
images.srcstring"https://example. com/image.jpg"Image URL
images.widthint32800Image width
images.heightint32600Image height
images.altstring"Black headphones"Image alt text
images.positionstring"1"Image position
images.pathstring"/images/headphones"Image path
variantsarray of objects-Product variants
variants.idstring"var_123"Variant ID
variants.product_idstring"prod_123"Parent product ID
variants.image_idstring"img_123"Variant image ID
variants.created_atstring"2025-01-01T00:00:00Z"Creation time
variants.updated_atstring"2025-06-01T00:00:00Z"Update time
variants.titlestring"Black"Variant title
variants.option1string"Black"Option 1 value
variants.option2string"Large"Option 2 value
variants.option3string""Option 3 value
variants.imageobject-Variant image
variants.image.positionstring"1"Image position
variants.compare_at_pricefloat199.99Compare at price
variants.pricefloat149.99Current price
variants.skustring"SKU123BLK"Stock keeping unit
variants.barcodestring"123456789"Barcode
variants.notestring"New stock"Variant note
variants. inventory_quantitystring"50"Inventory count
variants.weightfloat0.5Product weight
variants.weight_unitstring"kg"Weight unit
variants.cost_pricefloat89.99Cost price
variants.whole_pricesarray of objects-Wholesale prices
variants. whole_prices.pricefloat129.99Wholesale price
variants.whole_prices. min_quantitystring"10"Minimum quantity
variants. retail_pricefloat149.99Retail price
variants. is_discountbooleanfalseDiscount status
variants. origin_pricefloat149.99Original price
variants. extendobject-Extended properties
variants. extend.lengthfloat20.5Product length
variants. extend.widthfloat15.0Product width
variants. extend.heightfloat5.0Product height
variants.extend. dimension_unitstring"cm"Dimension unit
variants.extend. origin_country_codestring"CN"Country of origin
variants.extend. hs_codestring"8518.29"HS code
variants.extend. mixed_wholesalebooleanfalseMixed wholesale
product_typestring"electronics"Product type
brandstring"Sony"Product brand
briefstring"Premium audio"Brief description
inventory_quantitystring"150"Total inventory
price_minfloat149.99Minimum price
price_maxfloat199.99Maximum price
compare_at_price_minfloat199.99Minimum compare price
compare_at_price_maxfloat249.99Maximum compare price
published_atstring"2025-05-15T00:00:00Z"Publish date
created_atstring"2025-01-01T00:00:00Z"Creation date
updated_atstring"2025-06-01T00:00:00Z"Update date
salesstring"75"Actual sales count
independent_seobooleantrueCustom SEO flag
urlstring"/products/wireless-headphones"Product URL
availablebooleantrueAvailability status
retail_price_minfloat149.99Minimum retail price
retail_price_maxfloat199.99Maximum retail price
origin_price_minfloat149.99Minimum original price
origin_price_maxfloat199.99Maximum original price
primary_imageobject-Primary image
primary_image.srcstring"https://example. com/primary.jpg"Image URL
primary_image.widthint32800Image width
primary_image.heightint32600Image height
primary_image.altstring"Primary product image"Alt text
primary_image.pathstring"/images/primary"Image path
tax_codestring"TAX123"Tax code
category_idstring"cat_123"Category ID
categoryobject-Category details
category.idstring"cat_123"Category ID
category.namestring"Electronics"Category name
category.google_idstring"12345"Google category ID
category.levelint322Category level
category.pathstring"Electronics/Audio"Category path

Error Response

FieldTypeExampleDescription
codestringInvalidParameterError http message
messagestring``Error message
Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!