ErrorsBy category

Invoices errors

All error codes returned by the Invoices endpoints (86 total).


Every error returned by the Invoices endpoints. Click any code for the full example response and localized messages.

CodeMessage
BULK_PDF_ERRORError processing bulk PDF download
CANCELLATION_VIA_SPECIFIC_ENDPOINTTo cancel an invoice use the specific cancellation endpoint
CANNOT_DUPLICATE_DELETED_INVOICECannot duplicate a deleted invoice
CLIENT_NOT_FOUNDCustomer not found: {0}
DELETION_FAILEDError deleting the invoice
DUE_DATE_BEFORE_ISSUE_DATEDue date cannot be before the issue date
EXEMPT_ZERO_RATE_REQUIRES_REASONLines with 0% tax rate must declare an exemption reason. Use one of: EXENTA_ART_20..26, NO_SUJETA_ART_7_9, NO_SUJETA_LOCALIZACION, ISP_ART_84_2_*, OTRO
EXEMPTION_REGIME_NOT_SUPPORTED_IN_VERIFACTUThe given exemption reason corresponds to a special regime (REAEA, equivalence surcharge, cash basis, investment gold…), not to an art. 20-26 LIVA exemption. VeriFactu models it with clave_regimen, not operacion_exenta. Switch to the appropriate clave_regimen.
EXEMPTION_REQUIRES_RECIPIENT_ID_TYPEExemption {0} requires the recipient to carry an alternative identifier of type {1}
INVALID_IRPFInvalid income tax withholding type: ''{0}''. Allowed values: {1}
INVALID_IVA_SURCHARGE_PAIRSurcharge {0}% is not valid for VAT {1}%. Allowed pairs: 21↔5.2, 10↔1.4, 4↔0.5
INVALID_LINEThe invoice line is not valid: {0}
INVALID_PERCENTAGEThe percentage {0} is not valid. It must be between 0 and 100
INVALID_SURCHARGEInvalid equivalence surcharge type: ''{0}''. Allowed values: {1}
INVALID_TAXThe tax type ''{0}'' is not valid
INVALID_VATInvalid VAT type: ''{0}''. Allowed values: {1}
INVOICE_NO_LINESThe invoice must have at least one line
INVOICE_NOT_FOUNDInvoice not found
ISP_INCOMPATIBLE_WITH_SURCHARGEReverse-charge (ISP) lines cannot carry equivalence surcharge: the buyer auto-liquidates VAT in their country and Spanish retail surcharge does not apply
ISSUE_DATE_IN_FUTUREIssue date cannot be in the future. To issue an invoice on a future date, use POST /v1/invoices/{id}/schedule
ISSUE_DATE_REQUIREDIssue date is required
LINE_EXEMPTION_TEXT_REQUIREDA descriptive text is required when the exemption reason is OTHER
LINE_EXEMPTION_WITH_TAXLine has an exemption reason but the tax rate is not 0%. Current value: {0}%
LINE_INVALID_DISCOUNTThe discount must be between 0 and 100. Received value: {0}
LINE_INVALID_QUANTITYThe quantity cannot be zero or null
LINE_NEGATIVE_PRICEThe unit price cannot be negative
LINE_TOTAL_INCONSISTENTLine totals do not reconcile: expected {0}€ (base + VAT + surcharge - IRPF), declared {1}€. Difference exceeds 0.01€
LINE_ZERO_PRICEThe unit price cannot be zero
MARK_SENT_ALREADY_SENTThe invoice is already in SENT status.
MARK_SENT_FROM_DRAFT_NOT_ALLOWEDCannot mark an invoice in DRAFT status as SENT. Issue it first.
MARK_SENT_FROM_INVALID_STATECannot mark as SENT from status {0}.
MARK_SENT_FROM_LATER_STATECannot mark an invoice in {0} status as SENT. The invoice is already in a later state.
METADATA_FILTER_TOO_MANY_KEYSThe metadata filter supports at most {0} key/value pairs per request
NEGATIVE_TOTAL_REQUIRES_RECTIFICATIVEThe invoice total cannot be negative. Use corrective invoices (R1-R5) for refunds.
NO_INVOICES_PROVIDEDNo invoices provided
NO_PDFS_AVAILABLENo PDFs available for download
ONLY_DRAFT_EMITTABLEOnly draft invoices can be issued. Current status: {0}
OPERATION_DATE_AFTER_ISSUE_DATEOperation date cannot be after the issue date
OSS_REGIME_INCOMPATIBLE_WITH_ISPOSS/IOSS regime (key 17) is incompatible with reverse charge. The destination-country VAT is declared separately (Modelo 369), not as S2
PAYMENT_DATE_REQUIREDPayment date is required to mark the invoice as paid
PDF_HASH_ERRORError calculating PDF hash
PDF_NOT_GENERATEDThe invoice PDF has not been generated yet
PDF_URL_EMPTYThe PDF URL is empty
PREVIEW_DRAFT_ONLYPDF preview is only available for draft invoices
PREVIEW_GENERATION_ERRORError generating PDF preview
RECIPIENT_ADDRESS_REQUIREDRecipient address is required for standard invoices
RECIPIENT_FISCAL_NAME_REQUIREDRecipient legal name is required for standard invoices
RECIPIENT_ID_REQUIREDRecipient must have a NIF or alternative identifier
RECIPIENT_NIF_AND_ID_OTHER_EXCLUSIVEThe recipient cannot carry both a Spanish NIF and an alternative identifier. Use only one
RECIPIENT_REQUIRED_FOR_ORDINARYOrdinary invoices require a valid recipient
RECTIFICATION_REASON_TOO_SHORTThe rectification reason must be at least {0} characters
RECTIFICATIVA_PARCIAL_SIN_LINEASPartial rectificative invoices must include correction lines. Use negative quantities/amounts to subtract, positive to add.
RECTIFICATIVA_TOTAL_CON_LINEASTotal rectificative invoices must not include lines. Lines are automatically copied from the original invoice with negative amounts.
RECURRING_END_DATE_BEFORE_STARTThe end date must be after the first scheduled generation ({0})
RECURRING_INVALID_DAY_OF_MONTHThe day of the month must be between 1 and 31
RECURRING_INVOICE_DELETEDCannot create recurrence from a deleted invoice
RECURRING_NO_LINESAt least one line must be included
RECURRING_NOT_FOUNDRecurring invoice not found
RECURRING_START_DATE_NOT_EDITABLECannot modify the start date because invoices have already been generated
RECURRING_TYPE_NOT_SUPPORTEDCannot create a recurrence from a rectificative invoice
REGIME_REQUIRES_INCOMPATIBLE_EXEMPTIONRegime {0} requires exemption reason {1}; the line does not carry it
REGIME_REQUIRES_SURCHARGERegime {0} requires recargo de equivalencia and the line does not carry it
REVERT_ONLY_FROM_SENTCan only revert from SENT status. Current status: {0}
SCHEDULED_DATE_IN_PASTThe scheduling date cannot be in the past
SCHEDULED_DATE_REQUIREDThe scheduling date is required
SERIES_DOCUMENT_TYPE_INCOMPATIBLESeries ''{0}'' (type {1}) is not compatible with invoices of type {2}
SERIES_FORMAT_EMPTYThe format cannot be empty
SERIES_FORMAT_INVALID_PADDINGInvalid padding for {NUM}: {0}
SERIES_FORMAT_LOWERCASE_VARSLowercase variables detected: {0}. Variables must be UPPERCASE (e.g., {CODIGO}, {YYYY}, {MM}, {NUM})
SERIES_FORMAT_NUM_REQUIREDVariable {NUM} is required in the format. Sequential numbering is required by law
SERIES_FORMAT_UNRECOGNIZED_VARSUnrecognized variables: {0}. Valid variables: {CODIGO}, {YYYY}, {YY}, {MM}, {NUM}, {NUM:X}
SERIES_INACTIVEThe invoice series ''{0}'' is inactive
SERIES_NOT_FOUNDInvoice series ''{0}'' not found
SIMPLIFICADA_FORBIDS_CROSS_BORDERSimplified invoices cannot cover intra-EU or OSS operations: identify the recipient and issue an ordinary invoice
SIMPLIFICADA_FORBIDS_IRPFSimplified invoices cannot carry IRPF withholding (AEAT: retention must not be reported)
SIMPLIFICADA_FORBIDS_ISPSimplified invoices cannot carry reverse-charge: the anonymous recipient cannot auto-liquidate
STATUS_NOT_DELETABLECannot delete an invoice in status {0}
STATUS_NOT_IMPLEMENTEDStatus ''{0}'' is not implemented
STATUS_NOT_MODIFIABLEThe invoice status cannot be modified
SURCHARGE_REQUIRES_REGIMERecargo de equivalencia is only compatible with regime 18; the line is on regime {0}
TEMPLATE_MISSING_REQUIRED_VARIABLETemplate requires variable: {0}
TEMPLATE_UNKNOWN_VARIABLETemplate contains unknown variable: {0}
TRANSITION_NOT_SUPPORTEDTransition to status {0} is not supported
TYPE_CHANGE_CORRECTIVE_FORBIDDENCannot change type to/from CORRECTIVE
TYPE_REQUIREDInvoice type is required
ZIP_GENERATION_ERRORError generating ZIP file

Keep exploring

On this page