Free tier

← All guides · How-to & workflow

How to issue a credit note as an e-invoice (type code 381)

By the Ingenious AI team · Published 14 November 2026 · Reviewed 14 November 2026

Convert an invoice free

Put this guide into practice now: convert one invoice free — validated UBL 2.1 XML plus a Factur-X PDF, with the acceptance checker for your client’s country. See pricing for bulk conversion, country rule packs and monitored clients.

Short answer

To issue a credit note as an e-invoice, create an invoice document with type code 381: it has its own invoice number and issue date, lists the credited lines with positive quantities and prices under their VAT categories, and its totals are computed the same way as an invoice's — the credit nature lives in the type code, not in negative amounts. Type 384 is the corrected invoice; 389 is self-billed.

What is an e-invoice credit note?

A credit note in EN 16931 terms is an invoice document whose type code (BT-3) is 381. The validator here accepts type codes 380 (commercial invoice), 381 (credit note), 384 (corrected invoice) and 389 (self-billed invoice) under BR-03. A credit note carries its own number (BT-1) and issue date (BT-2) and is validated by the same core rules — presence, VAT agreement, and BR-CO totals computed from its lines.

Why the type code carries the meaning

Structured systems book documents by their codes. An invoice coded 380 tells the client's system 'you owe this'; the same figures coded 381 tell it 'this reduces what you owe'. If a credit note goes out coded as an invoice — a real-world error, when templates are copied carelessly — the client's payables double-count the amount instead of netting it, and the reconciliation surfaces weeks later as an argument about figures both sides can see.

That is why BR-03 restricts the type code to the allowed list and why the choice deserves a conscious second at creation. The type code is the document's verb. Everything else — parties, lines, totals — is shared grammar between invoices and credit notes, which is what makes the system learnable: master one document and you have mastered its mirror.

Building the credit note: what goes in it

A credit note is a complete document, not an annotation. Its own unique number in your sequence, its own issue date (the day you issue the credit, not the original invoice's date), the same seller and buyer blocks, and the lines being credited — each with name, quantity, unit price, VAT category and rate, expressed positively. The totals are computed from those lines exactly as an invoice's are: line extensions, tax breakdown per category and rate, payable amount.

Reference discipline matters commercially: the credit note should identify the original invoice it credits — in your numbering, your covering message and your records — so the client's system and your ledger can pair them. Full credit: mirror the original lines entirely. Partial credit: include only the credited lines or quantities. Either way, the document must stand on its own data; a credit note that says 'see invoice, minus some' is a PDF-era habit that structured intake cannot book.

The negative-amount trap

Newcomers instinctively reach for negative lines: quantity −1, or a price of −500. The validator forbids the mechanics — quantities must be positive and net prices must not be negative — because the model has a cleaner way to express the idea: the type code flips the document's effect while its arithmetic stays positive and provable. A credit note's payable amount is a positive figure that the receiving system applies as a credit because BT-3 says 381.

This is a case where the rule teaches the concept. Negative lines would corrupt every downstream computation — tax breakdowns, partial credits, currency totals — while the type-code approach keeps the BR-CO arithmetic identical for both document kinds. If your accounting habits think in negatives, translate at the boundary: the ledger may net; the document states.

VAT treatment on credit notes

The credited lines carry the same VAT categories and rates as the original invoice's lines — you are unwinding a specific taxed supply, so the tax breakdown must mirror it for the client's VAT position to unwind symmetrically. A standard-rated line credited at a different rate, or under a different category, creates a tax mismatch that validation's internal consistency cannot catch for you, because both versions are internally coherent; only the pairing is wrong.

Cross-border and reverse-charge credits follow the same identifier discipline: the parties and their VAT identifiers as on the original. Keep the credit note's data a faithful mirror of the credited supply, change only what the credit changes (quantities or lines credited in part), and the tax story stays clean on both sides of the border.

Corrected invoices (384) and self-billing (389)

Two neighbours complete the allowed list. A corrected invoice, type 384, replaces a defective invoice with a corrected version of the document itself — used where the original document was wrong as a document (errors in its data), rather than the commercial deal changing. A self-billed invoice, type 389, is issued by the buyer in the seller's name under a self-billing arrangement — the data model is the same; the issuer differs.

Choosing between 381 and 384 is a substance question: did the deal change (credit note: a refund, a price reduction, returned goods) or was the document wrong (correction)? Your accountant's answer governs; the codes just carry it. What the converter guarantees is that whichever you choose is expressed as a valid structured document — type code allowed, lines positive, totals computed — that the client's system will book in the direction you intend.

Issuing a credit note in 5 steps

  1. Set the type code to 381 — never send a credit note coded 380.
  2. Give the credit note its own number and its own issue date in your sequence.
  3. Mirror the credited lines positively: same names, categories and rates as the original; credit in part by line or quantity where needed.
  4. Record which original invoice the credit note belongs to, in your message and your ledger.
  5. Convert and validate as normal — totals compute from the lines; the code carries the credit.

Worked example: crediting one line of a two-line invoice

An agency's invoice 2026-052 billed two lines: EUR 3,000.00 of development and EUR 800.00 of training, both category S at 20% — tax EUR 760.00, payable EUR 4,560.00. The training is cancelled. The credit note, numbered 2026-053 and coded 381, contains one line: the training, quantity 1 at EUR 800.00, category S at 20%. Its computed totals: line total EUR 800.00, tax EUR 160.00, payable EUR 800.00 + EUR 160.00 = EUR 960.00 — applied by the client's system as a credit of EUR 960.00 because the type code says so.

The original invoice stands untouched in both ledgers; the credit note nets against it. No negative line was needed, and the VAT unwinds at the same rate it was charged — the mirror property that keeps both sides' tax positions consistent.

Frequently asked questions

Do credit note lines use negative amounts?

No — quantities must be positive and prices non-negative. The type code 381 makes the document a credit; its totals are positive figures the receiving system applies as a credit.

Does a credit note need its own number?

Yes — it is its own document with its own invoice number (BT-1) and issue date (BT-2), validated like any invoice. Reference the original invoice in your records and message.

What is the difference between 381 and 384?

381 is a credit note (the deal changed: refund, reduction, returns). 384 is a corrected invoice (the document itself was wrong and is reissued corrected). The substance decides; ask your accountant if unsure.

Must the VAT rate on a credit note match the original?

Yes — credit the supply under the same category and rate it was charged at, so the tax unwinds symmetrically in both parties' VAT positions.

Can I convert a credit note for free?

Yes — it is the same one-invoice conversion with type code 381. The free tier converts one complete document, invoice or credit note.

Keep going

Run the free tool this guide is about: convert an invoice · acceptance checker · pricing · about EInvoice Translator · all guides

Related guides

← Back