Create Product

Create a new product with the provided details.

🔒

Requires write_product access scope. For more access scope

The Create Product API enables merchants to add new products to their store seamlessly. This endpoint supports detailed customization of product attributes, including title, price, inventory, and more.This API is especially useful for:

  1. Adding new products with tailored specifications such as descriptions, SEO details, and inventory settings.

  2. Simplifying product management with customizable fields like tags, variants, and vendor details.

Request Parameters

Public Request Parameters

📘

Body Parameters

ParameterTypeRequiredDescriptionExample
productobjectYesContainer for product data-
product.titlestringYesProduct display name"Wireless Headphones"
product.briefstringNoShort description"Noise-cancelling Bluetooth headphones"
product.descriptionstringNoFull product description"Premium wireless headphones with 30hr battery..."
product.publishedbooleanNoPublish statustrue
product.requires_shippingbooleanNoShipping requirementtrue
product.taxablebooleanNoTaxable statustrue
product.tagsarray of stringsNoProduct tags["audio", "wireless"]
product.vendorstringNoManufacturer name"Sony"
product.vendor_urlstringNoVendor website"https://sony.com"
product.notestringNoInternal notes"2025 summer collection"
product.seo_titlestringNoSEO title"Premium Wireless Headphones"
product.seo_descriptionstringNoSEO description"Buy best noise-cancelling headphones"
product.seo_keywordsarray of stringsNoSEO keywords["headphones", "bluetooth"]
product.handlestringNoURL handle"wireless-headphones"
product. has_only_default_variantbooleanYesSingle variant flagfalse
product.inventory_trackingbooleanNoInventory trackingtrue
product.inventory_policystringNoInventory policy"deny"
product.need_variant_imagebooleanNoVariant images requiredtrue
product.spustringNoStandard product unit"SPU123"
product.fake_salesstringNoDisplay sales count"100"
product.display_fake_salesbooleanNoShow fake salestrue
product.optionsarray of objectsYesProduct options-
product.options.namestringYesOption name"Color"
product.options.valuesarray of stringsYesOption values["Black", "White"]
product.imagesarray of objectsYesProduct images-
product.images.srcstringYesImage URL"https://example.com/image.jpg"
product.images.widthint32NoImage width800
product.images.heightint32NoImage height600
product.images.altstringNoAlt text"Black headphones"
product.images.pathstringNoImage path"/images/headphones"
product.variantsarray of objectsYesProduct variants-
product.variants.option1stringNoOption 1 value"Black"
product.variants.option2stringNoOption 2 value"Large"
product.variants. option3stringNoOption 3 value""
product.variants. imageobjectNoVariant image-
product.variants. image.srcstringYesImage 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. image.pathstringNoImage path"/images/variant"
product.variants. compare_at_pricefloatNoOriginal price199.99
product.variants. pricefloatYesSelling price149.99
product.variants.skustringNoStock keeping unit"SKU123BLK"
product.variants.barcodestringNoProduct barcode"123456789"
product.variants.notestringNoVariant notes"New stock"
product.variants. inventory_quantitystringNoStock quantity"50"
product.variants. weightfloatNoProduct weight0.5
product.variants. weight_unitstringNoWeight unit"kg"
product.variants. cost_pricefloatNoCost price89.99
product.variants. whole_pricesarray of objectsNoWholesale prices-
product.variants. whole_prices.pricefloatYesWholesale price129.99
product.variants. whole_prices.min_quantitystringYesMinimum order"10"
product.variants.retail_pricefloatNoRetail price149.99
product.variants.positionstringNoDisplay order"1"
product.variants.extendobjectNoExtended properties-
product.variants.extend. lengthfloatNoProduct length20.5
product.variants.extend. widthfloatNoProduct width15.0
product.variants.extend. heightfloatNoProduct height5.0
product.variants.extend. dimension_unitstringNoDimension unit"cm"
product.variants.extend. origin_country_codestringNoCountry of origin"CN"
product.variants.extend. hs_codestringNoHS code"8518.29"
product.variants.extend. mixed_wholesalebooleanNoMixed wholesalefalse
product.collection_idsarray of stringsNoCollection IDs["coll_123"]
product.product_typestringNoProduct category"electronics"
product.brandstringNoBrand name"Sony"
product.unique_tokenstringNoIdempotency key"e6cc4df1-d4f5-4ad4-a019-2e0f3ddd6e63"
product.independent_seobooleanNoCustom SEO flagtrue
product.inventory_quantitystringNoTotal inventory"150"
product.category_idstringNoCategory Id"e6cc4df1-d4f5-4ad4-a019-2e0f3ddd6e63"

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!