Skip to content
EDIFACT INVOIC — EDIFACT InvoicePublished Oct 11, 2026 · Updated Oct 12, 2026

EDIFACT INVOIC: Invoice Segments, VAT and Example

EDIFACT INVOIC explained: live EANCOM invoices with UK VAT, zero-rated lines, credit notes, allowances and charges, the segment table and the X12 810 mapping.

INVOIC is the message that gets you paid. Buyers match it against their order and their goods receipt before they release payment, so an INVOIC that disagrees with your DESADV, or whose VAT does not add up, sits in an exceptions queue until somebody fixes it by hand.

This guide follows the GS1 EANCOM 2002 INVOIC layout, with four live UK examples you can open in the inspector: a mixed-VAT invoice, an invoice with allowances and charges, a credit note, and an invoice built for three-way matching. For EDIFACT basics, start with EDIFACT explained.

What is an EDIFACT INVOIC?

INVOIC is the UN/EDIFACT invoice message: a claim for payment for goods or services supplied under conditions agreed between seller and buyer. GS1 states that the same message, with the right document code, also serves as the specification for credit notes and debit notes. One INVOIC can cover one or more orders and deliveries, and can carry payment terms and transport details.

INVOIC comes near the end of the order-to-cash flow: ORDERS, ORDRSP, DESADV, RECADV, then INVOIC, then the buyer's remittance advice.

Like every EANCOM message, INVOIC has three sections. The header holds references, parties, currency, payment terms and invoice-level allowances or charges. The detail section holds one LIN group per invoiced item. The summary section, after UNS+S, holds the totals and the VAT breakdown.

UNH  Message header
  BGM, DTM, RFF, NAD, CUX, PAT, ALC     header: what, when, who, terms
  LIN  QTY  MOA  PRI  TAX/MOA  ALC     detail: one group per item
  UNS+S                                section control
  CNT  MOA  TAX/MOA  ALC/MOA           summary: totals and VAT by rate
UNT  Message trailer

Example 1: a UK invoice with standard-rated and zero-rated lines

The fictional supplier Kestrel Valley Homeware invoices the fictional retailer Harbour Lane Stores for order HL-PO-88190. Two lines are standard-rated at 20%. The third is a printed cookbook, which is zero-rated in the UK. VAT numbers, GLNs and GTINs are made up, with valid GS1 check digits.

Live exampleEDIFACT INVOICEANCOM D01B

INVOIC with 20% and 0% VAT lines

Three lines, two VAT rates, and a summary that breaks VAT down per rate.

Structurally valid UN/EDIFACT
UN/EDIFACT · INVOIC · D:01B:UN · EANCOM EAN011 · 49 segments · 1 message

INVOIC · Invoice · ref 1

Document
Commercial invoice
Document number
KV-INV-20918
Message function
Original
Currency
GBP
Document/message date/time
2026-10-09
Reference date/time
2026-10-05
Order number (buyer)
HL-PO-88190
VAT registration number
GB123456789
VAT registration number
GB987654321

Parties

RoleIdentifierName and address
Buyer BY5012345000008GS1 (GLN)-
Supplier SU5098765000002GS1 (GLN)-
Delivery party DP5012345000107GS1 (GLN)-

Lines (3)

#GTINCodesDescriptionInvoiced quantityPriceAmount
15098765100016-BAMBOO CHOPPING BOARD LARGE1206.50780.00
25098765100023-SALT + PEPPER MILL SET409.80392.00
35098765100047-SEASONAL KITCHEN COOKBOOK307.25217.50

Totals

Message total monetary amount
1623.90 GBPMOA 86
Total line items amount
1389.50 GBPMOA 79
Taxable amount
1389.50 GBPMOA 125
Message total duty/tax/fee amount
234.40 GBPMOA 176
Taxable amount
1172.00 GBPMOA 125
Tax amount
234.40 GBPMOA 124
Taxable amount
217.50 GBPMOA 125
Tax amount
0.00 GBPMOA 124

Interchange (UNB)

