curl --request DELETE \
--url https://api.example.com/api/invoices/{id}{
"message": "<string>"
}Delete an invoice by its ID
curl --request DELETE \
--url https://api.example.com/api/invoices/{id}{
"message": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://mintlify.com/pakomercado0517/tresa-contafy-web/llms.txt
Use this file to discover all available pages before exploring further.
Authorization: Bearer YOUR_ACCESS_TOKEN
curl -X DELETE "https://api.contafy.com/api/invoices/inv_abc123" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
const response = await fetch('https://api.contafy.com/api/invoices/inv_abc123', {
method: 'DELETE',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN'
}
});
const data = await response.json();
{
"message": "Invoice deleted successfully"
}
{
"error": "Unauthorized",
"message": "Invalid or missing access token"
}
{
"error": "Not Found",
"message": "Invoice not found"
}
{
"error": "Forbidden",
"message": "You do not have permission to delete this invoice"
}
{
"error": "Conflict",
"message": "Cannot delete invoice with associated payment complements"
}
{
"error": "Internal Server Error",
"message": "An unexpected error occurred"
}