---
title: "API error codes"
description: "Every error code the API returns, with its HTTP status and what it means."
---

> 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.

# API error codes

Every refusal from the API has the same shape:

```json
{ "error": { "code": "unreadable_document", "message": "…", "detail": "…", "request_id": "req_3f9a12bc0e5d4a71" } }
```

`request_id` names the request. Every answer carries the same value in its `X-Request-Id` header, whether it is
an error or not. We make a new id for every request, and never use one the caller sends.

Quote the id when you contact support. The request wrote one line to our log under that id, with its method,
path, status, time and company. That line never holds a header, a query string or a body.

One route is the exception, and only for the body it sends back. `POST /v1/sap/idoc` answers a SOAP
client, so its refusals are SOAP faults with status 500 rather than the shape above. Its 401 is an
ordinary error body, because that refusal happens before any SOAP is read. 

`detail` appears only where there is more to say, and its shape depends on the code. For most codes it is a
sentence. For `unmappable_payload` it is a list, one entry per invoice the mapping could not fill. For
`several_mappings_fit`, `no_mapping_fits`, `value_format_changed`, `mapping_retired`,
`merge_conflict`, `open_columns`, `mapping_not_ready`, `a_saved_mapping_reads_these_samples`, `mapping_moved_on`, `several_sources`,
`unprofilable_sample` and `decision_not_applicable` it is an object. A client that does not know a code should
ignore `detail` rather than try to parse it. The tables below say which of the three each code sends.

A refusal of a value you sent may also carry `reason`: why that value was refused, as a code and the values it names,
each a string. It says what `message` says, as data, so a program can put it in its own words; the console does.

```json
{ "error": { "code": "invalid_product", "message": "\"name\" is longer than 200 characters.", "reason": { "code": "too_long", "values": { "field": "name", "max": "200" } } } }
```

`field` is the field's path in your request. `reason` is there only where the refusal states one. A client that
does not know a reason's code should read `message`. These are the codes, with the values each one names:

| `reason.code` | Values | The value sent |
| --- | --- | --- |
| `required` | `field` | is missing or empty. |
| `unknown_field` | `field` | is not a field of this request. |
| `wrong_type` | `field` | has the wrong type, such as a number where text belongs. |
| `not_one_of` | `field`, `allowed` | is not one of the allowed values. |
| `too_long` | `field`, `max` | is longer than `max` characters. |
| `length_between` | `field`, `min`, `max` | is not `min` to `max` characters long. |
| `out_of_range` | `field`, `min`, `max` | is not between `min` and `max`. |
| `at_least` | `field`, `min` | is less than `min`. |
| `too_many` | `field`, `max` | holds more than `max` entries. |
| `duplicate` | `field`, `value` | holds `value` more than once. |
| `needs` | `field`, `other` | needs `other` to be sent too. |
| `earlier_than` | `field`, `other` | is earlier than `other`. |
| `not_a_code` | `field`, `value`, `list` | `value` is not a code of `list`. |
| `not_a_date` | `field`, `value` | `value` is not a date. |
| `not_an_email` | `field`, `value` | `value` is not an email address. |
| `bad_format` | `field`, `value`, `expected` | `value` is not written as `expected`. |
| `check_digits` | `field`, `value` | `value` fails its check digits, as a wrong IBAN does. |
| `unknown_placeholder` | `field`, `value`, `allowed` | `value` is not one of the `allowed` placeholders. |
| `not_public` | `field`, `value` | `value` is not a public address. |
| `not_a_public_key` | `field` | is not a public SSH key. |
| `unknown_id` | `field`, `value` | no entry has `value` as its `field`. |

An operation that was accepted answers 202, and what went wrong with one of its items later is not an HTTP
error. A failed item carries `error` with `code` and `message`, and for `invalid_invoice` also `detail`. The
five codes an item can fail with are `unreadable_document`, `invalid_invoice`, `engine_unavailable`,
`virus_found` and `invoice_number_used`. `virus_found` means the virus scan found a virus in the file, so it was not
kept and nothing was validated. `invoice_number_used` means another outgoing invoice of the company already carries
the invoice's number, so it was not filed: an invoice number is given once (UStG § 14(4) Nr. 4).

A sentence in `detail` is always our own words. It never holds a library's message, a tool's output or a path
on our servers. Those go to our log, and so does the cause of an outage such as `engine_unavailable`, whose
answer stays the same fixed sentence.

A **verdict is never an error**: all three verdicts belong to a completed operation item. The messages a customer sees
about an invoice's content come from the validator, and are listed on
[Error messages](/reference/error-messages).

## The API itself

| Status | Code | Meaning |
|---|---|---|
| 404 | `unknown_route` | This API serves no route at that path and method. |
| 500 | `internal_error` | The request failed on our side. The answer says nothing further, because the reason is in our log and there is nothing in the request to correct. |
| 413 | `document_too_large` | A single raw document, or the sample files of one mapping draft, drift check or test together, is over the 10 MB limit. Nothing was read. |
| 413 | `operation_too_large` | An encoded operation envelope is over the 14 MB transport limit. Nothing was accepted. |
| 429 | `rate_limited` | This key made more than 600 requests this minute. The `Retry-After` header says how many seconds to wait. |

`unknown_route` and `internal_error` have the shape above too, so a client never meets an answer it cannot
parse. 

## Credentials and companies

