Actions36
- 📦 Producto Actions
- 📊 Stock Actions
- 📋 Movimiento Actions
- 🛒 Venta Actions
- 📥 Recepción Actions
- 📥 Borrador Recepción (n8n) Actions
- 📝 Borrador (texto) Actions
- 🤖 Propuesta IA Actions
- 🏭 Bodega Actions
- 👤 Cliente Actions
- 📚 Catálogo Actions
- 📰 Reportes (legacy) Actions
📦 Producto → Crear Producto
AI-generatedSummary
Creates a new product in the Ditextil inventory system by sending a POST to /api/products with the product name and any optional catalog, pricing, supplier and stock fields.
Inputs
- Nombre (productName) (required) — Product name; sent as
name. - SKU — Product SKU.
- Categoría / ID Categoría — Category by name (category_name) or by ID picked from a loaded list (category_id).
- Proveedor / ID Proveedor — Supplier by name (supplier_name) or by ID picked from a loaded list (supplier_id).
- Nombre del Sistema, Matcher code/type, Descripción, Familia de Color, Nombre WhatsApp — Optional descriptive and matching text fields.
- Precio Venta / Precio Costo — Sales and cost prices (numbers).
- Código de Barras / Odoo ID — Barcode and Odoo identifier. An Odoo ID of 0 is omitted.
- Imagen Original URL / Imagen Catálogo URL — Image URLs. Google Drive file links (/file/d/ID/ or id=ID) are normalized to https://drive.google.com/uc?id=ID.
- Metros por Rollo, Stock Mínimo, Stock Máximo — Numeric inventory settings. Metros por Rollo defaults to 30; the stock fields default to 0.
- Ubicación Física — Free-text warehouse location, e.g. 'Pasillo A - Estante 2'.
- Campos a devolver (fields) — Comma-separated field names. It is sent to the API as a query parameter, and the node also filters the response to those keys.
Output shape
One item per input item, containing the created product record as returned by the API.
Empty-string and null values are dropped from the request body. Numeric fields left at 0 are still sent, except Odoo ID and the category/supplier IDs. If 'Campos a devolver' is set, the output keeps only those keys. With Continue On Fail enabled, a failed item returns {error: message}.
Examples
Example 1: Register a new fabric product with supplier and prices
Nombre='Patriot Black', SKU='PAT-BLK', Categoría='Telas', Proveedor='Acme', Precio Venta=12.5, Precio Costo=8
Example 2: Create a product and get back only a few fields
Nombre='Vinil Rojo', Campos a devolver='id, name, sku'