Sender
5098765000002GS1 GLN
Recipient
5012345000008GS1 GLN
Prepared
2026-10-09 15:00
Control reference
KVH000198
Syntax
UNOC version 3
Messages
1
SegmentWhat it says
UNH+1+INVOIC:D:01B:UN:EAN011'INVOIC, directory D.01B, EANCOM 2002 subset version 011
BGM+380+KV-INV-20918+9'Commercial invoice (380), invoice number, original (9)
DTM+137Invoice date. GS1 makes 137 mandatory
RFF+ON + DTM+171The buyer's order number and its date
NAD+BY / NAD+SU + RFF+VABuyer and supplier GLNs, each with a VAT number
CUX+2:GBP:4' / PAT+1++5:3:D:30'Invoiced in GBP, due 30 days after the invoice date
QTY+47 / MOA+203 / PRI+AAAInvoiced quantity, line amount excluding VAT, net unit price
TAX+7+VAT+++:::20+S' + MOA+124VAT at 20%, category S, and the VAT on this line
TAX+7+VAT+++:::0+Z' + MOA+124:0.00'Zero rate, category Z, no VAT due
MOA+86, 79, 125, 176Invoice total, line total, taxable amount, total VAT
Summary TAX + MOA+125 + MOA+124One block per rate: taxable amount and VAT at that rate
UNT+46+1'46 segments from UNH to UNT inclusive

The arithmetic: 780.00 + 392.00 + 217.50 = 1,389.50 taxable. VAT is 20% of 1,172.00 = 234.40, plus nothing on the 217.50 at zero rate. Invoice total 1,389.50 + 234.40 = 1,623.90.

INVOIC segment reference

Status and repeat counts are from the GS1 EANCOM 2002 S3 INVOIC structure chart. "M" is mandatory, "C" conditional. Where a segment heads a segment group, the repeat count is for the group.

SegmentNameStatusRepeatsCarriesX12 810 equivalent
UNHMessage headerM1Message type and versionST
BGMBeginning of messageM1Document code (380, 381...), number, functionBIG02, BIG07
DTMDate/time/periodM35Invoice date (137), delivery date (35)BIG01, DTM
PAIPayment instructionsC1How to pay(by partner)
FTXFree textC99Notes for the whole invoiceNTE
RFF (SG1)ReferenceM in group99,999Order (ON), despatch advice (AAK), delivery note (DQ), invoice (IV)BIG04, REF
NAD (SG2)Name and addressM in group99Buyer, supplier, delivery point, invoicee by GLNN1 to N4
RFF (SG3)Party referenceM in group9,999VAT number (VA) for that partyREF
TAX (SG6)Duty/tax/fee detailsM in group5Tax for the whole invoiceTXI
CUX (SG7)CurrenciesM in group99Invoicing currencyCUR
PAT (SG8)Payment terms basisM in group10Terms, discounts for early paymentITD
TOD (SG12)Terms of deliveryM in group5Incoterms or delivery termsFOB
ALC (SG16)Allowance or chargeM in group9,999Invoice-level charges such as freightSAC
AJT (SG24)Adjustment detailsM in group1Reason for a credit or debit note(by partner)
LIN (SG26)Line itemM in group9,999,999GTIN of the invoiced itemIT1
PIAAdditional product idC25Supplier or buyer item codesIT1 qualifiers
IMDItem descriptionC99DescriptionPID
QTYQuantityC5Invoiced (47), delivered (46)IT102
MOA (SG27)Monetary amountM in group99Line amount (203)Calculated, not sent
PRI (SG29)Price detailsM in group25Net (AAA) or gross (AAB) unit priceIT104
RFF (SG30)Line referenceM in group10Line-level order or delivery referenceREF in IT1 loop
TAX (SG34)Line taxM in group99VAT rate and category for the lineTXI in IT1 loop
ALC (SG39)Line allowance or chargeM in group30Line discounts and chargesSAC in IT1 loop
UNSSection controlM1Start of summary (UNS+S)None
CNTControl totalC10Number of lines (2)CTT
MOA (SG50)Summary amountM in group100Totals: 86, 79, 125, 176, 131, 129, 9TDS
TAX (SG52)Summary taxM in group10VAT per rate, with up to 9 MOATXI
ALC (SG53)Summary allowance or chargeM in group15Totals per allowance or charge typeSAC
UNTMessage trailerM1Segment count and referenceSE

