Ditextil Inventory

Operaciones completas para la API de inventario Ditextil

📦 Producto → Listar Productos

AI-generated

Summary

Lists products from the Ditextil inventory API (GET /api/products), with optional filters for text search, status, stock, category, supplier, color, warehouse, price range and image presence. Optionally trims each returned product to a chosen set of fields.

Inputs

  • Buscar (q) — Free-text search, e.g. product name or SKU.
  • Estado (status) — Product status: active, inactive, draft; empty means all.
  • Estado de Stock (stockStatus) — 'in' for products with stock, 'out' for without; sent as stock_status.
  • Categoría / ID Categoría — Filter by category name (category) or by category ID chosen from a loaded list (category_id).
  • Proveedor / ID Proveedor — Supplier filter. Only the ID (supplier_id) is sent to the API; the free-text 'Proveedor' field is not used by this operation's request.
  • Familia de Color — Filter by color family (color_family).
  • ID Bodega (stock) — Warehouse ID selected from a loaded list (warehouse_id).
  • Solo Con Stock — When true, sends only_available=1.
  • Sin Categoría / Sin Proveedor — Booleans; when true, return only products with no category / no supplier.
  • Precio Mínimo / Precio Máximo — Price bounds; a value of 0 is ignored.
  • Sin Imagen / Con Imagen — Booleans to restrict to products without / with an image.
  • Campos a devolver (fields) — Comma-separated field names (e.g. id, name, sales_price, sku). Sent to the API and also applied client-side, so only those keys remain on each product.

Output shape

One n8n item per product returned by the API, as JSON objects (all fields, or only those listed in 'Campos a devolver').

Runs once per input item. Empty or zero filters are omitted from the query. No pagination parameters are exposed. With 'Continue on Fail' enabled, errors are returned as an item with an 'error' message. Requires the ditextilApi credential.

Examples

Example 1: Get active products that are in stock with only key fields

Estado=Activo, Estado de Stock=Con Stock, Campos a devolver='id, name, sku, sales_price'

Example 2: Find products missing images in a price band

Sin Imagen=true, Precio Mínimo=1000, Precio Máximo=5000

Example 3: Search for a product by SKU text

Buscar='SKU-001'

Links

Discussion