POST
/v1/invoices/{id}/dismissDismisses 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.
- dismissedbooleanRequiredOne 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}/dismissExample
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.jsonimport { 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