How VAT works in INVOIC

VAT is carried by TAX and MOA pairs, in up to three places: on each line, at header level for the whole invoice, and in the summary once per rate.

The TAX segment

TAX+7+VAT+++:::20+S'

PositionValueMeaning
Function qualifier7Tax (5 would be customs duty)
Tax typeVATValue added tax (GST is also allowed)
Rate:::2020%, in the fourth component of the rate composite
CategorySStandard rate

UK rates and category codes

The UK has three VAT rates: standard 20%, reduced 5% and zero 0%. Exempt supplies are not a rate at all.

UK treatmentRate in TAXCategory codeWhere the code comes from
Standard rate:::20SEANCOM restricted list
Reduced rate:::5Partner-specificAsk your customer
Zero rate:::0Z (zero rated goods)UN/EDIFACT code list 5305
Exempt(no rate)EEANCOM restricted list
Mixed rate(varies)AEANCOM restricted list

This is where generic examples go wrong. EANCOM 2002 restricts the category code to A (mixed), E (exempt) and S (standard), and says that tax types and categories differ by country and are defined by national guidelines. Z for zero-rated goods comes from the full UN/EDIFACT 5305 code list, the same list Peppol uses. Some UK partners want Z, some want S with a 0 rate, and the reduced rate has no single agreed code. Take every category code from your customer's guide.

Line, header and summary

  • Line level. Each LIN group has its own TAX and an MOA+124 with the VAT on that line. EANCOM also allows MOA+125 here for the taxable amount.
  • Header level. A TAX group in the header applies to the whole invoice. GS1 says header tax amounts are added to any amounts in the detail section to get the summary totals. Example 2 below uses this for VAT on a freight charge.
  • Summary level. One TAX per rate, each followed by MOA+125 (taxable amount at that rate) and MOA+124 (VAT at that rate). Example 1 has two summary TAX blocks, one at 20% and one at 0%.

What HMRC expects on a VAT invoice

HMRC's record keeping notice (VAT Notice 700/21) lists what a full VAT invoice must show. The INVOIC fields that carry each one:

HMRC requirementWhere it goes in INVOIC
Unique sequential invoice numberBGM document number
Time of supply (tax point), and date of issue if differentDTM+137, plus whatever date your partner specifies for the tax point
Supplier's name, address and VAT numberNAD+SU and RFF+VA
Customer's name and addressNAD+BY (and NAD+IV if the invoicee differs)
Description, quantity and unit priceIMD, QTY+47, PRI
VAT rate and amount excluding VAT per lineLine TAX and MOA+203
Rate of any cash discountPAT and PCD
Total VAT in sterlingMOA+176

A GLN is a code, not a name and address. EANCOM only allows the name and address parts of NAD when a coded identifier cannot do the job, so agree with your customer how the legal invoice details are held: in the message, or in master data the customer holds against your GLN.

Rounding

Buyers' systems check every sum: line VAT against the summary, the summary against MOA+176, and MOA+125 plus MOA+176 against MOA+86. Rounding is the usual failure. If you round VAT per line and your customer rounds per rate, totals drift by a penny. Agree the rule before go-live and build your test invoices around awkward prices.

Example 2: allowances and charges with ALC

ALC groups carry discounts and surcharges. They appear in the header (for the whole invoice), on each line, and in the summary. GS1 is explicit that header and line allowances are independent: a line ALC does not override a header ALC, it adds to it.

Here Kestrel Valley gives a 10% quantity discount on 200 tea towels and adds a 25.00 freight charge to the invoice.

Live exampleEDIFACT INVOICEANCOM D01B

INVOIC with a line discount and a freight charge

Gross price with a 10% line allowance, a header freight charge with its own VAT, and summary totals that include it.

Structurally valid UN/EDIFACT
UN/EDIFACT · INVOIC · D:01B:UN · EANCOM EAN011 · 47 segments · 1 message

INVOIC · Invoice · ref 1

Document
Commercial invoice
Document number
KV-INV-20957
Message function
Original
Currency
GBP
Document/message date/time
2026-10-16
Reference date/time
2026-10-12
Order number (buyer)
HL-PO-88412
VAT registration number
GB123456789
VAT registration number
GB987654321

