Ditextil Inventory

Operaciones completas para la API de inventario Ditextil

📦 Producto → Obtener Producto

AI-generated

Summary

Fetch a single product from the Ditextil inventory API by its numeric ID, optionally limiting the returned fields.

Inputs

  • ID Producto (productId) (required) — Numeric ID of the product to retrieve. It is placed in the request path as GET /api/products/{id}.
  • Campos a devolver (fields) — Comma-separated list of field names to return, e.g. "id, name, sales_price, sku". It is sent as the fields query parameter. The node also filters the response client-side to keep only these keys. Leave empty to return the full product.

Output shape

One n8n item per input item, containing the product object returned by the Ditextil API (or only the requested fields).

Field filtering keeps only the listed keys that exist on the product, and unknown names are silently dropped. If the request fails and 'Continue on Fail' is enabled, the item contains an error message instead. Otherwise the node throws. Authentication uses the ditextilApi credential and its base URL.

Examples

Example 1: Look up a product's price and SKU by ID before building a quote.

Resource: Producto, Operation: Obtener Producto, ID Producto: 15, Campos a devolver: id, name, sales_price, sku

Example 2: Retrieve the full record for a product ID coming from a previous node.

ID Producto: expression {{$json.product_id}}, Campos a devolver: left empty

Links

Discussion