product
product.variant.add
Add variant to product.
post/product.variant.add.json
Request
- Base URL: https://api.api2cart.com/v1.1
- URL: https://api.api2cart.com/v1.1/product.variant.add.json
- Auth: API key in header x-api-key and API key in header x-store-key
Request body
Example request
{
"name": "Bag Green XXL",
"model": "bag_01",
"description": "Product variant",
"short_description": "Short description. This is very short description",
"status": "disabled",
"is_default": true,
"store_id": "1",
"stores_ids": "1,2",
"price": 99.9,
"old_price": 99.9,
"cost_price": 65.9,
"special_price": 56.9,
"sprice_create": "2018-08-25 23:56:12",
"sprice_modified": "2018-12-05 13:46:20",
"sprice_expire": "2018-08-25 23:56:12",
"measure_unit": "Piece",
"unit_price": 10.5,
"prices_inc_tax": true,
"quantity": 6,
"warehouse_id": "1",
"in_stock": true,
"backorder_status": "true",
"low_stock_threshold": 1,
"weight": 23.69,
"width": 56.12,
"height": 56.12,
"length": 56.12,
"weight_unit": "lb",
"sku": "bag_01",
"barcode": "9770317847001",
"gtin": "12345678912345",
"upc": "9770317847001",
"ean": "5901234123457",
"mpn": "9770317847001",
"isbn": "9783161484100",
"seo_url": "some seo url",
"manufacturer": "Samsung",
"created_at": "2014-08-09 13:13:13",
"meta_title": "category,test",
"meta_keywords": "category,test",
"meta_description": "category,test",
"url": "/product_variant_slug",
"fixed_cost_shipping_price": 5.5,
"is_free_shipping": true,
"country_of_origin": "123456",
"harmonized_system_code": "123456",
"marketplace_item_properties": "{\"color\":[\"Silver\"],\"manufacturer\":\"Philips\",\"features\":[\"3 way\"],\"countPerPack\":1,\"watts\":{\"unit\":\"W\",\"measure\":40}}",
"idempotency_key": "098f6bcd4621d373cade4e832627b4f6"
}Response
successful operation
Changes
No recorded changes to this operation across all 1 revision of this API.