# List

Para consultar los registros de una tabla en particular podemos generar la siguiente solicitud con el archivo `payload.json`:

```
curl "https://agents.boolfy.com/api/tables/list" \ 
    -H "Authorization: Bearer BOOLFY_BEARER_KEY" \
    -H "Content-Type: application/json" \
    -d @payload.json
```

El archivo `payload.json` debe tener el siguiente formato:

```json
{
    "Name": "Cost center"
}
```

Detallamos en forma completa los campos de la solicitud:

<table><thead><tr><th width="221">Campo</th><th>Descripción</th></tr></thead><tbody><tr><td>Name</td><td>Obligatorio. Especifica el <a href="#nombres-de-tablas">nombre de la tabla</a> a consultar. </td></tr></tbody></table>

### Respuesta

La respuesta exitosa para la consulta es:

```json
{
    "code": 200,
    "msg": null,
    "response": "[{\"Code\":\"1",\"Name\":\"Library\",\"ExternalCode\":\"...},{...}]"
}
```

El campo Response es una lista con todos los registros **activos** de la tabla.&#x20;

## Nombres de tablas

A continuación, detallamos los nombres de las tablas que se pueden consultar.

| Parámetro Name          | Descripción                   |
| ----------------------- | ----------------------------- |
| Business unit           | Unidad de negocio             |
| Cost center             | Centro de costo               |
| Accounting account      | Cuenta contable               |
| Heading                 | Rubro                         |
| Customer                | Cliente                       |
| Seller                  | Vendedor                      |
| Accounting concept      | Concepto contable             |
| Internal perceptions    | Percepciones internas         |
| Internal taxs           | Impuestos internos            |
| Internal other taxs     | Otros impuestos internos      |
| Earnings                | Ganancias                     |
| Internal jurisditions   | Jurisdicciones internas       |
| Internal withholdings   | Retenciones internas          |
| Articles                | Artículos                     |
| Categories              | Categorías                    |
| Services                | Servicios                     |
| Auxiliar taxes          | Impuestos auxiliares          |
| Tax regime              | Régimen impositivo            |
| VAT Purchases           | IVA compras                   |
| Bank account type       | Tipo de cuenta bancaria       |
| Recurrence              | Recurrencia                   |
| Clasification           | Clasificación                 |
| Employee                | Empleado                      |
| Internal conditions sal | Condiciones internas de venta |
| Imputation              | Imputación                    |
| Expenses                | Gastos                        |
| Reason                  | Motivo                        |
| Unit of measurement     | Unidad de medida              |
| Branches                | Sucursales                    |
| Contract                | Contrato                      |
| Department              | Departamento                  |
| Method of payment       | Método de pago                |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-agents-api.boolfy.com/tables/list.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
