---
title: "Check if an AP invoice might be a duplicate of an existing one. Compares vendor, amount, and invoice number. Use BEFORE creating a new AP invoice to avoid duplicates."
method: POST
path: "/api/v1/fuzzy-check-duplicate"
---

# Check if an AP invoice might be a duplicate of an existing one. Compares vendor, amount, and invoice number. Use BEFORE creating a new AP invoice to avoid duplicates.

`POST /api/v1/fuzzy-check-duplicate`

## Request

- Base URL: `https://app.ledgerbeaver.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.ledgerbeaver.com/api/v1/fuzzy-check-duplicate`
- Auth: API key in header `X-API-Key`

## Request body

- object
  - `companyId` string, required
  - `vendorId` string, required
  - `invoiceNumber` string, required
  - `amount` number, required
  - `tolerance` number, required

## Response `200`

Successful response

- object
  - `content` object[]
    - `type` string
    - `text` string

## Other responses

- `401`: Unauthorized
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/ledgerbeaver/apis/ledgerbeaver-ai-api.md) · [All operations](https://skmtc.dev/ledgerbeaver/apis/ledgerbeaver-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ledgerbeaver/apis/ledgerbeaver-ai-api/revisions/cfd673927c46?raw)
