Ditextil Inventory

Operaciones completas para la API de inventario Ditextil

📊 Stock → Reporte de Stock

AI-generated

Summary

Fetches the Ditextil stock report via GET /api/stock/report, optionally filtered by stock status, search text, category, supplier and warehouse, with configurable sorting and grouping.

Inputs

  • Estado de Stock (stockStatus) — Filter: Todos (no filter), Con Stock (in), or Sin Stock (out). Sent as stock_status.
  • Buscar (q) — Free-text search term passed to the API as q.
  • ID Categoría (categoryId) — Category chosen from a dynamically loaded list; sent as category_id.
  • ID Proveedor (supplierId) — Supplier chosen from a dynamically loaded list; sent as supplier_id.
  • ID Bodega (warehouseId) — Warehouse chosen from a dynamically loaded list; sent as warehouse_id.
  • Ordenar por (sortBy) — Sort order: id (default), name, stock_asc, stock_desc, price_asc, price_desc.
  • Agrupar por (groupBy) — Grouping: none (default), category, supplier, or status. Sent as group_by.

Output shape

The JSON response from the Ditextil API's stock report endpoint. Arrays become one n8n item per element; a single object becomes one item.

The exact response structure, including how grouping is represented, is defined by the remote API and not visible in the node source. Empty filters are omitted from the query. The node runs once per input item. With Continue On Fail enabled, errors are returned as an item with an error message.

Examples

Example 1: List out-of-stock products so you can send a restock alert

Estado de Stock = Sin Stock, Ordenar por = Nombre, Agrupar por = Proveedor

Example 2: Review the lowest-stock items in one warehouse

ID Bodega = a chosen warehouse, Estado de Stock = Con Stock, Ordenar por = Stock ↑

Example 3: Summarize inventory by category for a report

Agrupar por = Categoría, Ordenar por = Stock ↓

Links

Discussion