Skip to content

API reference

API reference

Every route of the Certinvo API: what it does, what it takes and what it answers.

The Certinvo API is organised around REST. It has predictable URLs, answers in JSON, and uses standard HTTP methods and status codes. Most requests send JSON; a route that takes an invoice file says which file types it accepts.

Every request goes to one base URL, https://api.certinvo.com, over HTTPS. You can use the API in a sandbox without touching live data: the key you send decides which. A sandbox key starts with cvo_test_, a live key with cvo_live_.

The API never decides by itself whether an invoice is compliant. It asks the official validator for the invoice’s rules and passes on the answer.

Areas

Area What it covers
Validations Validate one or more finished invoices with one operation.
Conversions Convert one or more invoice inputs, validate every generated file, and download released outputs.
Invoices List, read, download, revalidate and replace stored invoices.
Mappings Freeze and inspect a customer’s mapping. Use a conversion operation to process a mapped file.
Invoicing Number series, drafts, follow-ups, products, payment methods, reminders and recurring invoices.
DATEV exports Export a period of invoices for DATEV.
Peppol Find out whether a buyer can receive invoices over Peppol.
Companies and keys Manage the companies of a workspace and their API keys.
Settings Read and change a company’s settings.
Health Check that the service is up.
Other routes Routes the reference does not yet sort into an area.

Authentication

API key

Send the key as Authorization: Bearer cvo_live_sk_….

The prefix selects the environment: cvo_live_… uses live data and cvo_test_… uses the sandbox. Both use the same base URL. sk marks a server key. There are no browser keys. Never use a key in client-side code.

A key is shown once when it is created and is stored only as a hash. A key belongs to one company, or, as a workspace key, to every company of its workspace in its environment. The request’s company comes from the key only. A call may name a company the key already covers with Certinvo-Company: <company id>. A workspace key must name one (400 company_required). A company the key does not cover returns 404 unknown_company, never 403. A company id in a path, a query parameter or any other header is ignored.

A key can carry three limits, chosen when it is created: an expiry date, after which it is refused with 401 invalid_credentials; read-only access, which allows only GET and HEAD and refuses any other method with 403 key_read_only; and a list of allowed IP addresses or CIDR ranges. A call from any other address is refused with 401 invalid_credentials, exactly like a wrong key.

Session token

Send the ID token of a person signed in to the console as Authorization: Bearer <id token>.

The token is verified against the configured issuer and audience. Its subject reaches the companies of the person’s workspace, or only the companies the person was given. A person with no membership is refused. A call may name one of those companies with Certinvo-Company: <company id>. A company the person does not reach returns 404 unknown_company, never 403. Without the header, the person’s oldest live company is used. The two schemes cannot be confused. A key starts with cvo_ and contains no dot. A JWT always contains two dots. Integrations should use API keys.

Errors

Every refusal has the same shape: an error object with a stable code and a message for people. API error codes lists every code with its meaning.

{ "error": { "code": "unknown_invoice", "message": "No such invoice. It may belong to another company, or never have existed." } }

All routes