Parties

RoleIdentifierName and address
Buyer BY5012345000008GS1 (GLN)-
Supplier SU5098765000002GS1 (GLN)-
Delivery party DP5012345000107GS1 (GLN)-

Lines (2)

#GTINCodesDescriptionInvoiced quantityPriceAmount
15098765100030--2002.25405.00
25098765100016--606.50390.00

Totals

Amount (23)
25.00 GBPMOA 23
Tax amount
5.00 GBPMOA 124
Message total monetary amount
984.00 GBPMOA 86
Total line items amount
795.00 GBPMOA 79
Taxable amount
820.00 GBPMOA 125
Message total duty/tax/fee amount
164.00 GBPMOA 176
Total charges/allowances
25.00 GBPMOA 131
Taxable amount
820.00 GBPMOA 125
Tax amount
164.00 GBPMOA 124
Total charges/allowances
25.00 GBPMOA 131

Interchange (UNB)

Sender
5098765000002GS1 GLN
Recipient
5012345000008GS1 GLN
Prepared
2026-10-16 11:00
Control reference
KVH000211
Syntax
UNOC version 3
Messages
1
SegmentWhat it says
ALC+C++6++FC' + MOA+23:25.00'Header charge, paid by the customer (6), freight (FC), 25.00
TAX + MOA+124:5.00' after itThe freight charge carries 20% VAT
PRI+AAB:2.25'Gross price. With AAB, the allowances must follow so the buyer can calculate the net
ALC+A+++1+QD' + PCD+1:10' + MOA+204:45.00'Line allowance, calculation step 1, quantity discount, 10%, worth 45.00
MOA+203:405.00'Line amount after the allowance: 200 x 2.25 less 45.00
Summary MOA+131:25.00'Header charges, which turn the line total (795.00) into the taxable amount (820.00)
ALC+C++++FC' + MOA+131Summary total per charge type

Three rules from the EANCOM manual keep ALC sane:

  1. Allowances are sent as positive numbers. ALC+A makes the amount a deduction. Do not add a minus sign.
  2. Gross or net, not both. PRI+AAB (gross) means allowances and charges must follow for the calculation. PRI+AAA (net) means they are already included and any ALC is for information.
  3. Sequence matters when allowances stack. The calculation sequence code (1 to 9) says which allowance applies first when each one is calculated on the price left by the previous one.

Example 3: a credit note (BGM 381)

Six chopping boards from invoice KV-INV-20931 arrived damaged. Kestrel Valley issues a credit note in the same INVOIC message, with document code 381, a reference to the original invoice, and an adjustment reason.

Live exampleEDIFACT INVOICEANCOM D01B

Credit note for damaged goods

BGM 381 referencing the original invoice with RFF+IV, adjustment reason AJT+3, and all amounts positive.

Structurally valid UN/EDIFACT
UN/EDIFACT · INVOIC · D:01B:UN · EANCOM EAN011 · 32 segments · 1 message

INVOIC · Invoice · ref 1

Document
Credit note
Document number
KV-CN-00412
Message function
Original
Currency
GBP
Document/message date/time
2026-10-20
Reference date/time
2026-10-15
Reference date/time
2026-10-11
Invoice number
KV-INV-20931
Order number (buyer)
HL-PO-88231
VAT registration number
GB123456789
VAT registration number
GB987654321

Parties

RoleIdentifierName and address
Buyer BY5012345000008GS1 (GLN)-
Supplier SU5098765000002GS1 (GLN)-

Lines (1)

#GTINCodesDescriptionInvoiced quantityPriceAmount
15098765100016--66.5039.00

Totals

Message total monetary amount
46.80 GBPMOA 86
Total line items amount
39.00 GBPMOA 79
Taxable amount
39.00 GBPMOA 125
Message total duty/tax/fee amount
7.80 GBPMOA 176
Taxable amount
39.00 GBPMOA 125
Tax amount
7.80 GBPMOA 124

Interchange (UNB)

Sender
5098765000002GS1 GLN
Recipient
5012345000008GS1 GLN
Prepared
2026-10-20 09:30
Control reference
KVH000219
Syntax
UNOC version 3
Messages
1

