---
title: "Duplicate Invoice Detection"
section: "Agent store — Finance — Purchase To Pay"
canonical_url: "https://leverge.ai/agents/finance/purchase-to-pay/duplicate-invoice-detection"
category: "Finance"
process: "Purchase To Pay"
trigger: "Runs on a schedule"
publisher: "Ailoitte Technologies Private Limited"
---

# Duplicate Invoice Detection

Find the invoices in a payment run that have already been paid — including the ones that arrived with a different number, a different date, or from a renamed supplier.

## At a glance

- Business function: Finance
- Process: Purchase To Pay
- Runs: runs on a schedule — Every Monday at 08:00, before the payment run
- Run cost: 7 credits
- Uses a knowledge base: no

## What it needs

- **Invoices pending payment** (file upload) — This week's payment run.
- **Recently paid invoices** (file upload) — What has already been settled. Without this the check cannot run.
- **Matching rules** (form)

## How it works

1. Reading the payment run
2. Reading the paid history
3. Comparing against what has been paid
4. Writing the hold list

## What it returns

- **At risk of double payment** (score)
- **Hold before the run** (written summary)
- **Hold these** (flagged exceptions)
- **Pending invoice against the paid one** (mapping table)

---

Source: https://leverge.ai/agents/finance/purchase-to-pay/duplicate-invoice-detection — Leverge