Method Route Path
POST Validate one or more invoices /v1/validations
GET Get a validation operation /v1/validations/{id}
GET Stream validation outcomes /v1/validations/{id}/events
GET Get one validation report /v1/validations/{id}/items/{index}/report
GET Get the canonical model read from one validation item /v1/validations/{id}/items/{index}/canonical
GET Get KoSIT’s own report pages for one validation item /v1/validations/{id}/items/{index}/gate-reports
POST Convert one or more invoices /v1/conversions
GET Get a conversion operation /v1/conversions/{id}
GET Stream conversion outcomes /v1/conversions/{id}/events
GET Download all released conversion files /v1/conversions/{id}/download
GET Get the validation report for one conversion /v1/conversions/{id}/items/{index}/report
GET Get KoSIT’s own report pages for one conversion item /v1/conversions/{id}/items/{index}/gate-reports
GET Download one released conversion file /v1/conversions/{id}/items/{index}/download
GET List invoices /v1/invoices
GET Get an invoice /v1/invoices/{id}
POST Re-check an invoice /v1/invoices/{id}/validations
GET Download an invoice file /v1/invoices/{id}/download
GET Show an invoice as its printed pages /v1/invoices/{id}/pages
GET Preview an invoice file /v1/invoices/{id}/preview
GET See where each value came from /v1/invoices/{id}/trace
GET Download an invoice’s evidence /v1/invoices/{id}/evidence
GET List an invoice’s files in the GoBD archive /v1/invoices/{id}/archive
GET Read one file from the GoBD archive /v1/invoices/{id}/archive/{file}
POST Replace an invoice /v1/invoices/{id}/replacements
GET List invoice events /v1/invoices/{id}/events
POST Report what happened to an invoice /v1/invoices/{id}/events
POST Send an invoice by email /v1/invoices/{id}/emails
POST Forward an invoice to your own system /v1/invoices/{id}/forwards
GET Get an invoice review /v1/invoices/{id}/review
POST Keep or dismiss a likely duplicate /v1/invoices/{id}/duplicate
POST Release a held received invoice /v1/invoices/{id}/release
POST Dismiss a held received invoice /v1/invoices/{id}/dismiss
GET Get a correction’s class for DATEV /v1/invoices/{id}/correction
PUT Confirm a correction’s class for DATEV /v1/invoices/{id}/correction
POST Make a follow-up draft /v1/invoices/{id}/follow-ups
GET List an invoice’s reminders /v1/invoices/{id}/reminders
POST Send a reminder /v1/invoices/{id}/reminders
GET List mappings /v1/mappings
POST Save a mapping configuration /v1/mappings
POST Retire a mapping, or bring it back /v1/mappings/retirements
POST Merge one mapping into another /v1/mappings/merges
GET Get a mapping /v1/mappings/{version}
GET List target models /v1/mappings/models
POST Register a target model /v1/mappings/models
GET Read a target model /v1/mappings/models/{name}/{version}
GET List the mapping drafts not yet finalized /v1/mappings/drafts
POST Draft a mapping from sample files /v1/mappings/drafts
GET Read a kept mapping draft /v1/mappings/drafts/{id}
DELETE Delete a mapping draft not yet finalized /v1/mappings/drafts/{id}
POST Decide columns and fields of a kept draft /v1/mappings/drafts/{id}/decisions
POST Ask AI about the open columns of a kept draft /v1/mappings/drafts/{id}/ai
POST Add samples to a kept draft /v1/mappings/drafts/{id}/samples
DELETE Remove a sample from a kept draft /v1/mappings/drafts/{id}/samples/{sha256}
POST Test a kept draft on every sample /v1/mappings/drafts/{id}/test
POST Freeze a kept draft as a named person confirmed it /v1/mappings/drafts/{id}/finalize
POST Replay a draft on the newest version /v1/mappings/drafts/{id}/rebase
GET A kept PDF or image sample’s page, as an image /v1/mappings/drafts/{id}/samples/{index}/pages/{page}
POST What changed in a file an activated mapping no longer fits /v1/mappings/{version}/drift
GET Every field of the invoice model a column may go to /v1/mappings/fields
POST Turn a file into your own JSON /v1/mappings/transformations
POST Test a mapping on every sample /v1/mappings/tests
POST Choose the mapping for a layout /v1/mappings/layout-choices
GET Read your code book /v1/mappings/codes
GET Every list a code can be answered on /v1/mappings/codes/lists
PUT Answer one of your codes /v1/mappings/codes/{list}/{code}
DELETE Take back the answer to one of your codes /v1/mappings/codes/{list}/{code}
POST Preview a mapping /v1/mappings/previews
GET List the number series /v1/number-series
PUT Change a number series /v1/number-series/{kind}
POST Take the next number /v1/number-series/{kind}/allocations
GET Look up an invoice number /v1/invoice-numbers
POST Read a sheet into rows for serial invoices /v1/sheets
GET List drafts /v1/drafts
POST Save a new draft /v1/drafts
POST Open a file as a draft /v1/drafts/from-file
GET Get a draft /v1/drafts/{id}
PUT Replace a draft /v1/drafts/{id}
DELETE Delete a draft /v1/drafts/{id}
GET List the down payments of a contract /v1/down-payments
POST Make a final invoice draft /v1/final-invoices
GET List products /v1/products
POST Save a product /v1/products
GET Get a product /v1/products/{id}
PUT Replace a product /v1/products/{id}
DELETE Delete a product /v1/products/{id}
GET List payment methods /v1/payment-methods
POST Add a payment method /v1/payment-methods
PUT Replace a payment method /v1/payment-methods/{id}
DELETE Delete a payment method /v1/payment-methods/{id}
GET Get the invoicing profile /v1/invoicing-profile
PUT Save the invoicing profile /v1/invoicing-profile
POST Report one event for many invoices /v1/invoice-events
GET List recurring invoices /v1/recurring-invoices
POST Repeat an invoice /v1/recurring-invoices
PUT Change a recurring invoice /v1/recurring-invoices/{id}
DELETE Stop repeating an invoice /v1/recurring-invoices/{id}
POST Prepare the next invoice /v1/recurring-invoices/{id}/drafts
GET List DATEV exports /v1/datev-exports
POST Create a DATEV export /v1/datev-exports
GET Get a DATEV export /v1/datev-exports/{id}
GET Download a DATEV export /v1/datev-exports/{id}/download
GET Look up a Peppol participant /v1/peppol/participants/{participant}
GET List companies /v1/companies
POST Create a company /v1/companies
GET List API keys /v1/keys
POST Create an API key /v1/keys
POST Revoke an API key /v1/keys/{id}/revoke
GET Get the DATEV settings /v1/datev-settings
PUT Update the DATEV settings /v1/datev-settings
GET Get suggestion sharing /v1/suggestion-sharing
PUT Update suggestion sharing /v1/suggestion-sharing
GET Get the customers /v1/customers
PUT Update the customers /v1/customers
GET Get the validation policy /v1/validation-policy
PUT Update the validation policy /v1/validation-policy
GET List the settings notices not yet closed /v1/validation-policy/notices
POST Close a settings notice /v1/validation-policy/notices/{notice}/seen
GET Check service health /health
POST Receive an email event from the email provider /v1/email/events
POST Receive an event from the identity provider /v1/zitadel/events
GET Quality and delivery numbers /v1/insights/quality
GET Products numbers /v1/insights/products
POST Push an SAP IDoc as a SOAP message /v1/sap/idoc
GET List the companies you reach /v1/session/companies
POST Add a company to your workspace /v1/session/workspaces/{workspaceId}/companies
GET Download an invoice template /v1/templates/{file}
GET Show the workspace’s plan /v1/plan
GET List the invoices in the GoBD archive /v1/archive
GET Get the SFTP login /v1/sftp
PUT Set the SFTP keys /v1/sftp
GET List what arrived and was not accepted /v1/arrivals/not-accepted
GET List what needs attention /v1/attention
POST Allow a refused mail’s sender and file its kept files /v1/arrivals/not-accepted/{id}/allow
POST Dismiss a refused mail and delete its kept files /v1/arrivals/not-accepted/{id}/dismiss
GET Download a file that could not be read /v1/arrivals/not-accepted/{id}/file
GET List webhooks /v1/webhooks
POST Register a webhook /v1/webhooks
PATCH Change the steps a webhook hears /v1/webhooks/{id}
DELETE Stop a webhook /v1/webhooks/{id}
GET List a webhook’s deliveries /v1/webhooks/{id}/deliveries
POST Send a delivery again /v1/webhooks/{id}/deliveries/{deliveryId}/resend
POST Test a webhook /v1/webhooks/{id}/test
GET Download the customers as a file /v1/data-files/customers
GET Download a sample customers file /v1/data-files/customers/sample
POST Preview a customers file /v1/data-files/customers/previews
POST Import a customers file /v1/data-files/customers/imports
GET Download the products as a file /v1/data-files/products
GET Download a sample products file /v1/data-files/products/sample
POST Preview a products file /v1/data-files/products/previews
POST Import a products file /v1/data-files/products/imports
GET Download your code book as a file /v1/data-files/codes
GET Download a sample code book file /v1/data-files/codes/sample
POST Preview a code book file /v1/data-files/codes/previews
POST Import a code book file /v1/data-files/codes/imports
GET Download the invoice inbox’s approved senders as a file /v1/data-files/email-inbox-senders
GET Download a sample senders file /v1/data-files/email-inbox-senders/sample
POST Preview a senders file for the invoice inbox’s approved senders /v1/data-files/email-inbox-senders/previews
POST Import a senders file into the invoice inbox’s approved senders /v1/data-files/email-inbox-senders/imports
GET Download the send address’s approved senders as a file /v1/data-files/email-send-senders
GET Download a sample senders file /v1/data-files/email-send-senders/sample
POST Preview a senders file for the send address’s approved senders /v1/data-files/email-send-senders/previews
POST Import a senders file into the send address’s approved senders /v1/data-files/email-send-senders/imports
GET Download your paid invoices as a file /v1/data-files/payments
GET Download a sample payments file /v1/data-files/payments/sample
POST Preview a payments file /v1/data-files/payments/previews
POST Import a payments file /v1/data-files/payments/imports
GET Download the archive index as a file /v1/data-files/archive
GET Download a webhook’s deliveries as a file /v1/data-files/webhook-deliveries
GET Download the team as a file /v1/data-files/team
GET Download the recurring invoices as a file /v1/data-files/recurring-invoices
GET Download the company’s establishments as a file /v1/data-files/establishments
GET List every data file and its sample /v1/samples
GET Download a sample of a file Certinvo makes /v1/samples/{file}
GET Get the company’s invoice layout /v1/invoice-layout
PUT Save the company’s invoice layout /v1/invoice-layout
GET Get the invoice inbox /v1/email-inbox
PUT Save the senders the inbox admits /v1/email-inbox
GET Get the send address /v1/email-inbox/send
PUT Save the senders the send address admits /v1/email-inbox/send
GET Get the invoice email template /v1/email-template
PUT Save the invoice email template /v1/email-template
GET Get the sending setting /v1/sending
PUT Save the sending setting /v1/sending
GET Get the company’s seller details /v1/company/seller-details
PUT Save the company’s seller details /v1/company/seller-details
GET List the company’s establishments /v1/establishments
POST Add an establishment /v1/establishments
PUT Save a new version of an establishment /v1/establishments/{id}
POST Make a branch the Head office /v1/establishments/{id}/head-office
GET Get the company’s facts for the legal check /v1/company/facts
PUT Save the company’s facts for the legal check /v1/company/facts
GET Get the company’s consent to AI reading of its PDFs /v1/company/ai-reading
PUT Turn AI reading of the company’s PDFs on or off /v1/company/ai-reading
GET Get the group defaults /v1/group-defaults
PUT Update the group defaults /v1/group-defaults
GET Get the company’s VAT ID /v1/company/vat-id
PUT Save and check the company’s VAT ID /v1/company/vat-id
GET Get whether the workspace’s console is open /v1/access
PUT Save the workspace’s company /v1/workspace/profile
GET Show the beta request an approve link names /v1/beta/approvals/{token}
POST Approve the beta request an approve link names /v1/beta/approvals/{token}
GET Read whether the workspace is closed /v1/workspace/closure
POST Close the workspace /v1/workspace/closure
DELETE Reopen a closed workspace /v1/workspace/closure
GET Download every invoice of the workspace /v1/workspace/export
GET List the workspace’s people /v1/team
PUT Change one person’s role and access /v1/team/members/{userId}/access
POST Invite a person to the workspace /v1/team/invitations
DELETE Revoke a pending invitation /v1/team/invitations/{id}
POST Resend a pending invitation’s notice /v1/team/invitations/{id}/resend
GET List the invitations to you /v1/session/invitations
POST Accept an invitation /v1/session/invitations/{id}/accept
POST Decline an invitation /v1/session/invitations/{id}/decline
POST Report a problem, a question or an idea /v1/support/reports
GET Get whether the console’s setup is finished /v1/console-setup
PUT Finish the console’s setup /v1/console-setup
POST Make a signed-in person’s workspace on their first sign-in /v1/signup
GET Count the invoices behind the current policy /v1/rechecks
POST Check the invoices behind the current policy again /v1/rechecks
GET List what each country’s rules ask /v1/jurisdictions
GET List the rule sets /v1/rule-sets
POST Print a business document that is not an invoice as a PDF /v1/business-documents
POST Render one invoice as an HTML page or as its printed pages /v1/previews
POST Name the countries whose e-invoicing duty reaches a draft /v1/previews/duties
GET Check whether the service can do its work /ready
ServerProduction
https://api.certinvo.com

All API traffic is served over HTTPS with TLS 1.3. Sandbox keys (cvo_test_sk_...) use the same origin with isolated test data.

AuthenticationRequired
BearerAuth

Authenticate your API requests by sending your secret key in the Authorization header.

Saved locally in your browser. Automatically pre-fills all endpoint test clients.

QuickstartGET /health
curl https://api.certinvo.com/health
const response = await fetch("https://api.certinvo.com/health", {
  headers: {
    "Authorization": `Bearer ${process.env.CERTINVO_API_KEY}`,
  },
});
console.log(response.status, await response.json());
import os
import requests

response = requests.get(
    "https://api.certinvo.com/health",
    headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.json())
Responses are returned in canonical JSON format.
Navigation

Type to search…

↑↓ navigate↵ selectEsc close