Saltar a contenido

Delete a CFDI draft

Permanently delete a draft; it returns {deleted: true, invoice_id}. Only drafts can be deleted: a signed or canceled CFDI answers invalid_state, and cancel_cfdi cancels a signed one. A draft with an open receiver request is refused until revoke_receiver_request closes it.

Alcance (scope): invoices:write · Características: Destructiva, Idempotente

Parámetros

Parámetro Tipo Obligatorio Descripción
invoice_id string Sí
issuer string Sí Id of the issuer the call acts for, from list_issuers.

Esquema de entrada (JSON Schema)

{
  "type": "object",
  "properties": {
    "invoice_id": {
      "type": "string"
    },
    "issuer": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the issuer the call acts for, from list_issuers."
    }
  },
  "required": [
    "invoice_id",
    "issuer"
  ]
}