Skip to content

API reference

Get a conversion operation

Conversions API

GET/v1/conversions/{id}

Path parameters

  • idstring (uuid)Required

Response

A 200 answer carries these fields.

  • idstring (uuid)Required
  • kindstringRequired
    One of validation, conversion.
  • contextstringRequired
    One of received, issued.
  • statusstringRequired
    One of processing, completed.
  • itemCountintegerRequired
  • pendingintegerRequired
  • policyVersioninteger or nullRequired

    The immutable company policy version frozen at acceptance. Null only when the default policy applied; the default then stays frozen even if the company saves a policy while items wait.

  • mappingVersionstring

    For a mapped-file conversion only, the frozen mapping that read the file, whether the request named it or the API picked the one that reads the file.

  • notesarray of object

    On the answer that accepts a mapped-file conversion only, and only when there is something to say. new_fields: the file has fields its mapping has never seen, converted without them. missing_fields: the file lacks fields its mapping reads. optional_fields_absent: the file lacks fields its mapping lets a file lack. In each, fields names each place: a JSON Pointer into the file's record with row numbers left out, as a mapping's column names it, such as /Kostenstelle. These are Certinvo's checks, not the validator's: the validator decides each invoice. Save the mapping's next version from the file (POST /v1/mappings/drafts with from) to decide each field once. Not kept with the operation: a later read of it does not carry it.

    Show 3 child fields
    • kindstringRequired
      One of new_fields, missing_fields, optional_fields_absent.
    • mappingVersionstringRequired
    • fieldsarray of stringRequired
  • retentionobjectRequired
    Show 2 child fields
    • kindstringRequired
      One of temporary, durable.
    • expiresAtstring (date-time) or nullRequired

      Required for temporary results and null for durable results.

  • itemsarray of objectRequired
    Show 6 child fields
    • indexintegerRequired
    • statusstringRequired
      One of pending, done, failed.
    • invoiceIdstring (uuid)
    • verdictstring
      One of clean, acceptable-with-findings, rejected.
    • filesarray of object

      The generated renderings of this conversion item that a download hands out. A file the release guard withholds, such as one of a rejected invoice, is not listed. Absent on validation items and when no file may leave.

      Show 3 child fields
      • formatstringRequired
      • mediaTypestringRequired
      • bytesintegerRequired
    • errorobject
      Show 3 child fields
      • codestringRequired
        One of unreadable_document, invalid_invoice, engine_unavailable, virus_found, invoice_number_used.
      • messagestringRequired
      • detailstring

        For invalid_invoice only, the writer's sentence naming each missing or wrong field by its JSON Pointer, such as "the invoice has no /seller/legalName." It holds no value from the invoice.

Status codes

Status Meaning
200 The operation and every item in input order.
404
GET/v1/conversions/{id}
Example
curl https://api.certinvo.com/v1/conversions/$CONVERSION_ID \
  -H "Authorization: Bearer $CERTINVO_API_KEY"
const conversionId = '3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a'

const response = await fetch(`https://api.certinvo.com/v1/conversions/${conversionId}`, {
  headers: {
    Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
  },
})
console.log(response.status, await response.json())
import os

import requests

conversion_id = "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a"

response = requests.get(
    f"https://api.certinvo.com/v1/conversions/{conversion_id}",
    headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)
200
application/json
{
  "id": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a",
  "kind": "validation",
  "context": "received",
  "status": "processing",
  "itemCount": 0,
  "pending": 0,
  "policyVersion": 0,
  "mappingVersion": "string",
  "notes": [
    {
      "kind": "new_fields",
      "mappingVersion": "string",
      "fields": [
        "string"
      ]
    }
  ],
  "retention": {
    "kind": "temporary",
    "expiresAt": "2026-09-17T09:30:00Z"
  },
  "items": [
    {
      "index": 0,
      "status": "pending",
      "invoiceId": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a",
      "verdict": "clean",
      "files": [
        {
          "format": "string",
          "mediaType": "string",
          "bytes": 0
        }
      ],
      "error": {
        "code": "unreadable_document",
        "message": "string",
        "detail": "string"
      }
    }
  ]
}
Success response
GET
/v1/conversions/{id}
Get a conversion operation
All
›AuthenticationRequiredBearerAuth

Provide your API key in the Authorization: Bearer <key> header. Keys are stored locally in your browser.

›Variables1
›Headers2
›Code Snippet
curl -X GET "https://api.certinvo.com/v1/conversions/{id}" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response

No request sent yet

Configure parameters and click Send to view the response.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close