---
updatedAt: 2025-06-05T22:03:18.000Z
agentTools:
  projectIndex: https://api.fracttal.com/llms.txt
---

# Consultar recursos de tipo inventario de las tareas

Mediante esta API puedes consultar el listado de los recursos de tipo inventario que tienen asociados las diferentes tareas creadas en tu compañía.

## Parámetros de entrada

Se puede filtrar la información mediante el siguiente query\_params:

<Table align={["left","left","left","left"]}>
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>
        Parámetro
      </th>

      <th style={{ textAlign: "left" }}>
        Tipo
      </th>

      <th style={{ textAlign: "left" }}>
        Requerido
      </th>

      <th style={{ textAlign: "left" }}>
        Descripción
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td style={{ textAlign: "left" }}>
        <code> id\_task </code>
      </td>

      <td style={{ textAlign: "left" }}>
        *Entero*
      </td>

      <td style={{ textAlign: "left" }}>
        Opcional
      </td>

      <td style={{ textAlign: "left" }}>
        Id de la tarea. [Se puede consultar aquí.](https://api.fracttal.com/reference/consultar-activadores-de-las-tareas) (campo *id\_task*)
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        <code>start</code>
      </td>

      <td style={{ textAlign: "left" }}>
        *Entero*
      </td>

      <td style={{ textAlign: "left" }}>
        Opcional
      </td>

      <td style={{ textAlign: "left" }}>
        Número de registro donde iniciará la consulta. Por defecto 0.\
        Todas las consultas están limitadas a 100 registros, cuando hay más de esa cantidad se debe utilizar este parámetro para la paginación.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        <code>limit</code>
      </td>

      <td style={{ textAlign: "left" }}>
        *Entero*
      </td>

      <td style={{ textAlign: "left" }}>
        Opcional
      </td>

      <td style={{ textAlign: "left" }}>
        Cantidad de registros que mostrará la petición. El valor por defecto es 100.
      </td>
    </tr>
  </tbody>
</Table>

## Parámetros de salida

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th>
        Parámetro
      </th>

      <th>
        Tipo
      </th>

      <th>
        Descripción
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        <code>id\_task</code>
      </td>

      <td>
        *Entero*
      </td>

      <td>
        Id de la tarea
      </td>
    </tr>

    <tr>
      <td>
        <code>id\_item</code>
      </td>

      <td>
        *Entero*
      </td>

      <td>
        Id del activo (inventario)
      </td>
    </tr>

    <tr>
      <td>
        <code>description</code>
      </td>

      <td>
        *Texto*
      </td>

      <td>
        Descripción del inventario
      </td>
    </tr>

    <tr>
      <td>
        <code>qty</code>
      </td>

      <td>
        *Entero*
      </td>

      <td>
        Cantudad
      </td>
    </tr>

    <tr>
      <td>
        <code>unit\_cost</code>
      </td>

      <td>
        *Entero*
      </td>

      <td>
        Costo unitario
      </td>
    </tr>

    <tr>
      <td>
        <code>total\_cost</code>
      </td>

      <td>
        *Entero*
      </td>

      <td>
        Costo total
      </td>
    </tr>

    <tr>
      <td>
        <code>units\_description</code>
      </td>

      <td>
        *Texto*
      </td>

      <td>
        Descripción de la unidad
      </td>
    </tr>

    <tr>
      <td>
        <code>order\_number</code>
      </td>

      <td>
        *Entero*
      </td>

      <td>
        Orden
      </td>
    </tr>

    <tr>
      <td>
        <code>note</code>
      </td>

      <td>
        *Texto*
      </td>

      <td>
        Nota
      </td>
    </tr>
  </tbody>
</Table>

## Ejemplo:

Petición: **(GET)<https://app.fracttal.com/api/tasks_resources_items/>**

```json Response
{
  "success": true,
  "message": "200",
  "data": [
      {
            "id": 66279,
            "id_company": 914,
            "id_task": 3641424,
            "id_item": 3425,
            "description": "ACEITE EP 460 (SM)  COPEC  { 0001010000100015 } ",
            "qty": 1,
            "unit_cost": 1000,
            "total_cost": 1000,
            "units_description": "GALONES",
            "order_number": 2,
            "note": null
        },
        {
            "id": 11,
            "id_company": 914,
            "id_task": 8,
            "id_item": 3428,
            "description": "ACEITE 20 W 50  (SM) 34567898765 COPEC 20 W 50 { 0001010000100066 } ",
            "qty": 6,
            "unit_cost": 0,
            "total_cost": 0,
            "units_description": "CAJA",
            "order_number": 2,
            "note": null
        },
        {
            "id": 61931,
            "id_company": 914,
            "id_task": 1986116,
            "id_item": 3330,
            "description": "BOMBA SUCCIONADORA ACEITE - - { ACT.HERR-0048 } ",
            "qty": 1,
            "unit_cost": 1000,
            "total_cost": 1000,
            "units_description": "UNIDAD",
            "order_number": 11,
            "note": null
        }
  ],
  "total": 3
}
```

<HTMLBlock>{`
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Maven+Pro&display=swap" rel="stylesheet">
<link href='https://fonts.googleapis.com/css?family=Heebo' rel='stylesheet'>
<style>
      table {
      border-collapse: collapse;
      border-radius: 1em;
      overflow: hidden;
    }
    
    th,
    td {
      border: 1px solid #E5E5E5;
      padding: 1em;
    }


    body {
      margin: 1.5em;
    }

    .font{
font-size: 14px;
font-weight: 700;
line-height: 17px;
letter-spacing: 0em;
text-align: left;
    color: #4687F1;
      font-style: uppercase;
  }
    table thead {
      background: rgba(70, 135, 241, 0.1) !important;
      color: #4687F1 !important;
      font-size: 13px !important;
      line-height: 17px !important;
    }
  .type-get {
      background-color: #6bbd5b;
      color: white;
      font-size: .7rem;
      padding: .2rem;
      border-radius: .2rem;
      text-transform: uppercase;
      font-weight: bold;
  }
  
  .frame-full {
      width: 100%;
      height: 1000px;
      border-width: 0;
  }

  h1, h2, h3, h4, h5, h6 {
  	font-family: 'Heebo', sans-serif;
  }
  
  code {
  	max-height: 40vh!important;
  }
  
  hr.rounded {
    border-top: 5px solid black;
    border-radius: 5px;
  }
  
  #ReferencePlayground {
  	display: none;
  }
  .Reference-section {
  	display: none;
  }
</style>
`}</HTMLBlock>

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "consutar-de-una-tarea-los-recursos-de-tipo-inventario",
    "version": "1-Es"
  },
  "servers": [
    {
      "url": "https://app.fracttal.com/api/tasks_resources_items/"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/": {
      "get": {
        "summary": "Consultar recursos de tipo inventario de las tareas",
        "description": "",
        "operationId": "consultar-recursos-de-tipo-inventario-de-las-tareas",
        "deprecated": false,
        "security": []
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```