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

# Consulta de terceros

Mediante esta API puedes consultar la información de todos los terceros de la compañía o obtener el detalle de alguno en especifico.

## 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>code</code>
      </td>

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

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

      <td style={{ textAlign: "left" }}>
        Código del tercero. Se puede consultar en este mismo endpoint. El campo es 

        *code*
      </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>name</code>
      </td>

      <td>
        *Texto*
      </td>

      <td>
        Nombre
      </td>
    </tr>

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

      <td>
        *Texto*
      </td>

      <td>
        Código del recurso humano
      </td>
    </tr>

    <tr>
      <td>
        <code>address</code>
      </td>

      <td>
        *Texto*
      </td>

      <td>
        Dirección
      </td>
    </tr>

    <tr>
      <td>
        <code>email</code>
      </td>

      <td>
        *Texto*
      </td>

      <td>
        Correo electrónico
      </td>
    </tr>

    <tr>
      <td>
        <code>country</code>
      </td>

      <td>
        *Texto*
      </td>

      <td>
        País
      </td>
    </tr>

    <tr>
      <td>
        <code>groups\_1\_desc</code>
      </td>

      <td>
        *Texto*
      </td>

      <td>
        Clasificación 1
      </td>
    </tr>

    <tr>
      <td>
        <code>groups\_2\_desc</code>
      </td>

      <td>
        *Texto*
      </td>

      <td>
        Clasificación 2
      </td>
    </tr>

    <tr>
      <td>
        <code>active</code>
      </td>

      <td>
        *Booleano*
      </td>

      <td>
        Indica si el tercero se encuentra activo o no
      </td>
    </tr>

    <tr>
      <td>
        <code>zip\_code</code>
      </td>

      <td>
        *Texto*
      </td>

      <td>
        Código postal
      </td>
    </tr>

    <tr>
      <td>
        <code>city</code>
      </td>

      <td>
        *Texto*
      </td>

      <td>
        Ciudad
      </td>
    </tr>

    <tr>
      <td>
        <code>state</code>
      </td>

      <td>
        *Texto*
      </td>

      <td>
        Estado/Departamento/Región
      </td>
    </tr>

    <tr>
      <td>
        <code>telephone</code>
      </td>

      <td>
        *Texto*
      </td>

      <td>
        Teléfono principal
      </td>
    </tr>

    <tr>
      <td>
        <code>telephone\_2</code>
      </td>

      <td>
        *Texto*
      </td>

      <td>
        Teléfono secundario
      </td>
    </tr>

    <tr>
      <td>
        <code>fax</code>
      </td>

      <td>
        *Texto*
      </td>

      <td>
        Fax
      </td>
    </tr>

    <tr>
      <td>
        <code>sms</code>
      </td>

      <td>
        *Texto*
      </td>

      <td>
        Teléfono SMS
      </td>
    </tr>

    <tr>
      <td>
        <code>custom\_fields\_groups\_description</code>
      </td>

      <td>
        *Texto*
      </td>

      <td>
        Nombre del grupo del campo personalizado
      </td>
    </tr>

    <tr>
      <td>
        <code>latitude</code>
      </td>

      <td>
        *Texto*
      </td>

      <td>
        Latitud
      </td>
    </tr>

    <tr>
      <td>
        <code>longitud</code>
      </td>

      <td>
        *Texto*
      </td>

      <td>
        Longitud
      </td>
    </tr>

    <tr>
      <td>
        <code>hourly\_rates\_description</code>
      </td>

      <td>
        *Texto*
      </td>

      <td>
        Valor hora ordinaria
      </td>
    </tr>

    <tr>
      <td>
        <code>web\_page</code>
      </td>

      <td>
        *Texto*
      </td>

      <td>
        Página web
      </td>
    </tr>

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

      <td>
        *Texto*
      </td>

      <td>
        Ubicado en o es parte de
      </td>
    </tr>

    <tr>
      <td>
        <code>id\_third\_party\_type</code>
      </td>

      <td>
        *Array de enteros*
      </td>

      <td>
        1: Proveedor de servicios\
        2: Fabricante\
        3: Proveedor\
        4: Cliente
      </td>
    </tr>
  </tbody>
</Table>

## Ejemplo:

Petición: **(GET)<https://app.fracttal.com/api/third_parties/?code=ACOD>**

```json Response
{
  "success": true,
  "message": "200",
  "data": [
    {
      "code": "ACOD",
      "address": "Boulevard Los Heroes",
      "email": "celina.portillo@acodjar.com",
      "country": "El Salvador",
      "groups_1_desc": null,
      "groups_2_desc": null,
      "active": true,
      "name": "Acodjar",
      "zip_code": null,
      "city": "San Salvador",
      "state": "San Salvador",
      "telephone_1": "2239 5907",
      "telephone_2": "",
      "fax": "",
      "sms": "",
      "custom_fields_groups_description": null,
      "latitude": "13.705928587044207",
      "longitud": "-89.21529293060304",
      "web_page": "http:\/\/www.fedecaces.com",
      "custom_fields_values": null,
      "parent_description": "\/\/ SERCOMCA\/ ",
      "id_third_party_type": [
                1
      ],
    }
  ],
  "total": 1
}
```

<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": "tercero",
    "version": "1-Es"
  },
  "servers": [
    {
      "url": "https://app.fracttal.com/api/third_parties"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/": {
      "get": {
        "summary": "Consulta de terceros",
        "description": "",
        "operationId": "consulta-de-terceros",
        "deprecated": false,
        "security": []
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```