# Listar registros contables

GET `https://api.bydomu.com/v1/accounting`

This reference is generated from the API’s code, so descriptions are in Spanish. Names, parameters and examples are the same in every language.

Ingresos y egresos con filtros por tipo, estado, categoría, negocio y fecha (`pageSize` máximo 500).

Permission required

`accounting:read`

Required header

`X-API-Key` · secret key

Access level

Level 2 · automatic on Inmobiliaria Pro

## Query parameters

13 · all optional

`search` string · optional

Texto en la descripción

`type` string · optional

Ingreso o egreso INGRESO · EGRESO

`status` string · optional

Estado del registro BORRADOR · APROBADO · ANULADO

`categoryId` string · optional

Categoría contable

**See the other 9 parameters**

`dealId` string · optional

Negocio

`dateFrom` string · optional

Con fecha desde (ISO 8601) nullable

`dateTo` string · optional

Con fecha hasta (ISO 8601) nullable

`page` integer · optional

Página, desde 1 default 1 · ≥ 1

`pageSize` integer · optional

Registros por página (máximo 500) default 20 · 1–500

`cursor` string · optional

Se valida pero no se aplica en esta operación

`includeTotal` boolean | string · optional

Se valida pero no se aplica en esta operación

`sortBy` string · optional

Campo de orden default "createdAt"

`sortOrder` string · optional

Dirección del orden asc · desc · default "desc"

## Response 200

`AccountingEntryListItem[]` · 24 fields

**`data[]` id · referenceNumber · type · status · description · amount · currency · entryDate · approvedAt · notes · attachmentUrl · reimbursable · categoryId · dealId · contactId · createdById · approvedById · voidedAt · voidReason · createdAt · updatedAt · category · deal · createdBy**

`id` string

`referenceNumber` string

`type` string INGRESO, EGRESO

`status` string BORRADOR, APROBADO, ANULADO

`description` string

`amount` string Número decimal serializado como texto.

`currency` string

`entryDate` string

`approvedAt` string

`notes` string

`attachmentUrl` string

`reimbursable` boolean

`categoryId` string

`dealId` string

`contactId` string

`createdById` string

`approvedById` string

`voidedAt` string

`voidReason` string

`createdAt` string

`updatedAt` string

**`category` id · name · color**

`id` string

`name` string

`color` string

**`deal` id · title**

`id` string

`title` string

**`createdBy` id · firstName · lastName**

`id` string

`firstName` string

`lastName` string

**`meta` Paginación por número de página.**

`total` integer Total de registros

`page` integer Página actual

`pageSize` integer Registros por página

`totalPages` integer Total de páginas

## Possible errors

shaped as `{ "error": { "code", "message" } }`

- **400** Datos inválidos: el cuerpo o la query no cumplen el esquema, o `Idempotency-Key` está mal formada.
- **401** UNAUTHORIZED
- **403** FORBIDDEN
- **429** RATE_LIMITED
- **500** INTERNAL_ERROR

cURL:

```bash
curl "https://api.bydomu.com/v1/accounting" \
  -H "X-API-Key: $BYDOMU_API_KEY"
```

JavaScript:

```js
import { ByDomu } from "@bydomu/sdk";

const bydomu = new ByDomu({
  apiKey: process.env.BYDOMU_API_KEY,
});

const { data, meta } = await bydomu.accounting.listEntries();
```

Python:

```python
import os, requests

r = requests.get(
    "https://api.bydomu.com/v1/accounting",
    headers={"X-API-Key": os.environ["BYDOMU_API_KEY"]}
)
data = r.json()
```

**Response · 200 · example**

```json
{
  "data": [
    {
      "id": "clx1acc001",
      "referenceNumber": "ING-2026-0042",
      "type": "INGRESO",
      "status": "BORRADOR",
      "description": "Comisión por venta Apto Chapinero",
      "amount": "9345000.00",
      "currency": "COP",
      "entryDate": "2026-09-20T00:00:00.000Z",
      "approvedAt": "2026-09-21T09:00:00.000Z",
      "notes": "Aprobado por dirección comercial",
      "attachmentUrl": "https://cdn.bydomu.com/docs/soporte.pdf",
      "reimbursable": false,
      "categoryId": "clx1cat001",
      "dealId": "clx1deal001",
      "contactId": "clx1con001",
      "createdById": "clx1usr001",
      "approvedById": "clx1usr002",
      "voidedAt": "2026-09-22T00:00:00.000Z",
      "voidReason": "Registro duplicado",
      "createdAt": "2026-09-20T16:30:00.000Z",
      "updatedAt": "2026-09-21T09:00:00.000Z",
      "category": {
        "id": "clx1cat001",
        "name": "Comisiones",
        "color": "#10B981"
      },
      "deal": {
        "id": "clx1deal001",
        "title": "Venta Apto Chapinero"
      },
      "createdBy": {
        "id": "clx1usr001",
        "firstName": "Carlos",
        "lastName": "Rodríguez"
      }
    }
  ],
  "meta": {
    "total": 150,
    "page": 1,
    "pageSize": 20,
    "totalPages": 8
  }
}
```
