NewThree filters returned the wrong rows
BeeL
Get StartedMulti-NIFVeriFactuStripeAPI ReferenceChangelog
ErrorsBy category

Invoices errors

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


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

CodeMessage
ATTACH_SOURCE_INVOICE_UNAVAILABLEA source invoice is not available (it does not exist or you no longer have access); uncheck the source invoices attachment to send without the folder
ATTACH_SOURCE_INVOICES_NO_SOURCESThe invoice has no consolidation disbursements: there are no source invoices to attach
ATTACH_SOURCE_INVOICES_REQUIRES_PDFAttaching the source invoices also requires attaching the invoice PDF
ATTACH_SOURCE_PDF_MISSINGThese source invoices have no generated PDF: {0}
ATTACH_SOURCE_ZIP_TOO_LARGEThe source invoices ZIP ({0} MB) exceeds the maximum sendable size ({1} MB)
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
COMPANY_NOT_ACTIVATEDThe company is not activated in this environment: it cannot issue fiscal documents
CONVERSION_REQUIRES_PROFORMAOnly a proforma invoice can be converted into an invoice; this document is not a proforma
CORRECTIVE_INVOICE_INCOMPLETEA corrective invoice must declare its rectification type and VeriFactu code (R1-R5). Create the corrective invoice from the original invoice.
CORRECTIVE_NOT_RECTIFIABLEA corrective invoice cannot be rectified. To fix an erroneous corrective, issue another corrective against the original invoice.
DELETION_FAILEDError deleting the invoice
DUE_DATE_BEFORE_ISSUE_DATEDue date cannot be before the issue date
EMISSION_NOT_READYThe company is not ready to issue invoices in this environment
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_PERCENTAGETax percentage {0}% is not valid for {1}. Valid rates: {2}
INVALID_REGIME_KEY_FOR_TAX_TYPERegime key {0} is not valid for {1}. Valid regime keys: {2}
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_ALREADY_VOIDEDThis invoice is already voided; voiding cannot be repeated
INVOICE_CLIENT_NOT_FOUNDCustomer not found: {0}
INVOICE_DUPLICATE_EXTERNAL_REFERENCEAn invoice with this external reference already exists
INVOICE_NO_LINESThe invoice must have at least one line
INVOICE_NOT_CORRECTIBLE_IN_CURRENT_STATUSThis invoice cannot be corrected in its current status. Only an issued, non-voided invoice can be corrected.
INVOICE_NOT_FOUNDInvoice not found
INVOICE_NOT_SCHEDULEDThe invoice is not scheduled
INVOICE_REQUIRES_AT_LEAST_ONE_NORMAL_LINEThe invoice must contain at least one NORMAL line (disbursements cannot be invoiced alone)
INVOICE_SERIES_NOT_FOUNDInvoice series ''{0}'' not found
INVOICE_STATUS_NOT_SCHEDULABLEThe current invoice status does not allow scheduling
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_DECLARED_TOTAL_FORBIDS_DISCOUNTA declared total is incompatible with an explicit discount: any discount is already included in the total
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_MAIN_TAX_REQUIREDEach line must specify its main tax (main_tax). No default tax is applied.
LINE_NEGATIVE_PRICEThe unit price cannot be negative
LINE_NORMAL_DESCRIPTION_REQUIREDNormal lines must include a description of the concept
LINE_SUPLIDO_MUST_HAVE_NO_IRPFSUPLIDO lines cannot apply withholding tax (IRPF)
LINE_SUPLIDO_MUST_HAVE_NO_RECARGOSUPLIDO lines cannot apply equivalence surcharge
LINE_SUPLIDO_MUST_HAVE_NO_TAXSUPLIDO lines cannot apply VAT — the main tax must be 0% or empty
LINE_SUPLIDO_PRICE_REQUIREDUnit price is required on SUPLIDO lines
LINE_SUPLIDO_QUANTITY_REQUIREDQuantity is required on SUPLIDO lines
LINE_SUPLIDO_REFERENCE_REQUIREDSUPLIDO lines must declare a reference to the original third-party invoice
LINE_SUPLIDO_SOURCE_INVOICE_NOT_FOUNDOne of the disbursement's source invoices does not exist or does not belong to you
LINE_SUPLIDO_SOURCE_INVOICE_NOT_ISSUEDA disbursement's source invoices must be issued
LINE_SUPLIDO_TOO_MANY_SOURCE_ACCOUNTSA disbursement line cannot consolidate invoices from that many different accounts
LINE_SUPLIDO_TOO_MANY_SOURCESA disbursement line cannot consolidate that many source invoices
LINE_TOTAL_INCONSISTENTLine totals do not reconcile: expected {0}€ (base + VAT + surcharge - IRPF), declared {1}€. Difference exceeds 0.01€
LINE_UNIT_PRICE_XOR_DECLARED_TOTALThe line must carry exactly one of unit_price, total_excluding_tax or total_including_tax
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
PERCENTAGE_OUT_OF_RANGEThe percentage {0} is not valid. It must be between 0 and 100
PREVIEW_DRAFT_ONLYPDF preview is only available for draft invoices
PREVIEW_GENERATION_ERRORError generating PDF preview
PROFORMA_ALREADY_CONVERTEDThis proforma has already been converted into an invoice; conversion cannot be repeated
PROFORMA_CORRECTIVE_FORBIDDENA proforma invoice cannot be corrected; it is not a fiscal document
PROFORMA_NOT_CONVERTIBLEA proforma can only be converted while it is active; its current status ({0}) does not allow it
PROFORMA_NOT_ISSUABLEA proforma invoice is not issued: it is born active and becomes an invoice when the customer accepts it
PROFORMA_NOT_RECURRINGA proforma invoice cannot be recurring; a quote is a one-off offer, not a subscription
PROFORMA_OVERDUE_FORBIDDENA proforma invoice never becomes overdue; its validity date is informational
PROFORMA_PAYMENT_FORBIDDENA proforma invoice cannot be marked as paid; it is not part of the payment cycle
PROFORMA_RECIPIENT_REQUIREDA proforma invoice requires a recipient (customer or complete recipient data)
PROFORMA_SCHEDULE_FORBIDDENA proforma invoice cannot be scheduled; scheduling is a fiscal issuance flow
PROFORMA_TRANSITION_FORBIDDENA proforma invoice can only be active, converted or voided; that status change belongs to the fiscal cycle
PROFORMA_TYPE_CHANGE_FORBIDDENCannot change type to/from PROFORMA; use the conversion flow
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_ALREADY_ENDEDThe recurrence has already reached its end date and cannot generate more invoices
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_NUMBER_COLLISIONThe number assigned by the series is already in use. Please contact support: the series numbering needs review
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
SIMPLIFICADA_FORBIDS_SURCHARGESimplified invoices cannot carry recargo de equivalencia: the retailer must receive an identified ordinary (F1) invoice
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