# List and filter account reconciliations

Operation ID: `reconciliations`

Group: Banking › Reconciliations

[Open in the interactive reference](https://docs.api.lensing.ai/lensing/v1/endpoints/reconciliations)

`GET /banking/reconciliations`

Read-only: Reads and returns; changes nothing.

The reconciliation worklist, with structured filtering, ordering, sparse field selection and cursor pagination in the query string.

```
GET banking/reconciliations?filter[status][in]=inProgress,unreconciled&filter[accountId][eq]=<account-uuid>&sort=-statementEndDate&fields=id,status,statementEndDate&page[size]=50
```

A response is `{ "data": [ … ], "pagination": { "hasMore": …, "nextCursor": … } }`. Page forward by passing the previous `nextCursor` as `page[cursor]`; it is opaque and keyset-based, so do not construct or decode one. `hasMore` is the loop condition — a page that fills completely may still be the last. Page size defaults to 25 and is capped at 100.

**This is the scalar half of the item schema.** Every field here is named and typed exactly as `GET banking/reconciliations/{id}` names and types it, so one model deserializes both. What the row cannot carry is the nested `balances` object: a data-set field is scalar-only. Fetch one reconciliation to get the roll-forward.

**`difference` is not here.** It is not a stored column but a roll-forward over the ledger and the in-transit rows, computed per reconciliation, so it is available on `GET banking/reconciliations/{id}` inside `balances` and nowhere else. A caller looking for the unbalanced reconciliations filters this collection by `status` and then fetches the candidates.

**Filtering and ordering are opt-in per field.** A field is queryable only if this route designates it, and a request naming any other field is rejected rather than silently ignored. The names and numbers of accounts and entities — `accountNumber`, `accountName`, `entityName` — are returned but appear in neither list: they identify counterparties and internal structure, and both a filter and a sort would put them in an access log. `reconciledBy` is personal data and is excluded for the same reason. Filter by `accountId` or `entityId` instead, and by `accountingPeriodId` rather than `periodName`.

Two value formats are worth knowing before a filter is written. The id fields (`id`, `accountId`, `entityId`, `accountingPeriodId`) hold **uuids**, not the numeric keys the UI works with. `lastModifiedDate` is an instant and needs milliseconds and a trailing `Z` (`2026-01-01T00:00:00.000Z`); a numeric offset is not accepted. `filter[lastModifiedDate][gte]=…` with `sort=lastModifiedDate` is the incremental-sync cursor.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Api-Version` | header | string · v1 | yes | The API version this request targets, named by its public identifier. Required on every request; omitting it, or naming a version this company does not have, is answered with 400. This document describes version `v1`. |

## Query surface

- `id` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between, like
- `accountId` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between, like
- `entityId` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between, like
- `accountingPeriodId` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between, like
- `statementEndDate` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between
- `statementEndBalance` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between
- `currency` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between, like
- `status` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between, like
- `reconciledOn` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between
- `lastModifiedDate` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between
- Orderable: id, reconciliationNumber, statementEndDate, statementEndBalance, currency, status, reconciledOn, lastModifiedDate
- Selectable: id, reconciliationNumber, accountId, accountNumber, accountName, entityId, entityName, accountingPeriodId, periodName, statementEndDate, statementEndBalance, currency, status, reconciledOn, reconciledBy, lastModifiedDate
- `page[size]` — Page size
- `page[cursor]` — Opaque continuation cursor

## Response

`200` Success

Under `data`, an array of reconciliationsRow:

| Field | Type | Required | Filter | Sort | Description |
| --- | --- | --- | --- | --- | --- |
| `id` | string | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`), Pattern (`like`) | yes | Stable, platform-assigned id (a UUID) of the reconciliation — the public identifier used by the item routes (GET/PATCH banking/reconciliations/:id and the submit/reopen sub-paths). Filter e.g. filter[id][in]=<id1>,<id2>. Example: `"3b7d5e9c-1a24-4f80-9c6d-2e8f70b13a45"`. |
| `reconciliationNumber` | string \| null | no | no | yes | Human-readable reconciliation number assigned by the platform, unique per tenant. Sortable but not filterable; look a reconciliation up by its id. Example: `"AR-000117"`. |
| `accountId` | string \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`), Pattern (`like`) | no | Id (a UUID) of the bank or credit-card account being reconciled. Filter e.g. filter[accountId][eq]=<account-uuid> to get one account's history. Example: `"9f2c6a10-7d34-4c8e-9b21-5a0f3e6d81b7"`. |
| `accountNumber` | string \| null | no | no | no | Account number of the reconciled account, as shown in the chart of accounts. Returned but neither filterable nor orderable — filter by accountId. Example: `"1010"`. |
| `accountName` | string \| null | no | no | no | Account name of the reconciled account. Returned but neither filterable nor orderable — filter by accountId. Example: `"Operating Account USD"`. |
| `entityId` | string \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`), Pattern (`like`) | no | Id (a UUID) of the entity owning the account. Filter e.g. filter[entityId][eq]=<entity-uuid> for one entity's worklist. Example: `"e57a0d34-9f62-4b18-bc25-71a6e8039d4b"`. |
| `entityName` | string \| null | no | no | no | Name of the entity owning the account. Returned but neither filterable nor orderable — filter by entityId. Example: `"Everest US Inc."`. |
| `accountingPeriodId` | string \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`), Pattern (`like`) | no | Id (a UUID) of the accounting period being reconciled. Filter e.g. filter[accountingPeriodId][eq]=<period-uuid> to see every account's reconciliation for one period. Example: `"8c1f4a72-6b09-4d15-a3e7-40d2b6915cf8"`. |
| `periodName` | string \| null | no | no | no | Name of the accounting period, e.g. 'Jul 2026'. Returned but neither filterable nor orderable — filter by accountingPeriodId. Example: `"Jul 2026"`. |
| `statementEndDate` | date \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`) | yes | Closing date of the bank statement this reconciliation covers. PlainDate filter target: filter[statementEndDate][between]=2026-01-01,2026-06-30, and sort=-statementEndDate. Format YYYY-MM-DD. Example: `"2026-07-31"`. |
| `statementEndBalance` | decimal \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`) | yes | Closing balance the statement reports, in the account currency (see currency). Decimal filter target: filter[statementEndBalance][gte]=0. Example: `"184320.55"`. |
| `currency` | string \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`), Pattern (`like`) | yes | ISO 4217 currency code of the account, governing statementEndBalance. Example: `"USD"`. |
| `status` | string \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`), Pattern (`like`) | yes | Lifecycle status. Filter e.g. filter[status][in]=inProgress,unreconciled for the open worklist. One of: `"created"`, `"inProgress"`, `"complete"`, `"unreconciled"`. Example: `"inProgress"`. |
| `reconciledOn` | date \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`) | yes | Date the reconciliation was last submitted; absent until it has been submitted for the first time. A reopened reconciliation keeps the stamps from its last submit until it is submitted again, so read `status` to tell an open one from a closed one. PlainDate filter target. Format YYYY-MM-DD. Example: `"2026-08-04"`. |
| `reconciledBy` | string \| null | no | no | no | Full name of the user who last submitted the reconciliation, resolved from the stored user reference. Personal data: neither filterable nor orderable, and it must not travel in a URL. Absent until it has been submitted for the first time. A reopened reconciliation keeps the stamps from its last submit until it is submitted again, so read `status` to tell an open one from a closed one. Example: `"Dana Whitfield"`. |
| `lastModifiedDate` | date-time | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`) | yes | Timestamp of the last change to the reconciliation. Filter with filter[lastModifiedDate][gte]=2026-01-01T00:00:00.000Z — the milliseconds and the trailing Z are both required, and a numeric offset such as +02:00 is not accepted. Paired with sort=lastModifiedDate this is a complete incremental-sync cursor. ISO 8601 UTC (YYYY-MM-DDTHH:mm:ss.sssZ). Example: `"2026-08-04T14:12:09.418Z"`. |

```json
{
  "data": [
    {
      "id": "3b7d5e9c-1a24-4f80-9c6d-2e8f70b13a45",
      "reconciliationNumber": "AR-000117",
      "accountId": "9f2c6a10-7d34-4c8e-9b21-5a0f3e6d81b7",
      "accountNumber": "1010",
      "accountName": "Operating Account USD",
      "entityId": "e57a0d34-9f62-4b18-bc25-71a6e8039d4b",
      "entityName": "Everest US Inc.",
      "accountingPeriodId": "8c1f4a72-6b09-4d15-a3e7-40d2b6915cf8",
      "periodName": "Jul 2026",
      "statementEndDate": "2026-07-31",
      "statementEndBalance": "184320.55",
      "currency": "USD",
      "status": "inProgress",
      "reconciledOn": "2026-08-04",
      "reconciledBy": "Dana Whitfield",
      "lastModifiedDate": "2026-08-04T14:12:09.418Z"
    }
  ],
  "pagination": {
    "hasMore": true,
    "nextCursor": "<nextCursor>"
  }
}
```

## Statuses

- `400` — Invalid request or business failure
- `401` — The request carries no valid access token.
- `403` — Not authorized
- `404` — Not found
- `429` — Too many requests from this client address. The response has no body and no `Retry-After` header.
- `500` — Internal server error
