POST
/v1/rechecksQueues one re-check for each invoice GET /v1/rechecks counts. Each is the re-check POST /v1/invoices/{id}/validations makes, under the current policy, and adds a new check: the earlier one stays stored with its policy version. The answer comes at once. The checks run in the background, one at a time, and each invoice shows its new result when its check is done. Asking again while they run queues each invoice once. An invoice that cannot be read again is skipped and stays behind.
Response
A 202 answer carries these fields.
- policyVersioninteger or nullRequired
The policy version the invoices will be checked under. Null when the company has none of its own.
- queuedintegerRequired
How many invoices were queued.
Status codes
| Status | Meaning |
|---|---|
202 |
The re-checks are queued. |
401 |
No usable credential was sent (invalid_credentials). |
POST
/v1/rechecksExample
curl -X POST https://api.certinvo.com/v1/rechecks \
-H "Authorization: Bearer $CERTINVO_API_KEY"const response = await fetch(`https://api.certinvo.com/v1/rechecks`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
},
})
console.log(response.status, await response.json())import os
import requests
response = requests.post(
"https://api.certinvo.com/v1/rechecks",
headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)202
application/json
{
"policyVersion": 0,
"queued": 0
}Success response