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
📝 Borrador (texto) → Obtener Borrador
AI-generatedSummary
Fetches a single text-based order draft (sales or reception) from the Ditextil inventory API by its numeric ID, using a GET request to /api/order-drafts/{draftId}.
Inputs
- ID Borrador (draftId) (required) — Numeric ID of the draft to retrieve. It is inserted into the request path. The default of 0 is a placeholder, so set a real ID, for example from the Listar Borradores output or from Crear Borrador desde Texto.
Output shape
The draft record returned by the API, emitted as one n8n item for each input item. The item's JSON is the API response.
The source does not define the response fields, so the exact fields come from the Ditextil API. A non-existent ID or an API failure raises an error. If 'Continue on Fail' is enabled, the node instead outputs an item with an 'error' message. The node needs the ditextilApi credential, which supplies the base URL and authentication. Each input item triggers its own request.
Examples
Example 1: Check the parsed contents of a draft before confirming it.
Resource: Borrador (texto), Operation: Obtener Borrador, ID Borrador: {{$json.id}} taken from the earlier Crear Borrador desde Texto node.
Example 2: Look up one draft by a fixed ID to review its status.
Resource: Borrador (texto), Operation: Obtener Borrador, ID Borrador: 42.