Skip to content

API reference

Check the invoices behind the current policy again

Other routes API

POST/v1/rechecks

Queues 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/rechecks
Example
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
POST
/v1/rechecks
Check the invoices behind the current policy again
All
›AuthenticationRequiredBearerAuth

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

›Headers2
›Body
›Code Snippet
curl -X POST "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