/v1/rechecksSays 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). |
/v1/recheckscurl 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){
"policyVersion": 0,
"outdated": 0
}