Create Simple Product
This API is offering to create Simple Product.
Name
Value
{
"product": {
"sku": "your-product-sku",
"name": "Your Product Name",
"attribute_set_id": 4,
"price": 99.99,
"status": 1,
"visibility": 4,
"type_id": "simple",
"weight": 1.0,
"media_gallery_entries": [
{
"media_type": "image",
"label": "Image Label",
"position": 0,
"disabled": 0,
"types": [
"image",
"small_image",
"thumbnail",
"media_gallery"
],
"file": "rbj1.jpeg",
"content": {
"base64_encoded_data": "<base64_encoded_string>",
"type": "image/png",
"name": "rbj1.jpeg"
}
}
],
"extension_attributes": {
"stock_item": {
"qty": 10,
"is_in_stock": true
}
},
"custom_attributes": [
{
"attribute_code": "description",
"value": "<p>html <b>description here</b></p>"
},
{
"attribute_code": "short_description",
"value": "<p>html <b>short description here</b></p>"
},
{
"attribute_code": "meta_title",
"value": "Product Meta Title"
},
{
"attribute_code": "meta_keyword",
"value": "product, keywords, magento"
},
{
"attribute_code": "meta_description",
"value": "Meta description for the product."
},
{
"attribute_code": "Vendor_id",
"value": "Vendor Product ID."
}
]
}
}Product Attributes Overview
Media Attributes
Stock Attributes
Custom Attributes
Last updated