What makes this a credit note:

  • BGM+381 is "credit note, goods and services". The message structure is identical to an invoice.
  • RFF+IV names the invoice being credited. GS1 says this is how a credit note points at its invoice.
  • AJT+3 gives the reason: damaged goods. EANCOM also lists 5 (price query) and 9 (invoice error), and only allows AJT on credit and debit notes.
  • Every amount is positive. EANCOM's rule is that numeric values are positive and the receiving application uses the document code to turn a credit note's values negative. A credit sent as 380 with minus signs will be rejected by most buyers.

Document codes and message functions

The BGM document code says what kind of financial document this is. These are from the EANCOM 2002 restricted list:

CodeDocument
380Commercial invoice
381Credit note, goods and services
383Debit note, goods and services
384Corrected invoice
385Consolidated invoice
386Prepayment invoice
389Self-billed invoice
261Self-billed credit note
325Proforma invoice

GS1 advises checking with local tax authorities before using 384, because some countries do not allow corrected invoices. Its recommended route for a wrong invoice is to cancel it and issue a new one, or to issue a credit or debit note that references it.

The third element of BGM is the message function: 9 original, 1 cancellation, 5 replacement, 7 duplicate, 31 copy.

Self-billing (BGM 389)

In a self-billing arrangement the customer raises the invoice for the supplier. In INVOIC, that is document code 389 (or 261 for a self-billed credit note). For UK VAT, HMRC says a self-billed invoice must include the reference "self billing", and the arrangement must meet the conditions in Self-billing (VAT Notice 700/62), including a written agreement between the parties. If your customer asks to self-bill, settle the agreement before you map the message.

Example 4: an invoice built for three-way matching

Retail accounts payable teams match three documents before they pay: the order, the goods receipt, and the invoice. Make the match easy by quoting both the order and the despatch advice, and by invoicing exactly what you shipped.

Harbour Lane ordered 120 boards, 60 mill sets and 48 tea towels on order HL-PO-88231. Kestrel Valley shipped 120 boards and 40 mill sets on despatch advice KV-DES-7781. The invoice bills those 160 items, not the 228 ordered.

Live exampleEDIFACT INVOICEANCOM D01B

INVOIC quoting the order and the despatch advice

RFF+ON and RFF+AAK with their dates, delivered and invoiced quantities per line, and the actual delivery date.

Structurally valid UN/EDIFACT
UN/EDIFACT · INVOIC · D:01B:UN · EANCOM EAN011 · 42 segments · 1 message

INVOIC · Invoice · ref 1

Document
Commercial invoice
Document number
KV-INV-20931
Message function
Original
Currency
GBP
Document/message date/time
2026-10-15
Delivery date/time, actual
2026-10-15
Reference date/time
2026-10-11
Reference date/time
2026-10-13
Order number (buyer)
HL-PO-88231
Despatch advice number
KV-DES-7781
VAT registration number
GB123456789
VAT registration number
GB987654321

Parties

RoleIdentifierName and address
Buyer BY5012345000008GS1 (GLN)-
Supplier SU5098765000002GS1 (GLN)-
Delivery party DP5012345000107GS1 (GLN)-

Lines (2)

#GTINCodesDescriptionInvoiced quantityPriceAmount
15098765100016--1206.50780.00
25098765100023--409.80392.00

Totals

Message total monetary amount
1406.40 GBPMOA 86
Total line items amount
1172.00 GBPMOA 79
Taxable amount
1172.00 GBPMOA 125
Message total duty/tax/fee amount
234.40 GBPMOA 176
Taxable amount
1172.00 GBPMOA 125
Tax amount
234.40 GBPMOA 124

Interchange (UNB)

Sender
5098765000002GS1 GLN
Recipient
5012345000008GS1 GLN
Prepared
2026-10-15 16:30
Control reference
KVH000207
Syntax
UNOC version 3
Messages
1
SegmentWhy it helps the match
DTM+35:20261015:102'Actual delivery date, which the buyer compares with its goods receipt
RFF+ON:HL-PO-88231' + DTM+171Links the invoice to the order and its date
RFF+AAK:KV-DES-7781' + DTM+171Links the invoice to the despatch advice. EANCOM's code for a delivery note number is DQ; use whichever your customer's guide asks for
QTY+46 and QTY+47Delivered quantity and invoiced quantity, side by side
No line for tea towelsNothing shipped, so nothing billed. Line numbering stays 1 and 2

