---
title: "Compare two visible files"
method: POST
path: "/tally/files/compare"
tags: ["Tally Files"]
---

# Compare two visible files

`POST /tally/files/compare`

## Request

- Base URL: `https://ledgerhq.pro/api/v1`
- URL: `https://ledgerhq.pro/api/v1/tally/files/compare`
- Auth: HTTP bearer

Compares two XLSX, CSV, PDF, or text files and saves a cited Markdown report without changing either source.

## Request body

- object
  - `leftFileId` string, uuid, required
  - `rightFileId` string, uuid, required
  - `keyColumns` string[]
  - `companyOrganizationId` string, uuid, nullable, required
  - `destinationPath` string, required

## Response `201`

Cited comparison report

## 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)
