---
title: "List statement lines"
method: GET
path: "/api/v1/statements/{statement_id}/lines"
tags: ["API"]
---

# List statement lines

`GET /api/v1/statements/{statement_id}/lines`

## Request

- Base URL: `https://api.lapyme.com.ar`
- URL: `https://api.lapyme.com.ar/api/v1/statements/{statement_id}/lines`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/lapyme/apis/la-pyme-api/docs/api/v1/statements/:statement_id/lines/get.ts> (a function with typed inputs; its response is checked against the schema)

Read source lines with up to five candidate groups per line. Exact references rank first; partial matches show the remaining difference. A pending line may carry one exact_suggestion that La Pyme confirms without judgment: a stored reference, an open sale or purchase of the contact the line's CUIT, CBU or CVU names with an equal balance, a cheque in the period, within 5 days of the line, with the same number and amount, or the opposite line on another own bank account within 3 days. Only a single candidate qualifies. Attached tax lines resolve with their parent. Resolved lines show who decided (person, rule, exact_match, own_accounts or agent), the sent reason and the rule.

## Path parameters

- `statement_id` string, uuid, required

## Query parameters

- `status` 'all' | 'pending' | 'linked' | 'excluded'
- `limit` integer
- `cursor` string

## Response `200`

Treasury result or immutable replay

- object
  - `request_id` string, required
  - `data` object[], required
    - `object` 'statement_line', required
    - `id` string, uuid, required
    - `statement_id` string, uuid, required
    - `bank_account_id` string, uuid, required
    - `external_id` string, nullable, required
    - `occurred_at` string, date, required
    - `description` string, required
    - `reference` string, nullable, required
    - `amount` integer, required
    - `running_balance` integer, nullable, required
    - `parent_line_id` string, uuid, nullable, required
    - `attached_line_ids` string[], required
    - `group_amount` integer, required
    - `status` 'pending' | 'linked' | 'excluded', required
    - `reconciliation_id` string, uuid, nullable, required
    - `resolution_source` 'person' | 'rule' | 'exact_match' | 'own_accounts' | 'agent', nullable, required
    - `resolution_reason` string, nullable, required
    - `rule_id` string, uuid, nullable, required
    - `candidates` object[], required
      - `match` 'exact_reference' | 'amount_and_date', required
      - `amount` integer, required
      - `difference` integer, required
      - `records` ApiSharedObject7687b554ab[], required
        - `target_type` 'payment' | 'journal_entry', required
        - `target_id` string, uuid, required
        - `occurred_at` string, date, required
        - `amount` integer, required
        - `reference` string, nullable, required
        - `description` string, nullable, required
    - `exact_suggestion` object, nullable, required
      - `match` 'exact_reference' | 'contact_document' | 'cheque' | 'own_account', required
      - `amount` integer, required
      - `records` ApiSharedObject7687b554ab[], required
        - `target_type` 'payment' | 'journal_entry', required
        - `target_id` string, uuid, required
        - `occurred_at` string, date, required
        - `amount` integer, required
        - `reference` string, nullable, required
        - `description` string, nullable, required
      - `document` object, nullable, required
        - `type` 'sale' | 'purchase', required
        - `document_id` string, uuid, required
        - `contact_id` string, uuid, required
        - `amount` integer, required
      - `counterpart_line` object, nullable, required
        - `statement_line_id` string, uuid, required
        - `bank_account_id` string, uuid, required
  - `object` 'list', required
  - `url` string, required
  - `has_more` boolean, required
  - `next_cursor` string, nullable, required

## Other responses

- `400`: Statement request could not be completed
- `401`: Statement request could not be completed
- `403`: Statement request could not be completed
- `404`: Statement request could not be completed
- `409`: Idempotency or statement state conflict
- `422`: Statement request could not be completed
- `429`: Statement request could not be completed
- `503`: Statement request could not be completed Verificación de credenciales temporalmente ocupada; reintentá sin cambiar la operación ni su Idempotency-Key.

## Changes

- **2026-11-07** `597a718d17bd`: 1 info
  - added the required property `data/items/exact_suggestion` to the response with the `200` status
- **2026-11-06** `a9b5a8d295fd`: 3 info
  - added the required property `data/items/resolution_reason` to the response with the `200` status
  - added the required property `data/items/resolution_source` to the response with the `200` status
  - added the required property `data/items/rule_id` to the response with the `200` status
- **2026-11-05** `7b0bc8043efd`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/lapyme/apis/la-pyme-api/changes/api/v1/statements/:statement_id/lines/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/597a718d17bd?raw)