If the buyer sends a RECADV showing fewer items received than you despatched, expect a deduction or a request for a credit note like Example 3.

INVOIC vs the X12 810

DataEDIFACT INVOICX12 810
Invoice number and dateBGM + DTM+137BIG02, BIG01
Order referenceRFF+ONBIG04
Despatch referenceRFF+AAK or RFF+DQREF*BM or REF*PK, by partner
Credit vs invoiceBGM code (380, 381)BIG07 transaction type, or an 812
PartiesNAD+BY, NAD+SU, NAD+DP with GLNN1*BT, N1*RE, N1*ST
Payment termsPATITD
Line quantity and priceQTY+47, PRI+AAAIT102, IT104
Line amountMOA+203Calculated, not sent
Allowances and chargesALC + PCD / MOASAC
Line taxTAX + MOA+124TXI (where used)
Invoice totalMOA+86TDS01 (implied decimals)
Tax totalMOA+176, plus TAX/MOA per rateTXI at summary level
Line countCNT+2CTT01

Two differences matter most in practice. First, EDIFACT sends amounts with an explicit decimal mark (1406.40), while the X12 TDS01 total uses implied decimals (140640). Second, sales tax in US X12 invoices is often a single summary figure, while EDIFACT invoices to VAT-registered buyers carry VAT per line and per rate. A mapping from one to the other has to rebuild the VAT breakdown, not just copy a total. See the EDI 810 guide for the X12 side.

INVOIC and e-invoicing mandates

EDIFACT INVOIC is an EDI format agreed between trading partners. Most new government e-invoicing mandates name other formats:

  • Peppol uses UBL-based Peppol BIS Billing 3.0, exchanged through Peppol access points.
  • Germany requires B2B invoices that conform to the European standard EN 16931, typically XRechnung or ZUGFeRD. German guidance addresses when existing EDI invoice flows can continue, so check the current position for your case.
  • France requires structured e-invoices exchanged through approved platforms. Every VAT-registered business must be able to receive them from 1 September 2026; see our France mandate guide.
  • The UK will require all VAT invoices to be issued as e-invoices from April 2029, with an implementation roadmap due at Budget 2026. The format had not been fixed when this guide was updated.

A mandate may require a compliant invoice flow alongside your EDIFACT one, or instead of it. Our country-by-country mandate guide has the detail.

UK retailer INVOIC requirements

Every UK grocer takes invoices by EDI, but the format, the credit note rules and the move off paper differ. Confirm the current specification with each retailer during onboarding.

Tesco

  • Send invoices and credit notes by EDI, as EANCOM INVOIC or TRADACOMS INVFIL, depending on your setup.

See the Tesco EDI requirements page.

Sainsbury's

  • Send invoices as EDIFACT INVOIC or TRADACOMS INVFIL, using the Supplier ID and GLN Sainsbury's issues to you.

See the Sainsbury's EDI requirements page.

Morrisons

  • Send invoices and credit or debit notes by EDI. Morrisons' message set is EDIFACT D96A, so invoices are INVOIC, with credit notes as INVOIC BGM+381 (see Example 3 above).
  • Invoice the quantities on your DESADV, after any ORDCHG amendments.

See the Morrisons EDI requirements page.

Marks & Spencer

  • Where your account is on self-billing, M&S raises the invoice from your ASN and you do not send INVOIC at all. Where it is not, send invoices by EDI. Our self-billing (ERS) guide covers how to reconcile self-billed invoices.

See the Marks & Spencer EDI requirements page.

Retailers that invoice in TRADACOMS

  • Asda, the Co-op and Boots take invoices as TRADACOMS INVFIL and credit notes as CREHDR.
  • Ocado takes invoices as INVFIL but does not accept credit or debit notes by EDI.
  • Waitrose runs a parallel phase in which you send EDI invoices with test qualifiers alongside paper copies, then moves you fully to EDI within a set window.

The TRADACOMS INVFIL guide and CREHDR guide map each field to its INVOIC equivalent.

