NewProvince is only required for addresses in Spain
BeeL
Get startedMulti-NIFVeriFactuRulesStripeAPI referenceChangelog
ErrorsAll codes

CORRECTIVE_ORIGINAL_RECORD_REJECTED

AEAT rejected the record of the original invoice and it is not on file: fix and resubmit it before correcting it, or the corrective would be recorded without the invoice it corrects.


Category: Invoices

HTTP status422 Unprocessable Content
RetryAfter fixing the cause

When it happens

The original's VeriFactu record was rejected by the AEAT and has not been resubmitted, so the original is not in the AEAT's books. A corrective would be recorded without the invoice it corrects.

How to fix it

Fix and resubmit the original first, then create the corrective.

Retry

Not as is: the same request fails the same way. Fix the cause described above, then send the request again, under a new Idempotency-Key if the body changed.

Returned by

The operations where this code is most likely. The list is not exhaustive.

Rules that cite this code

Example response

When this error occurs, the API answers 422 Unprocessable Content with a JSON body of this shape:

{
  "type": "https://docs.beel.es/errors/CORRECTIVE_ORIGINAL_RECORD_REJECTED",
  "title": "CORRECTIVE_ORIGINAL_RECORD_REJECTED",
  "detail": "AEAT rejected the record of the original invoice and it is not on file: fix and resubmit it before correcting it, or the corrective would be recorded without the invoice it corrects.",
  "instance": "/v1/<resource>",
  "errors": [],
  "success": false,
  "error": {
    "code": "CORRECTIVE_ORIGINAL_RECORD_REJECTED",
    "message": "AEAT rejected the record of the original invoice and it is not on file: fix and resubmit it before correcting it, or the corrective would be recorded without the invoice it corrects.",
    "details": {}
  },
  "meta": {
    "timestamp": "2026-05-21T10:00:00Z",
    "request_id": "4bf92f3577b34da6a3ce929d0e0e4736"
  }
}

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

Message

AEAT rejected the record of the original invoice and it is not on file: fix and resubmit it before correcting it, or the corrective would be recorded without the invoice it corrects.
La AEAT rechazó el registro de la factura original y no consta: subsánalo antes de rectificarla, o la rectificativa quedaría registrada sin la factura que corrige.
L’AEAT va rebutjar el registre de la factura original i no hi consta: esmena’l abans de rectificar-la, o la rectificativa quedaria registrada sense la factura que corregeix.

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

Other errors in this category

Keep exploring