| Status | Code | Meaning |
|---|---|---|
| 401 | `invalid_credentials` | No usable credential was sent, the credential is not valid, or the `Authorization` header is malformed. An API key past its expiry date, or used from an IP address outside its allowed list, gets this answer too. |
| 403 | `key_read_only` | This API key is read-only. It may only read (`GET` and `HEAD`). Nothing was done. |
| 403 | `role_required` | Any route, for a signed-in person: their role in this company does not allow this change. A write needs invoice work (Read only cannot); keys, webhooks, SFTP, the email inbox and DATEV settings need a developer, an admin or an owner; policy, sending, rulebooks, the team and adding a company need an admin or an owner. Nothing was done. |
| 401 | `session_required` | This action needs a signed-in person; an API key cannot do it. Finishing the console's setup is one such action. `POST /v1/signup` also answers it when the session token is missing or not valid. `GET /v1/session/companies` and `POST /v1/session/workspaces/{workspaceId}/companies`, `GET /v1/team` and its changes answer it to a key. |
| 401 | `reauthentication_required` | Creating an API key needs a sign-in in the last 10 minutes. Sign in again, then create it. |
| 403 | `email_not_verified` | `POST /v1/signup`: a person with no workspace yet sent a session token that carries no email address, or one the identity provider has not verified. Nothing was written. A person who already has a workspace is never refused for this. |
| 409 | `email_taken` | `POST /v1/signup`: the email address already belongs to a Certinvo login. Nothing was written, and the sign-in was not linked to that login. |
| 503 | `sign_in_unavailable` | `POST /v1/signup`: this deployment has no database, or no sign-in set up, so nobody can sign up. |
| 401 | `invalid_signature` | `POST /v1/zitadel/events`: the call has no `zitadel-signature`, is not signed with our Zitadel signing key, or is more than 300 seconds old. Nothing was read and nobody was released. |
| 503 | `zitadel_events_not_configured` | `POST /v1/zitadel/events`: this deployment has no Zitadel signing key, so it cannot tell a call from Zitadel from any other. Nobody was released. |
| 503 | `store_unavailable` | `POST /v1/zitadel/events`: a `user.removed` call reached a deployment without a database. Nobody was released. |
| 401 | `workspace_key_required` | This route needs a workspace key. |
| 400 | `company_required` | A workspace key was used without a `Certinvo-Company` header. |
| 404 | `unknown_company` | The named company or environment is not one this credential reaches. |
| 400 | `company_not_expected` | A `Certinvo-Company` header was sent to a workspace-wide route. |
| 400 | `environment_not_expected` | An API key sent `Certinvo-Environment`, which only the console uses. |
| 400 | `unknown_header` | The request carries a `Certinvo-` header the API does not read. Only `Certinvo-Company` and `Certinvo-Environment` exist; nothing is filed under a default company instead. |
| 404 | `unknown_key` | No such key for this company. |
| 400 | `invalid_key` | A new key was asked for with no name, a blank name, or one over 60 characters; with an expiry date that is not in the future; with an access other than `full` or `read`; or with more than 20 allowed IP addresses, or one that is not an IP address or CIDR range. Nothing was minted. |
| 503 | `no_database` | A key was asked for on a deployment that is not set up to issue keys. Nothing was minted. |
| 400 | `invalid_company` | The new company's body is wrong, on `POST /v1/companies` or `POST /v1/session/workspaces/{workspaceId}/companies`. |
| 409 | `company_reference_conflict` | The reference is already used for a company with another name. |

 In production every route but `/health` and `/ready` requires a
credential.

## Validation and conversion input

| Status | Code | Meaning |
|---|---|---|
| 400 | `invalid_operation` | The operation envelope, context, input discriminator, `outputs`, `print` (a language Certinvo does not print), `delivery` (not null, an email, a portal or a Peppol delivery), `policyVersion`, `companyFacts`, `buyerType` or base64 data is malformed, the envelope names a field it does not have, or a validation was given source invoice data instead of a finished invoice. The message names the field or the document. Nothing was accepted. |
| 400 | `unreadable_document` | The document could not be read as an invoice, so nothing was validated. A preview, a replacement and a re-check answer it as a 400, with the reader's sentence in `detail` when there is one. In an operation it is the `error.code` of a failed item, never a status. |
| 400 | `empty_document` | The body of a preview, a business document or a replacement is empty. |
| 400 | `invalid_json` | A body that must be JSON is not valid UTF-8, is not JSON, or writes one key twice in one object. An operation envelope that is valid UTF-8 but not JSON, or writes a key twice, is `invalid_operation` instead. |
| 400 | `invalid_invoice` | Canonical invoice input does not match the invoice model, or holds a value the writer will not make up, such as the VAT total in the VAT accounting currency (BT-111) when that currency (BT-6) is set. `detail` names each field at fault by its JSON Pointer. A preview, a business document and a replacement answer it as a 400; in a conversion it is the `error.code` of a failed item, with the same `detail`. A `validateOnly` conversion answers it as a 400 before anything is validated. |
| 400 | `invalid_query` | A query value is wrong, such as an unknown download format, `label` with something other than `gate-report`, a re-check's `policyVersion` that is not a version number, a history code the invoice list does not know, a `language` or `secondLanguage` Certinvo does not print (a preview, a business document or a new version), or a preview's `format`, `template` or `side` that is not one of its values. |
| 400 | `unknown_customer` | A conversion named a `customer` this company did not save. Nothing was accepted. |
| 400 | `not_an_invoice` | A conversion item or a new version has the type code of a business document that claims no payment, such as a pro forma (325). It is made as a PDF only, with `POST /v1/business-documents`. Nothing was accepted. |
| 400 | `not_a_business_document` | `POST /v1/business-documents` was sent an invoice. An invoice is made as e-invoice files with `POST /v1/conversions`. Nothing was made. |
| 400 | `unknown_policy_version` | An operation or a re-check named a policy version this company does not have. Nothing ran under the current policy instead. |
| 400 | `policy_version_superseded` | An operation named a policy version that is not the current one. An operation stores what it checks, so only the current version may grade it. A re-check under an older version is allowed and stores nothing. Nothing was accepted. |
| 400 | `unknown_mapping_version` | A canonical invoice names, in `meta.mappingConfigVersion`, a mapping this organisation has not frozen. Nothing was accepted. |
| 400 | `unknown_event_code` | `POST /v1/invoices/{id}/events` named a code a customer's system may not report. Only `api:sent`, `api:acknowledged`, `api:accepted`, `api:rejected` and `api:paid` are accepted. Nothing was added. |
| 400 | `invalid_event` | The event named a field other than `code` and `note`, or a note longer than 500 characters. Who reported it comes from the credential and cannot be sent. Nothing was added. |
| 400 | `invalid_email` | `POST /v1/invoices/{id}/emails` was not one address in `to` and one invoice file in `format`, or named another field. Either may be left out when the invoice's delivery plan sends by email. A DATEV file is not sent by email. Nothing was sent. |
| 400 | `invalid_forward` | `POST /v1/invoices/{id}/forwards` was not one invoice file in `format`, or named another field. Nothing was sent. |
| 409 | `no_webhook_for_forwards` | `POST /v1/invoices/{id}/forwards`: no live webhook of this company hears `api:forwarded`. Nothing was added to the history. |
| 502 | `email_not_sent` | The email provider refused the email or could not be reached. The message gives its reason, for example a sending domain that is not verified yet. Nothing was sent and the history is unchanged. |
| 503 | `email_not_configured` | This deployment has no email provider set up. Nothing was sent. |
| 401 | `invalid_signature` | A call to `POST /v1/email/events` is not signed with our Resend signing secret. Nothing was read. |
| 400 | `invalid_email_template` | An invoice email template names a field that does not exist, has an empty or too long subject or text, or names another key. Nothing was saved. |
| 400 | `invalid_sending` | The sending setting has an unknown mode, verdicts other than the two choices, or another key. A rejected invoice can never be chosen. Nothing was saved. |
| 400 | `invalid_email_inbox` | An entry in the inbox's sender list is neither an address nor `@domain`, or there are more than 200. Nothing was saved. |
| 503 | `email_inbox_not_configured` | This deployment has no inbox domain or no database, or a mail from an approved sender arrives and no key can read received mail. Resend tries the mail again later. |
| 503 | `email_events_not_configured` | This deployment has no Resend signing secret, so no email event is read. Resend tries again later. |
| 404 | `arrival_not_found` | `POST /v1/arrivals/not-accepted/{id}/allow`, `.../dismiss` or `GET .../file`: this company has no arrival with that id, or a file that could not be read was dismissed or is older than 30 days. `GET .../file` answers it too for a file with a virus, which was never kept. An SFTP file that was refused or a duplicate has no such action. |
| 409 | `nothing_kept` | `POST /v1/arrivals/not-accepted/{id}/allow` or `.../dismiss`: the mail keeps no file. It was filed, dismissed, is older than 30 days, or kept none. Nothing changed. |
| 502 | `engine_unavailable` | The engine or the validator could not run. Nothing is known about the invoice. In an operation it is the `error.code` of a failed item; a route that answers at once answers 502. |
| 503 | `store_unavailable` | Our store could not save. For an operation, nothing was accepted; for a route that answers at once, the invoice was checked but nothing was saved and no file was handed out. Send it again. |

