Ditextil Inventory

Operaciones completas para la API de inventario Ditextil

📋 Movimiento → Listar Movimientos

AI-generated

Summary

Lists inventory movements from the Ditextil API by sending a GET request to /api/movements, optionally filtered by product, warehouse, reference type and a search text.

Inputs

  • ID Producto (movementProductId) — Product ID to filter by. A value of 0 or empty is dropped from the request, so no product filter applies.
  • ID Bodega (warehouseId) — Warehouse to filter by, picked from a list loaded from /api/warehouses. Empty means all warehouses.
  • Tipo de Referencia (referenceType) — Filters by what caused the movement: sale, reception, reception_n8n, sale_cancellation, transfer, manual, or n8n. 'Todos' (empty) applies no filter.
  • Buscar (q) — Free-text search string sent as the q query parameter. Empty values are omitted.

Output shape

The API's JSON response, emitted as one n8n item per element if it returns an array, or a single item if it returns an object. Each output item is linked to its input item.

The node doesn't paginate or set a limit. Whatever /api/movements returns is passed through, and the exact fields of a movement depend on the API. The operation runs once per input item. With 'Continue on Fail' enabled, errors are returned as an item with an 'error' message. Requires the ditextilApi credential.

Examples

Example 1: Audit all movements for one product in a specific warehouse

Set ID Producto to 15 and choose a warehouse in ID Bodega. Leave Tipo de Referencia as 'Todos' and Buscar empty.

Example 2: Review recent sale cancellations

Set Tipo de Referencia to 'Cancelación' (sale_cancellation) and leave the other filters empty.

Example 3: Find movements matching a text term

Enter a term in Buscar, such as a reference or product name. Optionally add Tipo de Referencia 'Transferencia'.

Links

Discussion