DELETE /api/invoices/:id
Deletes a specific invoice from the database. This operation is permanent and cannot be undone.Authentication
Requires Bearer token authentication. The token must be included in theAuthorization header.
Path Parameters
UUID of the invoice to delete
Response
Success message: “Factura eliminada exitosamente”
Error Codes
Unauthorized - User not authenticated
Not Found - Invoice not found or doesn’t belong to authenticated user
Internal Server Error - Error deleting invoice
Example Request
Example Response (Success)
Example Response (Not Found)
Example Response (Internal Error)
Notes
- The endpoint verifies that the invoice belongs to one of the authenticated user’s profiles before deletion
- Deletion is permanent and cannot be undone
- Related payment complements and payment history may be affected by this operation
- Consider the impact on financial reports and metrics before deleting invoices