## Customer files through a mapping

These come from a mapped-file conversion as JSON. The SAP push refuses a file for the same reasons, but
as a SOAP fault whose `faultstring` is the message; it sends no code and no `detail`.

| Status | Code | Meaning |
|---|---|---|
| 404 | `unknown_mapping_config` | `mappingVersion` names a mapping this company has not frozen. Nothing was accepted. |
| 400 | `config_reads_no_file` | The mapping has no `input` block, so it cannot read a file. |
| 400 | `invalid_operation` | Sent without `mappingVersion`, the file is not a customer export: a finished invoice belongs on `POST /v1/validations`, and canonical JSON in an input of type `canonical-invoices`. A PDF is refused this way when no mapping of this company reads PDFs, and the message names both doors. A PDF that carries its invoice as XML is refused this way through any mapping. The message says which. |
| 400 | `unreadable_file` | The file cannot be read with the mapping's input definition. For a PDF, that includes a scan with no text layer and a page without the mapping's line table. Without `mappingVersion`, it also means nothing placed the bytes and the mapping for their closest format says why. `detail` is the reader's sentence. |
| 400 | `unmappable_payload` | The file can be read, but one or more invoices cannot be filled. `detail` lists the first twenty, each with its fields. |

Sent without `mappingVersion`, a refusal of a file read through the mapping the API chose names that mapping in `error.mappingVersion`: the mapping that reads the file, or the one that knows most of its layout when none reads it.
| 400 | `several_invoices_in_one_file` | One IDoc pushed to the SAP door holds more than one invoice. Only that door meets it, so it arrives as a fault whose message says to send the file to `POST /v1/conversions` instead. |
| 409 | `several_mappings_fit` | Sent without `mappingVersion`, mappings of more than one name read the file, and they would make different invoices. `detail` has the `format`, the `versions` that read it and the file's `layout`. Name one and send it again, or answer once for the layout with `POST /v1/mappings/layout-choices`. Nothing was accepted. |
| 409 | `mapping_retired` | `mappingVersion` names a version of a retired mapping. `detail` has the retired `name`, the mapping that holds its decisions now (`into`, or null) and its newest `version` (or null). Send the file again naming that version, or naming no mapping. Nothing was accepted. |
| 409 | `value_format_changed` | The file's values in one or more columns are now written another way than its mapping declares, such as dates as `MM/DD/YYYY` where it declares `DD.MM.YYYY`. `detail.fields` names each column with the format declared (`was`), every format that reads all its values now (`now`) and up to two values; `detail.unmapped` lists any other field the mapping could not fill. Nothing was read the new way and nothing was accepted. Confirm the new format as the mapping's next version and send the file again. |
| 422 | `customer_needs_file` | A conversion's `outputs` turned off a file the named `customer` needs: its key, such as `outputs.pdf`, is `false`. The message names the customer and the file. Leave the key out or set it to `true`, or change the customer's files. Nothing was accepted. |
| 422 | `delivery_file_not_made` | A conversion's `delivery` names a file the conversion does not make: it is not `true` in `outputs` and not one of the named customer's files. The message names the file. Ask for the file in `outputs`, or name one it makes. Nothing was accepted. |
| 422 | `no_mapping_fits` | Sent without `mappingVersion`, no frozen mapping of this company knows at least 0.6 of the file's layout, so the file comes from another system, and it is not a filled copy of the CSV template. `detail.format` is the format it was recognised as, when it was. Create a mapping for it and send it again. Nothing was accepted. |
| 413 | `file_too_large_to_read` | The file is inside the 10 MB limit, but once read it holds more than 128 MB. Nothing was accepted. Split it into smaller files. |
| 502 | `engine_unavailable` | The reader could not run. For a PDF, the reader is cipher's page reader. Nothing was accepted, and nothing is known about the file. |

## Filed invoices

