Skip to content

API reference

Count the invoices behind the current policy

Other routes API

GET/v1/rechecks

Says how many invoices are behind the current validation policy. An invoice is behind when its newest check ran under an older policy version, or under none, and none of its files has left Certinvo. A file has left when the invoice’s history holds anything beyond receiving, reading, writing and checking it: an email, a download, a webhook, an SFTP delivery, a DATEV export, the archive, or a status your system reported. Such an invoice keeps the check it left with. Only the newest version of an edited invoice counts. A company with no policy of its own is graded by the default, so nothing is behind it.

Response

A 200 answer carries these fields.

  • policyVersioninteger or nullRequired

    The current policy version. Null when the company has no policy of its own.

  • outdatedintegerRequired

    How many invoices are behind it.

Status codes

Status Meaning
200 The current policy version and how many invoices are behind it.
401 No usable credential was sent (invalid_credentials).
GET/v1/rechecks
Example
curl https://api.certinvo.com/v1/rechecks \
  -H "Authorization: Bearer $CERTINVO_API_KEY"
const response = await fetch(`https://api.certinvo.com/v1/rechecks`, {
  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/v1/rechecks",
    headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)
200
application/json
{
  "policyVersion": 0,
  "outdated": 0
}
Success response
GET
/v1/rechecks
Count the invoices behind the current policy
All
›AuthenticationRequiredBearerAuth

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

›Headers2
›Code Snippet
curl -X GET "https://api.certinvo.com/v1/rechecks" \
  -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