Common INVOIC errors and fixes

ErrorWhat the buyer seesFix
Invoicing ordered quantitiesMismatch against the goods receiptInvoice what the DESADV says you shipped
Totals that do not reconcileInvoice held or rejectedCheck 79 + 131 = 125 and 125 + 176 = 86, to the penny
VAT rounding driftA penny out per rateAgree per-line or per-rate rounding
Missing supplier VAT numberNot valid for VAT recoverySend RFF+VA after NAD+SU
Wrong VAT category codeTax validation failureUse the codes in the customer's guide
Credit sent as 380 with negativesRejectedUse 381, positive amounts and RFF+IV
Gross price with no allowanceAmount does not equal quantity x priceSend ALC with PRI+AAB, or use PRI+AAA
Wrong UNT or CNT countSyntax rejection, often via CONTRLRecount after every mapping change
Unescaped apostrophe or plusSegment ends earlyEscape as ?' and ?+

INVOIC testing checklist

  1. Get the customer's INVOIC guide and confirm the directory (D.96A or D.01B), the EANCOM version in UNH, and the mandatory segments.
  2. Confirm VAT codes. Write down the exact TAX category for each UK rate you invoice, including zero-rated and exempt lines.
  3. Agree the rounding rule for line VAT and summary VAT.
  4. Build one test invoice per case: standard rate only, mixed rates, a line allowance, a header charge, and a credit note.
  5. Check the references. Every invoice should carry the order number, and the despatch or delivery note number if the customer matches on it.
  6. Paste each file into the EDIFACT inspector to check the envelope, UNT and CNT counts, escapes and GS1 check digits.
  7. Reconcile the totals by hand for at least one invoice per case, then compare with what the customer's test system calculates.
  8. Send through the real connection (AS2, SFTP or VAN) and confirm you receive the customer's CONTRL or APERAK.

Frequently Asked Questions

What does BGM+380 mean?

380 is the UN/EDIFACT document name code for a commercial invoice. A credit note uses 381 and a debit note 383, all in the same INVOIC message structure.

How is VAT shown in an EDIFACT invoice?

With a TAX segment giving the tax type, rate and category, followed by an MOA+124 with the tax amount. This appears on each line and again in the summary, once per VAT rate, with MOA+125 for the taxable amount at that rate. MOA+176 carries the total VAT for the invoice.

How do I show a zero-rated line in INVOIC?

Send the line with a 0 rate, for example TAX+7+VAT+++:::0+Z' and MOA+124:0.00', and give the zero rate its own TAX block in the summary. Z is the UN/EDIFACT code for zero-rated goods, but EANCOM leaves category codes to national guidelines, so confirm the code with your customer.

Are credit note amounts negative in EDIFACT?

No. EANCOM says amounts are sent as positive values and the document code tells the receiver to treat them as negative. A credit note is BGM+381 with positive quantities and amounts.

What is the difference between MOA+79, MOA+125 and MOA+86?

MOA+79 is the total of the line amounts. MOA+125 is the taxable amount: the line total adjusted by invoice-level allowances and charges. MOA+86 is the taxable amount plus VAT.

What is the TRADACOMS equivalent of INVOIC?

The TRADACOMS invoice file, made of INVFIL (header), INVOIC (one per invoice), VATTLR (VAT trailer) and INVTLR (file trailer) messages. See the TRADACOMS invoice file guide and the TRADACOMS overview.

Can OrderSync handle EDIFACT invoices?

Yes. OrderSync supports EDIFACT, EANCOM and TRADACOMS alongside X12, PDF, CSV and email.

Related guides

Sources

Check your INVOIC totals, counts and escapes in the free EDIFACT inspector before your customer's accounts payable team does.

James Darby
Last updated: 10/12/2026

How to Answer "Are You EDI Capable?"

A buyer asked, and you need to answer this week. The four things they are checking, what you can say yes to today, and a realistic date for the rest.

  • What a buyer is really asking when they ask this
  • The minimum set-up that makes the answer yes
  • What you can answer today versus what needs building
  • Rough timelines, so you can give a date rather than a maybe

One email with the download. Unsubscribe any time.

Related Resources