Repair or correct a rejected e-invoice

Decide whether to rebuild a rejected submission or correct the invoice with a credit note, and do it.

Required permission: einvoicing.repair

Before you begin

  • A submission is Rejected, or Not cleared for a Saudi standard invoice.
  • You hold einvoicing.repair. Operators who submit and retry cannot rebuild or correct. This keeps the duties separate.
  • You know whether the document was legally issued. The legal state on the record tells you.

Which action applies

Legal stateTypical caseAction offered
Not cleared / not yet issuedSaudi standard invoice refused by clearanceRebuild after repair
Issued or ReportedUAE invoice, Saudi simplified invoice, or a cleared invoiceCorrect by credit note

A legally issued document is never rebuilt. It is corrected by a credit note.

Steps: rebuild after repair (not yet issued)

  1. Open E-invoicing > E-invoicing > Submissions > Rejected and open the submission.
  2. Read the Issues tab. Each issue gives the provider's code, the field path, who repairs it and how.
  3. Fix the cause in master data, for example add the full Saudi address on Configuration > Partner endpoints.
  4. Click Rebuild after repair and type a reason such as Address fixed.
  5. Confirm.

The old submission becomes Superseded and shows Not cleared. A new submission appears in the same lineage. When it is accepted its legal state is Cleared. The old issues become Resolved and point at the new submission. Every payload of both submissions is kept. Invoice counters and hash chain continue without gaps.

If the invoice's amounts or lines changed since the first attempt you see "The invoice's amounts or lines differ from what was submitted; that is a correction for Billing."

Steps: correct by credit note (already issued)

  1. Open the rejected submission. Rebuild after repair is not offered.
  2. Click Correct by credit note and type a reason such as Wrong address.
  3. Confirm. A draft credit note is created with the same lines, quantities, prices and taxes. The reason becomes its note. Open it from the Credit note smart button.
  4. In Sales, review, confirm and post the credit note (an accountant normally does this).
  5. Open Submissions. The credit note has its own submission, a type 381 document that refers to the original invoice number.

The original submission stays Rejected. Correct by credit note is not offered again, and not offered on a credit note. If you need a replacement invoice, post a new one in Sales.

Debit notes carry the original invoice number and a reason. A debit note without them is blocked: "The invoice this debit note corrects is required by ..."

What happens next

The open issues on the original submission carry the note "Corrected by credit note ...; post it to e-invoice the correction." After the credit note is accepted, the bridge report shows both documents.

Good to know

  • The seeded rejection text for some sandbox codes says "rebuild", but for a UAE or Saudi simplified invoice only the credit note is offered. Follow the action buttons, not the wording.
  • A rejected clearance invoice cannot be reversed in Accounting because it counts as sent. Rebuild is the repair for a document that was never cleared.
  • Rejected bytes are never deleted. Auditors can compare them with the repaired version.
  • Review E-invoicing > Reports > Reject analysis to see which codes recur and fix them at the source. See Reports and evidence.