Ditextil Inventory

Operaciones completas para la API de inventario Ditextil

📊 Stock → Balance Por Bodega

AI-generated

Summary

Retrieves current stock balances from the Ditextil inventory API (GET /api/stock), optionally limited to one warehouse and/or to items with available stock.

Inputs

  • warehouseId — Warehouse to filter by, chosen from a dropdown loaded from the API's warehouse list. If left empty (or resolves to 0), no warehouse filter is sent and balances are not restricted to one warehouse.
  • stockOnlyAvailable — Boolean, default false. When true, sends only_available=1 so only items with available stock are requested. When false, the parameter is omitted.

Output shape

The API's JSON response, emitted as n8n items. An array response becomes one item per element, and a single object becomes one item. Each output item is linked to the input item that produced it.

The exact fields in each balance record are defined by the Ditextil API and not by this node. The request runs once per input item. With 'Continue on Fail' enabled, a failed item yields an item with an 'error' message instead of stopping the workflow. Authentication uses the ditextilApi credential, which also supplies the base URL.

Examples

Example 1: Get all stock balances across every warehouse

Resource: Stock; Operation: Balance Por Bodega; leave ID Bodega empty and Solo Disponibles off.

Example 2: List only items with available stock in one warehouse

Select the warehouse in ID Bodega and turn Solo Disponibles on.

Links

Discussion