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
📊 Stock → Transferir Stock
AI-generatedSummary
Transfers a quantity of a product from one warehouse to another by sending a POST to the Ditextil API's /api/inventory/transfers endpoint.
Inputs
- ID Producto (required) — Numeric ID of the product to transfer (sent as product_id).
- Cantidad (required) — Quantity to move (sent as quantity). The node doesn't validate it, so the API decides what is valid.
- ID Bodega Origen (required) — Source warehouse, chosen from a list loaded from /api/warehouses (sent as from_warehouse_id).
- ID Bodega Destino (required) — Destination warehouse, chosen from the same warehouse list (sent as to_warehouse_id).
- Motivo — Free-text reason for the transfer. The UI default is empty. If the parameter is not available, the code falls back to 'Movimiento interno n8n'.
- Actor — Name recorded as the person or system making the transfer. Defaults to 'n8n'.
Output shape
The parsed JSON response from the Ditextil API for the transfer, returned as one or more n8n items for each input item. The item count depends on whether the API returns an object or an array.
The node runs once per input item. With Continue On Fail enabled, a failed item yields an item with an
errormessage instead of stopping the workflow. The response schema comes from the external API and isn't defined in the node. Requires the ditextilApi credential, which supplies the base URL.
Examples
Example 1: Move 50 units of product 15 from the main warehouse to a branch warehouse after a replenishment request.
ID Producto=15, Cantidad=50, ID Bodega Origen=main warehouse, ID Bodega Destino=branch warehouse, Motivo='Reposición sucursal', Actor='n8n'
Example 2: Transfer stock for each row of an incoming spreadsheet.
Map ID Producto, Cantidad and the two warehouse IDs from the input item fields with expressions. Leave Actor as 'n8n'.