Skip to content

API reference

Report what happened to an invoice

Invoices API

POST/v1/invoices/{id}/events

Adds one event to an invoice’s history, as your own system saw it after the invoice left Certinvo: api:sent, api:acknowledged (the buyer’s side received it), api:accepted, api:rejected or api:paid.

An event never changes the invoice’s verdict or which files may leave: only the check decides those. Who reported it is taken from your credential and recorded with the event. note is kept as your own text, in the event’s data.

Path parameters

  • idstring (uuid)Required

Request body

application/json, required

  • codestringRequired
    One of api:sent, api:acknowledged, api:accepted, api:rejected, api:paid.
  • notestring

Response

A 201 answer carries these fields.

  • idstringRequired

    Always increasing, as a string because it can outgrow a JavaScript number. Pass it as startingAfterId to get the next page.

  • statusCodestringRequired
    One of api:received, api:interpreted, api:written, api:validated, kosit:clean, kosit:acceptable-with-findings, kosit:rejected, api:downloaded, api:exported, api:emailed, api:email-delivered, api:email-bounced, api:email-delayed, api:email-complained, api:email-failed, api:email-suppressed, api:archived, api:archive-read, api:sent, api:acknowledged, api:accepted, api:rejected, api:paid.
  • actorTypestring or nullRequired

    Who caused the event, from the credential of the request that caused it. Null on events from before 2026-09-22, when nothing recorded it.

    One of user, key, demo, certinvo, null.
  • actorIdstring or nullRequired

    The person's id for user, the API key's public prefix for key; null otherwise.

  • statusTextstring or nullRequired

    Quoted from the validator or from our reviewed message catalog. It is never generated.

  • dataobject or null
  • createdAtstring (date-time)Required

Status codes

Status Meaning
201 The event, as it was added to the history.
400 The body is not JSON (invalid_json), names a field other than code and note or a note longer than 500 characters (invalid_event), or reports a code outside the list above (unknown_event_code). Nothing was added.
401 No usable credential was sent (invalid_credentials).
404 No such invoice exists for this company (unknown_invoice).
POST/v1/invoices/{id}/events
Example
curl -X POST https://api.certinvo.com/v1/invoices/$INVOICE_ID/events \
  -H "Authorization: Bearer $CERTINVO_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @body.json
import { readFile } from 'node:fs/promises'

const invoiceId = '3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a'

const response = await fetch(`https://api.certinvo.com/v1/invoices/${invoiceId}/events`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: await readFile('body.json'),
})
console.log(response.status, await response.json())
import os

import requests

invoice_id = "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a"

response = requests.post(
    f"https://api.certinvo.com/v1/invoices/{invoice_id}/events",
    headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}", "Content-Type": "application/json"},
    data=open("body.json", "rb"),
)
print(response.status_code, response.text)
201
application/json
{
  "id": "string",
  "statusCode": "api:received",
  "actorType": "user",
  "actorId": "string",
  "statusText": "string",
  "data": {},
  "createdAt": "2026-09-17T09:30:00Z"
}
Success response
POST
/v1/invoices/{id}/events
Report what happened to an invoice
All
›AuthenticationRequiredBearerAuth

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

›Variables1
›Headers2
›Bodyapplication/json
›Code Snippet
curl -X POST "https://api.certinvo.com/v1/invoices/{id}/events" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "code": "api:sent",
  "note": "string"
}...'
Response

No request sent yet

Configure parameters and click Send to view the response.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close