Skip to content

API reference

Release a held received invoice

Invoices API

POST/v1/invoices/{id}/release

Releases a received invoice your settings held: because the gate rejected it, or for its bank account. The reason is kept with who released it and when. The verdict stays the gate’s; the invoice may now go into a DATEV export and to your own system. A hold is decided once: released or dismissed. Only a signed-in person may call this; an API key is refused with 401 session_required.

Path parameters

  • idstring (uuid)Required

Request body

application/json, required

  • reasonstringRequired

Response

A 200 answer carries these fields.

  • releasedbooleanRequired
    One of true.

Status codes

Status Meaning
200 Released.
400 No reason was given (invalid_release).
401 No usable credential was sent (invalid_credentials), or an API key was used (session_required).
404 No held invoice has this id (not_found).
409 A person already released or dismissed it (already_released).
POST/v1/invoices/{id}/release
Example
curl -X POST https://api.certinvo.com/v1/invoices/$INVOICE_ID/release \
  -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}/release`, {
  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}/release",
    headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}", "Content-Type": "application/json"},
    data=open("body.json", "rb"),
)
print(response.status_code, response.text)
200
application/json
{
  "released": true
}
Success response
POST
/v1/invoices/{id}/release
Release a held received 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}/release" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "reason": "string"
}...'
Response

No request sent yet

Configure parameters and click Send to view the response.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close