Skip to main content
DELETE
/
api
/
v1
/
invoices
/
reference
/
{reference_code}
curl -X DELETE https://api.yourapp.com/api/v1/invoices/reference/INV-2024-001 \
  -H "Authorization: Bearer <local_jwt>" \
  -H "X-Factus-Token: <factus_access_token>"
{
  "message": "Factura eliminada exitosamente",
  "data": {
    "status": "success",
    "message": "Invoice deleted successfully"
  }
}

Headers

Authorization
string
required
Bearer token for authentication: Bearer <local_jwt>
X-Factus-Token
string
required
Factus access token obtained from authentication

Path Parameters

reference_code
string
required
The reference code of the invoice to delete

Response

message
string
Success message
data
object
Delete response
curl -X DELETE https://api.yourapp.com/api/v1/invoices/reference/INV-2024-001 \
  -H "Authorization: Bearer <local_jwt>" \
  -H "X-Factus-Token: <factus_access_token>"
{
  "message": "Factura eliminada exitosamente",
  "data": {
    "status": "success",
    "message": "Invoice deleted successfully"
  }
}

Important Notes

  • This endpoint uses the reference_code (not the invoice number) to delete an invoice
  • The reference_code is the unique identifier you provided when creating the invoice
  • Deleting an invoice is irreversible - make sure you want to proceed before calling this endpoint
  • Some invoices may not be deletable depending on their status or if they have been submitted to tax authorities
  • Always verify the reference_code before deletion to avoid removing the wrong invoice

Build docs developers (and LLMs) love