---
title: "Re-check an invoice"
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.

# Re-check an invoice

{/* 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;/validations</code>
</div>
</div>

Validates an already stored invoice again and stores the result as a new validation on the same invoice. No new invoice is created, and you do not send the file again.

Use it after a rules update, or when a person asks to check again. The newest validation is the current one.

### Response

The validator report for the stored invoice, plus `id` (the invoice) and `validationId` (the new validation). Every verdict uses status 200.

It also carries `scope` and `policyVersion`. A re-check runs under the policy as it is NOW, so two re-checks of one invoice can differ, and these two fields say why. Pass `policyVersion` to run it under a named version instead. That makes an old verdict reproducible without holding the original bytes.

A version that is not the current one only answers. Nothing is stored and `validationId` is null, so the invoice's stored validations, which decide whether its files may leave, stay as they were.

An invoice already sent keeps the verdict it was sent with. A re-check of it is stored and shown, but it is information only for your own copy: its files stay downloadable when the verdict it was sent with accepted it. Sending it again still needs the newest verdict to accept it. The invoice's `sent` says which check it was sent with.

## Path parameters

## Query parameters

## Response

A `200` answer carries these fields.

## Status codes

| Status | Meaning |
|---|---|
| `200` | The invoice was validated again. The body is the report and the ids of the invoice and the new validation. |
| `400` | The stored file could not be read as an invoice (`unreadable_document`), or it names a mapping this organisation has not saved (`unknown_mapping_version`), or `policyVersion` named a version this company does not have (`unknown_policy_version`) or is not a version number (`invalid_query`). |
| `401` | No usable credential was sent (`invalid_credentials`). |
| `404` | No such invoice exists for this company (`unknown_invoice`). This API never returns 403 here. |
| `502` | The validation engine could not run, so nothing was stored (`engine_unavailable`). |

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

</div>
</div>

Source: https://docs.certinvo.com/reference/api/invoices/re-check-an-invoice/index.mdx
