---
title: "Validate one or more invoices"
description: "Validations 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.

# Validate one or more invoices

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

Accepts one or more finished invoice documents as one validation operation. A one-document request follows the same path and returns the same shape as a many-document request. `context` selects the received or issued side of the company's validation policy. The policy version is resolved once when the operation is accepted and every item uses that version. Validation reads the submitted bytes as they are and never converts them to another format. The workspace's processing plan supplies feature access, item and byte limits, document quota and retention. A temporary result expires at the time stated in the operation response and is not added to the invoice archive.

## Headers

## Request body

`application/json`, required

## Response

A `200` answer carries these fields.

## Status codes

| Status | Meaning |
|---|---|
| `200` | With `validateOnly`, the one document's check report. Nothing was kept. Without `context`, the report also carries `checkedAs` (`ValidateOnlyCheckedAs`), the side of the policy that graded it and why. A file this company made is graded under today's rules as one it issues, and the report also carries `madeHere` (`ValidateOnlyMadeHere`), where it was made. When the document was read, the report also carries `canonical`, the canonical invoice the reader made of it (`../invoice/canonical-invoice.schema.json`), as a stored invoice's `canonical` file holds it. |
| `202` | The operation was accepted. Poll or stream the returned id. |
| `400` | The envelope or base64 data is invalid (`invalid_operation`), a document is source data rather than a finished invoice (`invalid_operation` naming it; canonical JSON and a recognised customer export such as CSV, XLSX or an IDoc go to `/v1/conversions`), or the item limit is exceeded (`operation_too_large`), or `policyVersion` is not a version this company has (`unknown_policy_version`) or not the current one (`policy_version_superseded`), or, with `validateOnly`, the document could not be read (`unreadable_document`). Nothing was accepted. |
| `401` | No usable credential was sent (`invalid_credentials`). |
| `403` | No workspace plan is in force (`workspace_plan_unavailable`), the workspace is closed (`workspace_closed`), or validation is not included (`operation_not_included`). |
| `409` | The idempotency key was used for different request bytes (`idempotency_key_reused`). |
| `413` | The encoded operation envelope exceeds 14 MB (`operation_too_large`). The decoded invoice-data limit remains 10 MB. Nothing was accepted. |
| `429` | The current plan assignment has no remaining document quota (`document_quota_exceeded`). Nothing was accepted. |
| `503` | The operation could not be stored (`store_unavailable`). Nothing was accepted and nothing was validated. It says nothing about the invoices; send it again. |

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

</div>
</div>

Source: https://docs.certinvo.com/reference/api/validations/validate-one-or-more-invoices/index.mdx
