NewTell a voided invoice from a totally rectified one, without a second call
BeeL
Get StartedMulti-NIFVeriFactuStripeAPI ReferenceChangelog
ErrorsAll codes

COMPANY_HAS_INVOICES

This company has invoices in Live and cannot be deleted. Delete its drafts and proformas first; if it has already issued invoices, the way out is to deactivate it in Live, not to delete it


Category: Companies

Example response

When this error occurs, the API returns a JSON response with the following shape:

{
  "type": "https://docs.beel.es/errors/COMPANY_HAS_INVOICES",
  "title": "COMPANY_HAS_INVOICES",
  "detail": "This company has invoices in Live and cannot be deleted. Delete its drafts and proformas first; if it has already issued invoices, the way out is to deactivate it in Live, not to delete it",
  "instance": "/v1/<resource>",
  "errors": [],
  "success": false,
  "error": {
    "code": "COMPANY_HAS_INVOICES",
    "message": "This company has invoices in Live and cannot be deleted. Delete its drafts and proformas first; if it has already issued invoices, the way out is to deactivate it in Live, not to delete it",
    "details": {}
  },
  "meta": {
    "timestamp": "2026-05-21T10:00:00Z",
    "request_id": "4bf92f3577b34da6a3ce929d0e0e4736"
  }
}

The type URI is stable and always resolves to this page.

Message

This company has invoices in Live and cannot be deleted. Delete its drafts and proformas first; if it has already issued invoices, the way out is to deactivate it in Live, not to delete it
Esta empresa tiene facturas en Live y no se puede borrar. Borra antes sus borradores y proformas; si ya ha emitido, el camino es dar de baja su activación en Live, no borrarla
Aquesta empresa té factures a Live i no es pot esborrar. Esborra abans els seus esborranys i proformes; si ja ha emès, el camí és donar de baixa la seva activació a Live, no esborrar-la

Send the request with Accept-Language: <es|en|ca> to receive the message in your preferred language.

Other errors in this category

Keep exploring