| Status | Code | Meaning |
|---|---|---|
| 404 | `unknown_invoice` | No such invoice, or file, for this company. |
| 400 | `invalid_cursor` | The paging cursor is not one the API issued. |
| 400 | `too_many_rows` | A CSV of the invoice list would hold more than 10,000 invoices. Narrow it with `issuedFrom` and `issuedTo`. |
| 409 | `invoice_rejected` | The file is refused because its newest verdict is `rejected`. For a file written on the spot, that file's own verdict decides, not the invoice's. Your own download of an invoice already sent is decided by the check it was sent with, while that check accepted it; sending it again is decided by the newest. |
| 409 | `invoice_not_validated` | The file is refused because nothing has checked it, or its check gave no verdict Certinvo knows as an acceptance. A file written on the spot with no stored verdict is graded then, so it answers this only when that run gives no such verdict. |
| 409 | `invoice_on_hold` | A DATEV file of a received invoice the company's settings hold: one the gate rejected, or one whose bank account is new or not on its PDF. `POST /v1/invoices/{id}/forwards` answers it too for an invoice held for its bank account. It stays readable; a person releases it with a reason at `POST /v1/invoices/{id}/release`. A dismissed invoice stays held for good. |
| 409 | `invoice_changed_since_check` | The file is no longer the file the validator graded. This covers a stored file and an XML file written again at download. Every check records a hash of the bytes it graded; these bytes do not match it. A PDF is compared by the XML it carries, also inside a DATEV package. A re-check grades the stored files, so it clears this only when the stored file is still accepted. A file written at download is refused with it too when the invoice data it would be written from is not the data the newest check recorded. |
| 409 | `conversion_would_be_incomplete` | The requested syntax cannot hold this invoice. |
| 409 | `datev_export_refused` | The DATEV writer refused this invoice; the message says why. |
| 409 | `invoice_not_replaceable` | Only an invoice Certinvo made can be replaced. |
| 409 | `invoice_already_replaced` | This version already has a successor. |
| 409 | `invoice_sent` | The invoice left: it was emailed, forwarded, put in the SFTP folder, had a file downloaded, was reported sent, or the buyer answered it. No new version replaces it. A change is a correction (384) or a credit note (381) that names it, made with `POST /v1/invoices/{id}/follow-ups` (UStDV § 31(5)). A DATEV export does not lock an invoice. Nothing was filed. |
| 409 | `invoice_number_used` | The invoice's number is already on another outgoing invoice of this company, and the two are not versions of one invoice. An invoice number is given once (UStG § 14(4) Nr. 4). Use the next free number, or correct the invoice that has it. Nothing was filed. In an operation it is the `error.code` of a failed item. |
| 409 | `invoice_replaced` | An edit replaced this version, so it is not emailed, forwarded or reminded. The message names the newest version; send that one. The old version's files still download. |
| 404 | `no_review` | The invoice is yours but was never reviewed by the review add-on. |
| 404 | `no_trace` | The invoice was made through no mapping, so it keeps no trace of where its values came from. |
| 400 | `invalid_duplicate_decision` | A decision on a likely duplicate is not `keep` or `dismiss`, or the body names another key. |
| 409 | `not_a_likely_duplicate` | The invoice was never held as a likely duplicate, so there is nothing to decide. |
| 409 | `duplicate_already_decided` | The likely duplicate was already kept or dismissed. A decision is made once. |

## The GoBD archive and the plan

These come from `GET /v1/plan`, `GET /v1/archive` and `GET /v1/invoices/{id}/archive/{file}`. 

| Status | Code | Meaning |
|---|---|---|
| 403 | `workspace_plan_unavailable` | `GET /v1/plan`: this workspace has no plan in force. |
| 403 | `workspace_closed` | `GET /v1/plan`: an owner closed this workspace. The message names the day its data is deleted. |
| 400 | `invalid_cursor` | `GET /v1/archive`: the cursor is not one the API issued. |
| 404 | `unknown_invoice` | This company filed no invoice with this id. Another company's invoice gets the same answer. |
| 404 | `not_archived` | The invoice has no file of that name in the archive. `GET /v1/invoices/{id}/archive` lists the names it has. |
| 409 | `not_archived_yet` | The file is still waiting to be written to the archive. Ask again later. |
| 409 | `invoice_rejected`, `invoice_not_validated`, `invoice_changed_since_check` | The release guard refuses a file we made, as on every route that hands one out. The file stays locked in the archive. An invoice already sent is read on the check it was sent with, so a later check does not lock it. |
| 502 | `archive_file_changed` | The bucket returned bytes that are not the file that was archived. Nothing was handed out. It is ours to look into, never the caller's. |
| 503 | `archive_unavailable` | The bucket did not hand the file back. The file is still archived. Ask again later. |
| 503 | `archive_not_configured` | This deployment has no archive bucket set up, so no file can be read from it. |
| 503 | `no_database` | This deployment stores nothing, so it has no plans and archives nothing. |

## Validation and conversion operations

| Status | Code | Meaning |
|---|---|---|
| 400 | `invalid_operation` | The operation envelope, context, input discriminator or base64 data is malformed, a field is unknown, or finished-document validation was given source data. Nothing was accepted. |
| 400 | `operation_too_large` | The operation exceeds the active workspace plan's item or decoded-byte limit. Nothing was accepted. |
| 403 | `workspace_plan_unavailable` | This workspace has no current processing-plan assignment. Nothing was accepted. A preview and a replacement answer it too, and the SAP push as a fault. |
| 403 | `workspace_closed` | An owner closed this workspace, so it starts no new work. The message names the day its data is deleted; until then an owner can reopen it. Nothing was accepted. A preview and a replacement answer it too, and the SAP push as a fault. |
| 403 | `operation_not_included` | The workspace plan does not include validation or conversion, whichever was requested. Nothing was accepted. A preview needs conversion for canonical JSON and validation for XML and PDF; a replacement and the SAP push, which answers as a fault, need conversion. |
| 403 | `archive_not_included` | A replacement files an invoice for good, and the workspace's plan keeps results only for a while. Nothing was filed. The SAP push refuses the same plan as a fault. It is about keeping results at all, not about the GoBD archive feature. |
| 404 | `unknown_operation` | No current operation of this kind and id exists for this company. The same answer covers another company's id, an expired temporary operation and an item index that does not exist. |
| 409 | `operation_not_ready` | The requested report, canonical model, report pages, individual file or ZIP does not exist yet, the item failed, or the operation has no released file. Read the operation for each item's current outcome. A file of a rejected item can also be refused by the release guard, with `invoice_rejected`. |
| 409 | `idempotency_key_reused` | The key was used before on this route with different request bytes. On `POST /v1/session/workspaces/{workspaceId}/companies` it was used for another company, so nothing was made. |
| 409 | `request_in_progress` | The same request is still being done. Either an email, forward, follow-up, final invoice or SAP message was sent again under the same `Idempotency-Key` before the first was answered, or a second import of the same kind of data file came while the first was saved. Nothing was done twice. Send it again in a moment: a repeat under the same key is then answered with the first answer. |
| 400 | `invalid_idempotency_key` | The `Idempotency-Key` is empty or longer than 255 characters. Nothing was done. |
| 400 | `idempotency_key_required` | `POST /v1/session/workspaces/{workspaceId}/companies` was sent without an `Idempotency-Key`. A repeated click must make one company, so the key is required. |
| 403 | `role_required` | `POST /v1/session/workspaces/{workspaceId}/companies`: only an owner, or an admin with access to every company, may add a company. Nothing was made. |
| 404 | `not_found` | `POST /v1/session/workspaces/{workspaceId}/companies`: the workspace is not this person's. It says nothing about any other workspace. Nothing was made. |
| 409 | `company_reference_conflict` | `POST /v1/session/workspaces/{workspaceId}/companies`, as `POST /v1/companies`: the reference already names a company with another name or country. Nothing was changed. |
| 422 | `formats_not_allowed` | The files a conversion's `outputs`, or a replacement's query, asks for are not allowed by the validation policy, as a save of the policy would not be. Only a request that names `ubl`, `cii`, `en16931-ubl`, `en16931-cii`, `factur-x`, `extended-cii` or `zugferd-extended` is checked. The message gives the policy's reason. Nothing was accepted or filed. |
| 422 | `page_not_kept` | A conversion asks `keepPage: true`, and its page cannot be kept: the input is invoice data, not a converted PDF; the file is not a PDF; the conversion is temporary, so it keeps no file; or the PDF holds more than one invoice. The message says which. Nothing was accepted. |
| 429 | `document_quota_exceeded` | The complete operation does not fit the active plan assignment's remaining document allowance. Nothing was accepted. A preview of an XML or PDF file uses one document of the allowance, and gives it back when it fails; a preview of canonical JSON counts nothing. A replacement and the SAP push count the one invoice they file, in the transaction that files it, so a full allowance files nothing. A re-check counts nothing. |

