Ditextil Inventory

Operaciones completas para la API de inventario Ditextil

📰 Reportes (legacy) → Reporte WhatsApp Stock

AI-generated

Summary

Fetches the legacy stock report (used for WhatsApp stock messages) from the Ditextil API via GET /api/reports/stock, optionally filtered by stock status, category, and supplier.

Inputs

  • Estado de Stock (stockStatus) — 'Todos' (default, empty) applies no stock filter; 'Solo Con Stock' sends stock_status=in to return only items with stock.
  • Categoría (category) — Category name as free text, sent as the 'category' query parameter. Omitted if empty.
  • Proveedor (supplier) — Supplier name as free text, sent as the 'supplier' query parameter. Omitted if empty.

Output shape

The JSON response from /api/reports/stock, emitted as one n8n item per element if the API returns an array, or a single item if it returns an object. Each item is linked to its input item.

The response structure is defined by the Ditextil API and is not visible in the node source. The request runs once per input item. With 'Continue on Fail' enabled, errors are returned as an item with an 'error' message. Requires the ditextilApi credential, whose base URL is used for the request.

Examples

Example 1: Send a daily WhatsApp message listing only products in stock

Resource: Reportes (legacy); Operation: Reporte WhatsApp Stock; Estado de Stock: Solo Con Stock; leave Categoría and Proveedor empty.

Example 2: Stock report for one supplier's fabrics

Estado de Stock: Todos; Categoría: 'Telas'; Proveedor: the supplier name.

Links

Discussion