Skip to content

API reference

Dismiss a held received invoice

Invoices API

POST/v1/invoices/{id}/dismiss

Dismisses a received invoice your settings held. It stays readable and stays out of DATEV exports and the forward to your own system for good, and it leaves the list of what needs a person. The reason is kept with who dismissed it and when. 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.

  • dismissedbooleanRequired
    One of true.

Status codes

Status Meaning
200 Dismissed.
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}/dismiss
Example
curl -X POST https://api.certinvo.com/v1/invoices/$INVOICE_ID/dismiss \
  -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}/dismiss`, {
  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}/dismiss",
    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
{
  "dismissed": true
}
Success response
POST
/v1/invoices/{id}/dismiss
Dismiss 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}/dismiss" \
  -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