## Mappings

| Status | Code | Meaning |
|---|---|---|
| 400 | `invalid_mapping_config` | The card does not load, a draft's finalize was sent no `version`, or `from` sent to `POST /v1/mappings/drafts` is empty or not a string; the detail says why. |
| 400 | `unknown_confirming_user` | The person confirming is not a member of this company's workspace. |
| 409 | `mapping_config_exists` | A card with this version is already frozen. |
| 404 | `unknown_mapping_config` | No frozen card with that version for this company. A `from` sent to `POST /v1/mappings/drafts` gets it too, and nothing is drafted. |
| 400 | `invalid_code_book_entry` | A code book answer names no official list, an empty or over-long code, or an official code that is not on its list. Nothing was saved. A file of codes is refused row by row in its preview instead. |
| 404 | `unknown_code_book_entry` | `DELETE /v1/mappings/codes/{list}/{code}` named a code your code book does not answer. Nothing was changed. |
| 501 | `no_database` | A code book answer was sent to a deployment with no database, which keeps no code book. Nothing was saved. |
| 400 | `invalid_layout_choice` | `POST /v1/mappings/layout-choices` was sent no `layout` as a 409 `several_mappings_fit` named it, or no `mappingVersion`. Nothing was remembered. A `mappingVersion` this company never froze gets `unknown_mapping_config`. |
| 400 | `config_reads_no_file` | A preview with a file, a test on samples, or the test of a kept draft met a card with no `input` block. The test of a draft read off a scan or an image gets it too, and so does a PDF whose line table was not found. |
| 400 | `no_samples` | `POST /v1/mappings/tests`, `POST /v1/mappings/drafts`, its drift check or `POST /v1/mappings/drafts/{id}/samples` was sent no sample, or a sample without a `name` or its `data`. |
| 413 | `file_too_large_to_read` | A sample sent to `POST /v1/mappings/tests`, `POST /v1/mappings/drafts`, its drift check or `POST /v1/mappings/drafts/{id}/samples`, or kept for a draft being tested, holds more than 128 MB once read. Nothing was tested, drafted, checked or kept. |
| 404 | `unknown_mapping_draft` | This company has no mapping draft with that id. A draft of another company gets the same answer. |
| 409 | `mapping_draft_finalized` | The draft is finalized and never changes, and is never deleted. Start a new draft from samples. |
| 404 | `unknown_sample` | `GET /v1/mappings/drafts/{id}/samples/{index}/pages/{page}` names a sample the draft does not have (samples count from 0), or `DELETE /v1/mappings/drafts/{id}/samples/{sha256}` names a file the draft does not hold. |
| 409 | `last_sample_needed` | `DELETE /v1/mappings/drafts/{id}/samples/{sha256}` would remove the last sample of a draft that is made from samples: one for a registered model, or a new version of a saved mapping. Add another sample first. |
| 422 | `not_a_document` | That sample is no PDF or image, so it has no page to show. |
| 422 | `no_such_page` | That sample has no such page. Pages count from 1. |
| 409 | `a_saved_mapping_reads_these_samples` | `POST /v1/mappings/drafts/{id}/finalize` was asked to freeze a draft with no `from` under a new name, and saved mappings of this company already read every sample. `detail.versions` names the newest version of each. Freeze it as the next version of one of them, under its name, or send `newName: true` when the files come from a different system. Nothing was frozen. |
| 409 | `open_columns` | `POST /v1/mappings/drafts/{id}/finalize` was asked for a draft with a column that is neither mapped nor left out. `detail.columns` names each. Decide them and finalize again. Nothing was frozen. |
| 409 | `untested_mapping` | `POST /v1/mappings/drafts/{id}/finalize` was asked for a draft whose last test did not pass on the card and the samples as they are now, or that was never tested. Run `POST /v1/mappings/drafts/{id}/test`. Nothing was frozen. |
| 409 | `mapping_not_ready` | `POST /v1/mappings/drafts/{id}/finalize` was asked for a draft whose `readiness` says it cannot be saved yet, for a reason other than open columns or the test. `detail.reason` names it: `not-executable` (read off a scan, or a page with no line table), `reads-no-file` (a table's card with no `input` block), `missing-required` (a required field nothing fills), `codes-unanswered` (a code nobody gave a meaning), `payment-keys-unanswered` (a payment key the table does not answer) or `policy-refused` (the policy check the test ran rejects the samples for a field this mapping can fill). `detail.readiness` is the draft's whole readiness. Finalize refuses by the first thing `readiness.blockedBy` names, so a draft with a missing field gets this code even before it was tested. Nothing was frozen. |
| 400 | `invalid_retirement` | `POST /v1/mappings/retirements` was not sent a `name`, or `into`, `why` or `restore` is not what it takes. Nothing was written. |
| 400 | `invalid_merge` | `POST /v1/mappings/merges` was not sent two different mapping names, or `version` is not a version of the mapping merged into. Nothing was written. |
| 409 | `mapping_moved_on` | `POST /v1/mappings/drafts/{id}/finalize`: the draft starts from a version that is no longer the newest of its mapping, because someone saved a newer one. Saving would drop their changes. `detail.from` and `detail.newest` name both. Replay the draft with `POST /v1/mappings/drafts/{id}/rebase` and save again. Nothing was frozen. |
| 409 | `merge_conflict` | `POST /v1/mappings/merges`: the mapping merged in decides some places otherwise than the one it is merged into. `detail.conflicts` names each place (`at`) and why. Decide them in the next version of that mapping. Nothing was saved or retired. |
| 400 | `invalid_formats` | `formats` on `POST /v1/mappings/drafts` was sent without `from`, is not a list of `{column, format}`, or names a column the version in `from` does not read with a format of that kind. Nothing was drafted. |
| 400 | `invalid_decisions` | `POST /v1/mappings/drafts/{id}/decisions` was not sent `decisions` as a list of objects. Nothing was kept. |
| 422 | `decision_not_applicable` | A decision names a column or field the draft or its list of fields does not have, or a field another column already writes. A code answer is refused too when its field takes no official code, or when the answer is not on the field's list. A payment-key answer is refused when its field is not `/paymentTerms/note`, its text is empty or starts a line with `#`, or a step is not whole days with a percent of at most two decimals. `detail` is an object: the decision's `index` in the request and the `decision`. Nothing of the request was kept. |
| 400 | `invalid_target_model` | A target model needs a `name` and a `version` that are addresses, and a schema of an object with `properties`. |
| 409 | `target_model_exists` | That version of the target model is registered already; a version never changes. |
| 400 / 404 | `unknown_target_model` | A card names a target model this company never registered (400), or it was asked for by name (404). |
| 404 | `unknown_template` | There is no template of that name. The templates are `invoices.csv`, `invoices.xlsx` and `invoices.json`. |
| 404 | `unknown_sample` | There is no sample of that name. The samples of files Certinvo makes are `invoice-list.csv`, `invoice-list.xlsx`, `datev-extf.csv` and `index.csv`. |
| 400 | `not_a_target_mapping` | `POST /v1/mappings/transformations` was given a card that writes Certinvo's own invoice. |
| 422 | `several_sources` | The samples sent to `POST /v1/mappings/drafts`, or a draft's samples with the ones added to it, are more than one layout. `detail.groups` lists each group's `files`. Draft each group on its own. Nothing was drafted. |
| 422 | `not_one_source` | The samples sent to `POST /v1/mappings/drafts`, or a draft's samples with the ones added to it, are not one source: written a way the first file's reader cannot join. `detail` names the file. Files of another format or dialect are another layout, refused as `several_sources`. |
| 422 | `already_an_invoice` | A sample sent to `POST /v1/mappings/drafts` or added to a draft is a finished e-invoice, which needs no mapping. |
| 422 | `unreadable_file` | A sample sent to `POST /v1/mappings/drafts` or added to a draft could not be read; `detail` names it with the reader's words. |
| 422 | `unprofilable_sample` | The profiler could not profile the samples; `detail` is its reason and its words. |
| 503 | `profiler_unavailable` | The profiler did not answer, so nothing was drafted, or no page was drawn. Nothing is wrong with the samples. |

A sample that fails the test is not an error: `POST /v1/mappings/tests` and the test of a kept draft answer
200 and say, per sample, why it failed.

## Settings

| Status | Code | Meaning |
|---|---|---|
| 400 | `invalid_policy` | The validation policy is wrong, on either side. One side may make two rulebooks `REQUIRED` that no file can pass together, such as `EN16931 XRechnung` and `EN16931 XRechnung Extension`. Or the company's country has no rule set pinned for it, and the policy is not `EN16931` `REQUIRED` with every other rulebook `OFF` on both sides. Or it makes `extended-cii` or `zugferd-extended` without `ZUGFeRD EXTENDED` `REQUIRED`. Or a legal rule that could apply to the company's invoices shuts out an extra check the policy runs. The message names the problem, the country, or the rule and its source. |
| 400 | `invalid_group_defaults` | The group defaults name something they do not hold, such as a fact, or a rulebook that is no extra check. Nothing was saved. |
| 400 | `invalid_release` | A release or a dismissal (`POST /v1/invoices/{id}/dismiss`) gives no reason. |
| 409 | `already_released` | A person already released or dismissed the held invoice. A hold is decided once. |
| 400 | `invalid_layout` | The company's invoice layout names a field no invoice can fill, a template, language or switch Certinvo does not have, a logo that is not a PNG or JPEG of up to 500 KB, a file name pattern with a placeholder it does not know or more than 120 characters, or is not a layout at all; the message names what. Nothing was saved. |
| 404 | `no_policy` | Nothing is stored in this deployment, so there is no policy to read or change. No door there checks an invoice either, because without a database there is no processing plan. |
| 400 | `invalid_customers` | The customer list does not match its schema, or repeats an id, or names a file Certinvo does not make, or delivers a file that is not one of the customer's files. |
| 422 | `peppol_participant_missing` | A customer is delivered by Peppol, and it or the company's head office has no Peppol participant ID as its electronic address. The message names which. |
| 404 | `no_customers` | No customers saved yet. |
| 400 | `invalid_datev_settings` | The DATEV settings do not match their schema. |
| 404 or 409 | `no_datev_settings` | Nothing saved yet, or a CSV export needs settings. |
| 400 | `invalid_suggestion_sharing` | The body is not `{"shared": true}` or `{"shared": false}`. |
| 400 | `invalid_vat_id` | The body sent to `PUT /v1/company/vat-id` is not `{"vatId": "..."}`, or the VAT ID cannot be an EU VAT ID: it must start with a member state's prefix (Greece is `EL`) and then have 2 to 12 letters or digits, at least one a digit. `PUT /v1/workspace/profile` answers it too, for a `vatId` that cannot be an EU VAT ID. VIES was not asked and nothing was saved. |
| 400 | `invalid_company_facts` | The body sent to `PUT /v1/company/facts` is not JSON, names a field it does not have, or holds a value outside a field's list: the country is not a country code, the turnover is not an amount such as `812345.50`, or the exemption reason is not `OTHER`, `USTG_19_1` or `USTG_4_NR_8_TO_29`, or a fact is asked of an establishment or a buyer, not of the company. The message names the field. Nothing was saved. |
| 400 | `invalid_establishment` | The body sent to `POST /v1/establishments` or `PUT /v1/establishments/{id}` is not JSON, names a field it does not have, or holds a value it cannot: a kind that is not `head_office`, `branch`, `vat_registration` or null, a country that is not a country code, a VAT ID that cannot be an EU VAT ID, or an electronic address without its scheme or with a scheme not on the official list, or a fact in `facts` that no rule file asks of an establishment or with a value its rule file does not allow. A new version that changes the country, or makes or unmakes the Head office, is refused too. `POST /v1/establishments/{id}/head-office` answers it for an establishment that is not a branch: only a branch becomes the Head office. The message names the field. Nothing was saved. |
| 409 | `head_office_exists` | `POST /v1/establishments` with `kind: head_office` for a company that has its Head office already. Save a new version of it instead. Nothing was saved. |
| 404 | `not_found` | `PUT /v1/establishments/{id}` or `POST /v1/establishments/{id}/head-office`: this company has no establishment by that id. Nothing was saved. |
| 409 | `version_conflict` | `PUT /v1/establishments/{id}`: someone saved a version of it meanwhile; `POST /v1/establishments/{id}/head-office`: someone saved the branch or the Head office meanwhile. Read again, then retry. Nothing was saved. |
| 400 | `invalid_workspace_profile` | The body sent to `PUT /v1/workspace/profile` is not JSON, or is not `{"name", "vatId", "address": {"street", "postcode", "city", "country"}}`: a field is missing, blank or too long, the body names a field it does not have, `vatId` is neither a string nor `null`, or the country is not two letters. The message says which. Nothing was saved. |
| 404 | `approval_link_invalid` | `GET` or `POST /v1/beta/approvals/{token}`: the approve link was changed, is older than 30 days, or names a workspace that does not exist. Nothing was read or changed. `cvo-admin beta approve` still works. |
| 409 | `already_approved` | `POST /v1/beta/approvals/{token}`: the workspace already has a plan. Nothing was changed. |
| 503 | `no_beta_plan` | `POST /v1/beta/approvals/{token}`: this deployment has no `beta` plan yet. Nothing was changed. |
| 400 | `invalid_console_setup` | The setup answers sent to `PUT /v1/console-setup` are not the three fields `mode`, `direction` and `markets`, each with a value the console offers. `mode` may be null only for a company that only receives. The message names the field. |
| 503 | `store_unavailable` | `PUT /v1/console-setup` on a deployment without a database, so setup cannot be recorded. `GET` there answers that setup is finished. `GET` and `POST /v1/beta/approvals/{token}` answer it too, and approve nobody. |
| 501 | `no_database` | The service runs without a database, so nothing can be saved. It is a permanent limit of the deployment, so sending the request again will not help. `GET /v1/access`, `GET /v1/team`, `POST /v1/team/invitations` and `GET /v1/session/companies` answer it too. |
| 400 | `invalid_invitation` | The body sent to `POST /v1/team/invitations` is not JSON, or is not `{"email", "role", "access", "companies"}`: the email is not an address or is longer than 200 characters, the role is not one of owner, admin, developer, operator, auditor, the access is not all or selected, or selected access names no company. `PUT /v1/team/members/{userId}/access`: the body is not a role, an access and a revision. Nothing was done. |
| 403 | `role_required` | `POST /v1/team/invitations`: only an owner or an admin of the workspace may invite, only an owner may invite an owner, and an admin with selected access gives only selected access to their own companies. `PUT /v1/team/members/{userId}/access`: the same, and nobody widens their own access. Nothing was made. |
| 404 | `not_found` | `PUT /v1/team/members/{userId}/access`: this person is not in this workspace. |
| 400 | `unknown_company` | `POST /v1/team/invitations` or `PUT /v1/team/members/{userId}/access`: a company named is not one of this workspace. Nothing was changed. |
| 409 | `version_conflict` | `PUT /v1/team/members/{userId}/access`: someone changed this person's access since it was read. Read `GET /v1/team` again. |
| 409 | `last_owner` | `PUT /v1/team/members/{userId}/access`: this is the workspace's last owner, who stays an owner. Make someone else an owner first. |
| 400 | `invalid_ai_reading` | The body sent to `PUT /v1/company/ai-reading` is not `{"enabled": true}` or `{"enabled": false}`, or `aiReading` on `POST /v1/mappings/drafts` is not `this-file`. Nothing was saved or read. |
| 400 | `invalid_ai_request` | The body sent to `POST /v1/mappings/drafts/{id}/ai` has a `columns` that is not a list of strings, or a `consent` that is not true or false. Nothing was asked. |
| 403 | `ai_consent_required` | Map with AI needs `consent: true` for the request, or the company setting for AI. Nothing was asked. |
| 422 | `ai_not_for_pdf` | A PDF draft is not asked about with Map with AI: its page is read when it is uploaded, after its own question. |
| 422 | `ai_nothing_open` | Every column of the draft is mapped or left out, so there is nothing to ask about. |
| 422 | `ai_column_not_open` | A column named in `columns` is mapped. AI is asked only about open columns; `detail.columns` names them. Nothing was asked. |
| 429 | `ai_limit_reached` | The company made 50 Map with AI requests that reached the model in the last 24 hours. Nothing was asked; map the columns by hand, or try again later. |
| 502 | `ai_unavailable` | The AI service gave no usable answer. Nothing was changed on the draft. |
| 503 | `ai_not_set_up` | AI is not set up on this server. Nothing was sent; the columns can be mapped by hand. |
| 409 | `email_taken` | `POST /v1/team/invitations`: the address already belongs to a Certinvo person, in any case of letters, or Zitadel already holds it. Nothing was made, and the invitation was not linked to that person. |
| 502 | `invitation_not_sent` | `POST /v1/team/invitations`: Zitadel refused or could not be reached. The message gives Zitadel's words. A person Zitadel had already made was deleted again, and nothing was stored. |
| 503 | `invitations_not_configured` | `POST /v1/team/invitations`: this deployment is not set up to invite people. Nothing was made. |

## Closing the workspace and downloading everything

These come from `GET`, `POST` and `DELETE /v1/workspace/closure` and from `GET /v1/workspace/export`.

| Status | Code | Meaning |
|---|---|---|
| 401 | `session_required` | An API key was used. Only a signed-in person closes, reopens or downloads the workspace, from the console. |
| 403 | `role_required` | `POST` or `DELETE /v1/workspace/closure`: only an owner closes or reopens the workspace. `GET /v1/workspace/export`: only an owner or an admin downloads it. Nothing was changed or sent. |
| 409 | `workspace_has_workspaces` | `POST /v1/workspace/closure`: other workspaces sit under this one, so it is not closed here. Ask Certinvo. Nothing was changed. |
| 501 | `no_database` | This deployment stores nothing, so it has no workspace to close or download. |

The download starts with status 200 and is written while it is read. If it fails after that, the connection is
cut, so the file is broken rather than a short ZIP that opens. The same happens when the ZIP would pass 65,535
files or 4 GiB, the most one ZIP holds without its large-file extension.

## Webhooks

| Status | Code | Meaning |
|---|---|---|
| 400 | `invalid_webhook_url` | The URL is not https to a public host, carries a user name or password, or is not a URL. |
| 400 | `invalid_webhook_events` | `events` names a code that is not in the history's list, is empty, names one code twice, or is not a list. A `PATCH` without `events` is refused the same way. |
| 400 | `too_many_webhooks` | This company already has 10 live webhooks. Stop one first. |
| 404 | `unknown_webhook` | This company has no live webhook with this id. The same answer is given for a stopped one, another company's, or an invalid id. |
| 404 | `unknown_webhook_delivery` | The webhook has no delivery with this id. |

## SFTP

| Status | Code | Meaning |
|---|---|---|
| 400 | `invalid_sftp_key` | `PUT /v1/sftp`: a key is not one OpenSSH public key, is an RSA key under 3072 bits, is listed twice, there are more than 10, or the body is not `{"publicKeys": [...]}`. Nothing was saved. |
| 503 | `sftp_not_configured` | This deployment runs no SFTP server or stores nothing. Nothing was saved. |

## DATEV exports and Peppol

| Status | Code | Meaning |
|---|---|---|
| 400 | `invalid_datev_export` | The export request is wrong. |
| 400 | `range_crosses_fiscal_year` | A CSV export must stay inside one fiscal year. |
| 409 | `nothing_to_export` | No invoices to export in that range. |
| 409 | `reconciliation_needed` | Some corrections refer to an invoice whose way to DATEV the records cannot confirm. The list is in `reconcile`; send their ids in `reconciled` to book them. Nothing was recorded. |
| 404 | `unknown_datev_export` | No such export for this company. |
| 400 | `invalid_correction` | `PUT /v1/invoices/{id}/correction`: the body names no class. |
| 404 | `not_a_correction` | The invoice names no invoice it corrects, and no earlier version of it went to DATEV. |
| 409 | `class_below_derived` | The class is below the one its changes show. It can be raised, never lowered. |
| 409 | `correction_already_confirmed` | Another class is confirmed already, and a confirmed class does not change. |
| 400 | `invalid_participant` | The Peppol id is not in the form `1234:identifier`. |
| 502 | `directory_unavailable` | The Peppol registry could not be asked. Nothing is known about the buyer. |

## Invoicing records

Number series, drafts, the catalogue, payment methods, the invoicing profile, follow-ups, reminders and recurring
invoices answer these codes. Each refusal's message names the field.

| Status | Code | Meaning |
|---|---|---|
| 400 | `invalid_number_series` | The pattern is not 1 to 40 characters with exactly one counter such as `{0000}`, or `nextCounter` is not a whole number from 1. Nothing was saved. |
| 404 | `unknown_number_series` | There is no series of that kind. The kinds are `invoice`, `credit-note`, `correction`, `quote` and `proforma`. |
| 400 | `invalid_draft` | The draft is not `{ kind?, invoice, settings? }` with two objects, or the two together are over 1 MiB. Nothing was saved. |
| 404 | `unknown_draft` | This company has no draft with this id. |
| 409 | `draft_changed` | `PUT /v1/drafts/{id}` named a `revision` in If-Match, and the draft was saved since. Nothing was saved. Open the draft again to see the newer version. |
| 400 | `invalid_if_match` | `PUT /v1/drafts/{id}` was sent an If-Match that names no revision. A revision is written as `"3"`. Nothing was saved. |
| 400 | `invalid_product` | The product has no name, or its unit, price, VAT category or rate is not valid. Nothing was saved. |
| 404 | `unknown_product` | This company has no product with this id. |
| 400 | `invalid_payment_method` | The payment means code is not on the official list, an IBAN's check digits do not match, or a direct debit has no creditor id. Nothing was saved. |
| 404 | `unknown_payment_method` | This company has no payment method with this id. |
| 400 | `invalid_invoicing_profile` | One of the five answers is missing or not one the profile offers. Nothing was saved. |
| 400 | `invalid_follow_up` | `kind` is not `copy`, `correction`, `credit` or `next`, or `interval` was given with another kind. |
| 400 | `invalid_final_invoice` | The reference is missing, an id is not a down payment of that reference, or the down payments are in different currencies. |
| 409 | `no_down_payments` | No down payment invoice of this company names that contract or order reference. |
| 409 | `down_payment_not_received` | None of the down payments of the reference is marked paid, or one that `downPaymentIds` names is not. A final invoice deducts only the down payments received (UStG § 14(5)). Mark it paid first, or leave it out. Nothing was made. |
| 409 | `not_an_issued_invoice` | The invoice was received, not issued by this company, so it has no follow-ups, reminders or repeats. |
| 409 | `invoice_has_no_model` | No invoice model could be read from the invoice, so nothing can be made from it. |
| 400 | `invalid_reminder` | `level` is not 0, 1 or 2, or the fee, due date, language or address is not valid. |
| 409 | `reminder_out_of_order` | A reminder level follows the one before it. The message names the level the next one must have. |
| 409 | `invoice_paid` | The invoice's history holds `api:paid`, so it gets no reminder. |
| 409 | `not_payable` | The invoice is a credit note, or the validator rejected it, so it asks nobody for payment and gets no reminder. The message says which. |
| 400 | `invalid_recurring_invoice` | The body does not name exactly one invoice or draft, or its interval or next due date is not valid. |
| 404 | `unknown_recurring_invoice` | This company has no recurring invoice with this id. |
| 409 | `schedule_inactive` | The recurring invoice is paused, so no next invoice is prepared. |

A payment method, a number series pattern and the invoicing profile are changed only by a signed-in person; a key
gets 401 `session_required`. `POST /v1/invoice-events` refuses a body with `invalid_event`, as the single-invoice
route does.

## Support reports

| Status | Code | Meaning |
|---|---|---|
| 400 | `invalid_support_report` | The body sent to `POST /v1/support/reports` is not a report. `kind` must be `problem`, `question` or `idea`. `message` must be 1 to 50,000 characters, `page` a console path, `invoice_id` an invoice id, `reference` an id the console showed, and `attachment` one file of at most 5 MB (`name`, `content_type`, `data` as base64). No other field is allowed. The message names the field. Nothing was kept. |
| 401 | `session_required` | A report was sent with an API key. Only a signed-in person sends one, from the console. |
| 501 | `no_database` | The service runs without a database, so a report cannot be kept. Sending it again will not help. |

Source: https://docs.certinvo.com/reference/api-error-codes/index.mdx
