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
Key | Datatype | Required | Description |
---|---|---|---|
product_id | string | Defines the product where the price has to be deleted | |
name | string | Coupon name | |
model | string | Defines product model that has to be updated | |
price | string | Defines new product's price | |
attributes | string | Defines variant's attributes list | |
description | string | The user-friendly description | |
special_price | string | Defines new product's special price | |
sprice_create | string | Defines the date of special price creation | |
sprice_modified | string | Defines the date of special price modification | |
sprice_expire | string | Defines the term of special price offer duration | |
available_for_view | string | Specifies the set of visible/invisible product's variants for users | |
available_for_sale | string | Specifies the set of visible/invisible product's variants for sale | |
weight | string | Weight | |
short_description | string | Defines short description | |
warehouse_id | string | This parameter is used for selecting a warehouse where you need to set/modify a product quantity. | |
quantity | string | Defines new product's quantity | |
created_at | string | Defines the date of entity creation | |
manufacturer | string | Defines product's manufacturer | |
tax_class_id | string | Defines tax classes where entity has to be added | |
meta_title | string | Defines unique meta title for each entity | |
meta_keywords | string | Defines unique meta keywords for each entity | |
meta_description | string | Defines unique meta description of a entity | |
url | string | Defines URL of the image that has to be added | |
store_id | string | Defines store id where the webhook should be assigned |