---
title: "Obtener mayor de cuenta"
method: GET
path: "/api/v1/accounting/accounts/{account_id}/ledger"
tags: ["API"]
---

# Obtener mayor de cuenta

`GET /api/v1/accounting/accounts/{account_id}/ledger`

## Request

- Base URL: `https://api.lapyme.com.ar`
- URL: `https://api.lapyme.com.ar/api/v1/accounting/accounts/{account_id}/ledger`
- Auth: HTTP bearer

Devuelve líneas del mayor para una cuenta, con saldo inicial, saldo final y saldo corriente por línea dentro de la ventana filtrada.

## Path parameters

- `account_id` string, uuid, required

## Query parameters

- `cursor` string
- `limit` integer
- `date_from` string, date
- `date_to` string, date
- `source_type` string
- `contact_id` string, uuid
- `cost_center_1_ids` string[]
- `cost_center_2_ids` string[]
- `cost_center_3_ids` string[]
- `circuit_id` string

## Response `200`

Mayor de cuenta encontrado

- ApiAccountLedgerResponse
  - `request_id` string, required
  - `effective_scope` union, required: Circuito sobre el que corrió el reporte: `all` para todos los circuitos, o el circuito pedido (`circuit_id` null es General).
    - 'all'
    - ApiSharedObjectbd6833a5e8
      - `circuit_id` string, uuid, nullable, required
      - `circuit_name` string, required
  - `data` object, required
    - `object` 'account_ledger', required
    - `account` ApiSharedObject18d478a65b, required
      - `object` 'account', required
      - `id` string, uuid, required
      - `code` string, nullable, required
      - `name` string, required
    - `opening_balance` integer, required
    - `currency` string, required
    - `lines` ApiSharedObject308596969e[], required
      - `object` 'account_ledger_line', required
      - `id` string, uuid, required
      - `date` string, date, required
      - `journal_entry_id` string, uuid, required
      - `circuit_id` string, uuid, nullable, required: Circuito contable del asiento. null es el circuito General.
      - `account_id` string, uuid, required
      - `source_type` string, nullable, required
      - `source_id` string, uuid, nullable, required
      - `description` string, required
      - `reference` string, nullable, required
      - `counterparty_name` string, nullable, required
      - `contact_id` string, uuid, nullable, required
      - `cost_center1_id` string, uuid, nullable, required
      - `cost_center2_id` string, uuid, nullable, required
      - `cost_center3_id` string, uuid, nullable, required
      - `debit` integer, required
      - `credit` integer, required
      - `currency` string, required
      - `balance` integer, required
    - `closing_balance` integer, required
    - `has_more` boolean, required
    - `next_cursor` string, nullable, required

## Other responses

- `400`: Solicitud inválida
- `401`: API key faltante o inválida
- `403`: Scope insuficiente o contabilidad no habilitada
- `404`: Cuenta no encontrada
- `429`: Límite de solicitudes excedido para la organización
- `500`: Error interno del servidor
- `503`: Verificación de credenciales temporalmente ocupada; reintentá sin cambiar la operación ni su Idempotency-Key.

## Changes

- **2026-11-03** `ed0d46e68fbe`: 5 breaking, 15 info
  - the response property `data/account/code` became nullable for the status `200`
  - the response property `data/lines/items/counterparty_name` became nullable for the status `200`
  - the response property `data/lines/items/reference` became nullable for the status `200`
  - the response property `data/lines/items/source_type` became nullable for the status `200`
  - …16 more

[Operation history](https://skmtc.dev/lapyme/apis/la-pyme-api/changes/api/v1/accounting/accounts/:account_id/ledger/get.md)

---

[API](https://skmtc.dev/lapyme/apis/la-pyme-api.md) - [All operations](https://skmtc.dev/lapyme/apis/la-pyme-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lapyme/apis/la-pyme-api/revisions/067bbb55f421?raw)
