Magento - Create Product
Description
Section titled “Description”This module allows creating products in Magento 2 with all attributes: price, stock, categories, SEO, and more.
Configuration
Section titled “Configuration”| Field | Type | Required | Description |
|---|---|---|---|
credentials_id | string | Yes | Credentials ID |
sku | string | Yes | Unique product SKU |
name | string | Yes | Product name |
price | number | Yes | Product price |
type_id | string | No | Type (default: simple) |
attribute_set_id | number | No | Attribute set (default: 4) |
status | string | No | 1=Enabled, 2=Disabled |
visibility | string | No | Catalog visibility |
weight | number | No | Weight in kg |
description | string | No | Full description |
short_description | string | No | Short description |
special_price | number | No | Special price |
qty | number | No | Stock quantity |
is_in_stock | boolean | No | Availability |
category_ids | string | No | Category IDs |
url_key | string | No | SEO-friendly URL |
meta_title | string | No | SEO meta title |
meta_description | string | No | SEO meta description |
Credentials
Section titled “Credentials”| Field | Description |
|---|---|
store_url | Magento store base URL (e.g.: https://mystore.com) |
access_token | Integration access token with catalog write permissions |
Output
Section titled “Output”{ "success": true, "product": {}, "sku": "PROD-001", "product_id": 123, "message": "Product \"Camiseta Azul\" created successfully with SKU PROD-001"}Usage Example
Section titled “Usage Example”Simple product
Section titled “Simple product”{ "credentials_id": "magento_tienda", "sku": "CAM-AZUL-M", "name": "Camiseta Azul Talla M", "price": 29.99, "qty": 100}Product with categories
Section titled “Product with categories”{ "credentials_id": "magento_tienda", "sku": "PHONE-X1", "name": "Smartphone X1", "price": 599.99, "category_ids": "2,5,10", "status": "1", "visibility": "4"}- The SKU must be unique across the entire store
- The default
attribute_set_idis 4 (Default) - Categories must already exist
- The
url_keymust be unique and without special characters
Related Nodes
Section titled “Related Nodes”- MagentoGetProducts - Get catalog products
- MagentoUpdateProduct - Update existing products
- MagentoGetOrders - Query orders with products