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

# Convert 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/conversions</code>
</div>
</div>

Accepts canonical invoices or one mapped file. A mapped file names its frozen mapping with `mappingVersion`; without one, the file is recognised and read through the one frozen mapping of this company that reads it. Conversion always produces issued invoices. The company policy version and the requested `outputs` are frozen when the operation is accepted; an output the request does not name follows the organisation's settings. Every generated file is validated as the exact bytes produced; rejected files are withheld and their validation report remains available. 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 invoice's check report. Nothing was kept. |
| `202` | The operation was accepted. Poll or stream the returned id. |
| `400` | The input is invalid (`invalid_operation`), a policy or mapping reference is invalid (`policyVersion` not a version this company has, `unknown_policy_version`, or not the current one, `policy_version_superseded`), the named `customer` is not one this company saved (`unknown_customer`), the mapped file cannot be read completely (`unreadable_file`, with the reader's reason in `detail`; also for a file sent without `mappingVersion` that nothing places, when the mapping for its closest format can say why), a count/decoded-data limit is exceeded (`operation_too_large`), or an item is a business document that claims no payment, such as a pro forma (type code 325), which is made as a PDF only at `POST /v1/business-documents` (`not_an_invoice`). 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 conversion is not included (`operation_not_included`). |
| `404` | The named mapping config does not exist for this company (`unknown_mapping_config`). Nothing was accepted. |
| `409` | The idempotency key was used for different request bytes (`idempotency_key_reused`), a mapped file sent without `mappingVersion` is read by more than one frozen mapping, and they would make different invoices (`several_mappings_fit`, naming them and the file's `layout` in `detail`; `POST /v1/mappings/layout-choices` answers it once for that layout), a mapped file's values are now written another way than its mapping declares (`value_format_changed`, naming each column in `detail`; nothing was read the new way), or `mappingVersion` names a retired mapping (`mapping_retired`, naming what replaced it in `detail`). Nothing was accepted. |
| `413` | The encoded operation envelope exceeds 14 MB (`operation_too_large`), or a mapped file expands past the reader limit (`file_too_large_to_read`). Nothing was accepted. |
| `422` | A mapped file sent without `mappingVersion` is read by no frozen mapping of this company and comes close to none (`no_mapping_fits`; `detail.format` is the format it was recognised as). Create a mapping for it, then send it again. Or `outputs` turns off a file the named customer needs (`customer_needs_file`; the message names the customer and the file). Or the files `outputs` asks for are files the validation policy does not allow (`formats_not_allowed`; the message is the policy's reason). Or `keepPage` asks to keep a page that cannot be kept (no PDF, a temporary conversion, or a PDF holding more than one invoice) (`page_not_kept`; the message says which). Or `delivery` names a file this conversion does not make (`delivery_file_not_made`; the message names the file). Nothing was accepted. |
| `429` | The current plan assignment has no remaining document quota (`document_quota_exceeded`). Nothing was accepted. |
| `502` | The reader for a mapped file could not run (`engine_unavailable`). Nothing was accepted. It says nothing about the file. |
| `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/conversions/convert-one-or-more-invoices/index.mdx
