Post Product Variant Add

POST {{baseUrl}}/product.variant.add.json?product_id=<string>&name=<string>&model=<string>&price=<number>&attributes=<array>&description=<string>&special_price=<object>&sprice_create=<string>&sprice_modified=<string>&sprice_expire=<string>&available_for_view=<boolean>&available_for_sale=<boolean>&weight=<number>&short_description=<string>&warehouse_id=<string>&quantity=<number>&created_at=<string>&manufacturer=<string>&tax_class_id=<string>&meta_title=<string>&meta_keywords=<string>&meta_description=<string>&url=<string>&store_id=<string>

Add variant to product.

Request Params

KeyDatatypeRequiredDescription
product_idstringDefines the product where the price has to be deleted
namestringCoupon name
modelstringDefines product model that has to be updated
pricestringDefines new product's price
attributesstringDefines variant's attributes list
descriptionstringThe user-friendly description
special_pricestringDefines new product's special price
sprice_createstringDefines the date of special price creation
sprice_modifiedstringDefines the date of special price modification
sprice_expirestringDefines the term of special price offer duration
available_for_viewstringSpecifies the set of visible/invisible product's variants for users
available_for_salestringSpecifies the set of visible/invisible product's variants for sale
weightstringWeight
short_descriptionstringDefines short description
warehouse_idstringThis parameter is used for selecting a warehouse where you need to set/modify a product quantity.
quantitystringDefines new product's quantity
created_atstringDefines the date of entity creation
manufacturerstringDefines product's manufacturer
tax_class_idstringDefines tax classes where entity has to be added
meta_titlestringDefines unique meta title for each entity
meta_keywordsstringDefines unique meta keywords for each entity
meta_descriptionstringDefines unique meta description of a entity
urlstringDefines URL of the image that has to be added
store_idstringDefines store id where the webhook should be assigned