Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Issue date of the invoice to cancel (DD-MM-YYYY). Cannot be future date.
"07-12-2025"
Invoice number. Required. The concatenation of series + number cannot exceed 60 characters.
"2025/00123"
N = First cancellation attempt (or invoice was accepted) S = Previous cancellation was rejected by AEAT (retry)
N, S Invoice series. Can be empty string (""). Must not begin with a space. The concatenation of series + number cannot exceed 60 characters.
""
N = Invoice IS registered in AEAT (most common case) S = Invoice was NEVER registered in AEAT (e.g. cancel before sending, or error in emission)
N, S Indica quién genera el registro de anulación: E=Expedidor, D=Destinatario, T=Tercero
E, D, T Datos del generador (obligatorio si generated_by está informado)
Set to "S" only if an incident occurred during cancellation
"S"
Invoice successfully canceled
Correlation ID for tracking this cancellation request across distributed systems
"550e8400-e29b-41d4-a716-446655440000"
Cancellation data returned after successful submission to AEAT
Indicates whether the cancellation submission was successful
true
Present only when VeriFactu accepts the cancellation with correctable errors (EstadoRegistro = 'AceptadaConErrores'). These are admissible errors in the RegistroAnulacion that don't prevent cancellation registration.
{
"codigo": "2007",
"mensaje": "No debería informarse como primer registro; existen facturas emitidas con el obligado emisor y el sistema informático actual. Should not be reported as first record - previous invoices exist.",
"severity": "warning",
"type": "verifactu_accepted_with_errors"
}