Skip to content

API reference

Get an invoice review

Invoices API

GET/v1/invoices/{id}/review

Returns the newest review of one received invoice. Reviews are part of the review add-on.

For a company with the add-on, each stored received PDF is reviewed after its verdict is filed. The review compares the visible PDF page with the XML inside the PDF and notes where they differ.

A review is advice only. It never changes the verdict, the report or an operation outcome. Only invoices filed after the add-on was switched on are reviewed.

state is one of:

  • queued: the review is still running.
  • done: notes, compared and notCompared are set, in the shape shown below.
  • failed: errorCode is set (queue_unavailable, cipher_unavailable, cipher_answer_invalid, review_failed).

Path parameters

  • idstring (uuid)Required

Response

A 200 answer carries these fields.

  • documentIdstring (uuid)Required
  • statestringRequired
    One of queued, done, failed.
  • requestedAtstring (date-time)Required
  • finishedAtstring (date-time) or nullRequired
  • errorCodestring or nullRequired
    One of queue_unavailable, cipher_unavailable, cipher_answer_invalid, review_failed, null.
  • notesarray of objectRequired

    One note for each field where the PDF page and the embedded XML disagree. Empty when nothing that was compared disagreed.

    Show 4 child fields
    • codestringRequired

      The kind of note. PAGE_AND_XML_DIFFER: the value in the embedded XML does not appear on the PDF page.

      One of PAGE_AND_XML_DIFFER.
    • btstringRequired
    • shownstringRequired

      What the page shows next to this field's label. null when no label was found.

    • carriedstringRequired

      The value the embedded XML carries for this field.

  • comparedarray of stringRequired

    The business terms (BT ids) that were compared. An empty list means nothing was compared, which is not the same as nothing disagreeing.

  • notComparedarray of stringRequired

    One sentence for each thing that could not be compared, with the reason. For example: the PDF has no embedded invoice, the PDF has no text layer, or the XML does not carry the field.

Status codes

Status Meaning
200 The newest review of this invoice.
401 No usable credential was sent (invalid_credentials).
404 No such invoice exists for this company (unknown_invoice), or the invoice was never reviewed (no_review).
GET/v1/invoices/{id}/review
Example
curl https://api.certinvo.com/v1/invoices/$INVOICE_ID/review \
  -H "Authorization: Bearer $CERTINVO_API_KEY"
const invoiceId = '3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a'

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

import requests

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

response = requests.get(
    f"https://api.certinvo.com/v1/invoices/{invoice_id}/review",
    headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)
200
application/json
{
  "documentId": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a",
  "state": "queued",
  "requestedAt": "2026-09-17T09:30:00Z",
  "finishedAt": "2026-09-17T09:30:00Z",
  "errorCode": "queue_unavailable",
  "notes": [
    {
      "code": "PAGE_AND_XML_DIFFER",
      "bt": "string",
      "shown": "string",
      "carried": "string"
    }
  ],
  "compared": [
    "string"
  ],
  "notCompared": [
    "string"
  ]
}
Success response
GET
/v1/invoices/{id}/review
Get an invoice review
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/invoices/{id}/review" \
  -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