Skip to content

API reference

Download an invoice's evidence

Invoices API

GET/v1/invoices/{id}/evidence

Returns one ZIP with everything kept about the invoice, for an auditor:

  • manifest.json: the invoice, its verdict, the rule set, engine and mapping that decided it, what the check graded (with model, the sha256 of the invoice data its files were made from), the customer’s file it was made from, and every file in the ZIP with its media type, size and sha256.
  • files/: every stored file of the invoice, and the customer’s own file when it was made from one.
  • history.json: the invoice’s whole history, oldest first.

A file the download holds back is not in the ZIP. The manifest names it under withheld with the code and the reason the download would give. The manifest carries no time of its own, so the same files give the same list. Downloading the ZIP is recorded in the history when it holds an invoice file.

Path parameters

  • idstring (uuid)Required

Status codes

Status Meaning
200 The evidence, as a ZIP.
401 No usable credential was sent (invalid_credentials).
404 This company filed no invoice with this id (unknown_invoice).
GET/v1/invoices/{id}/evidence
Example
curl https://api.certinvo.com/v1/invoices/$INVOICE_ID/evidence \
  -H "Authorization: Bearer $CERTINVO_API_KEY"
const invoiceId = '3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a'

const response = await fetch(`https://api.certinvo.com/v1/invoices/${invoiceId}/evidence`, {
  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}/evidence",
    headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)
200
application/zip
The body is the file itself (application/zip).
Success response
GET
/v1/invoices/{id}/evidence
Download an invoice's evidence
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}/evidence" \
  -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