---
title: "Keep or dismiss a likely duplicate"
description: "Invoices API"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.certinvo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Keep or dismiss a likely duplicate

{/* Generated by apps/docs/scripts/generate.ts from contracts/api/openapi.yaml. Do not edit. */}
<div class="cvo-op">
<div class="cvo-op-main">

<div class="cvo-op-header">
<div class="cvo-op-path-row">
<span class="cvo-method" data-method="post">POST</span>
<code class="cvo-op-path-code">/v1/invoices/&#123;id&#125;/duplicate</code>
</div>
</div>

An invoice with the same seller, number, issue date, currency and amount as another invoice of this company and direction is filed as usual and held as a likely duplicate: its `duplicate` names the earlier invoice and its history says `api:duplicate-suspected`. It is never refused, and it is not emailed by itself while held. This decides it, once. `keep` writes `api:duplicate-kept`, and an invoice whose plan sends it by itself is queued then. `dismiss` writes `api:duplicate-dismissed`. A signed-in person or an API key may decide.

## Path parameters

## Request body

`application/json`, required

## Response

A `200` answer carries these fields.

## Status codes

| Status | Meaning |
|---|---|
| `200` | The decision was kept. |
| `400` | The body is not `{ "decision": "keep" \| "dismiss" }` (`invalid_duplicate_decision`). |
| `401` | No usable credential was sent (`invalid_credentials`). |
| `404` | This company has no such invoice (`unknown_invoice`). |
| `409` | The invoice was not held as a likely duplicate (`not_a_likely_duplicate`), or it was already decided (`duplicate_already_decided`). |
| `503` | No database is configured (`store_unavailable`). |

</div>
<div class="cvo-op-aside">

</div>
</div>

Source: https://docs.certinvo.com/reference/api/invoices/keep-or-dismiss-a-likely-duplicate/index.mdx
