---
title: "Save reconciliation history"
method: PATCH
path: "/bank-accounts/{id}/reconciliation-setup"
tags: ["Banking"]
---

# Save reconciliation history

`PATCH /bank-accounts/{id}/reconciliation-setup`

## Request

- Base URL: `https://ledgerhq.pro/api/v1`
- URL: `https://ledgerhq.pro/api/v1/bank-accounts/{id}/reconciliation-setup`
- Auth: one of:
  - HTTP bearer and API key in header `x-organization-id`
  - HTTP bearer and API key in header `x-organization-id`

Saves the history answer and date boundary without starting reconciliation. POST this route to finish setup and save carry-forward items. No statement or balance is required.

## Path parameters

- `id` string, uuid, required

## Request body

- union
  - object
    - `history` 'previously_reconciled', required
    - `lastReconciledThroughDate` string, date, required
  - object
    - `history` 'never_reconciled', required
    - `firstReconciliationStartDate` string, date: First reconciliation date; POST this route to finish setup separately.

## Response `200`

Saved reconciliation history

## Other responses

- `default`: Error response

---

[API](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api.md) · [All operations](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/revisions/9a8269f0a586?raw)
