ediverse Explore the platform

Spotlight PEPPOL BIS Billing 3.0 The EU e-invoicing mandate is here — France Sept 2026, Belgium Jan 2026, Germany 2025.
INVOIC D.97A

INVOIC — EDIFACT Invoice (D.97A)

The INVOIC message represents a commercial invoice, a credit note or a request for payment. It covers simple purchases as well as complex transactions with multi-rate VAT, allowances/charges and consolidated billing. This page summarises the segment structure as published by UN/CEFACT for directory D.97A.

Purpose

The INVOIC message represents a commercial invoice, a credit note or a request for payment. It covers simple purchases as well as complex transactions with multi-rate VAT, allowances/charges and consolidated billing.

This page focuses on the structure published by UN/CEFACT for directory D.97A. The segments listed, their status (M / C), position and repetition factor are extracted from the official file invoic_s.htm hosted on service.unece.org.

Segment structure

The INVOIC D.97A message has 102 header entries, 106 detail entries and 16 summary entries (segments and groups combined). Groups are shown in bold and their members are indented by actual nesting depth.

Pos.TagNameSRep.
0010UNHMessage headerM1
0020BGMBeginning of messageM1
0030DTMDate/time/periodM×35
0040PAIPayment instructionsC1
0050ALIAdditional informationC×5
0060IMDItem descriptionC1
0070FTXFree textC×10
0080LOCPlace/location identificationC×10
0090GISGeneral indicatorC×10
0100DGSDangerous goodsC1
0110  SG1Group (×99)C×99
0120  RFFReferenceM1
0130  DTMDate/time/periodC×5
0140  GIRRelated identification numbersC×5
0150  LOCPlace/location identificationC×2
0160  MEAMeasurementsC×5
0170  QTYQuantityC×2
0180  FTXFree textC×5
0190  MOAMonetary amountC×2
0200    SG2Group (×99)C×99
0210    NADName and addressM1
0220    LOCPlace/location identificationC×25
0230    FIIFinancial institution informationC×5
0240      SG3Group (×9999)C×9999
0250      RFFReferenceM1
0260      DTMDate/time/periodC×5
0270        SG4Group (×5)C×5
0280        DOCDocument/message detailsM1
0290        DTMDate/time/periodC×5
0300          SG5Group (×5)C×5
0310          CTAContact informationM1
0320          COMCommunication contactC×5
0330            SG6Group (×5)C×5
0340            TAXDuty/tax/fee detailsM1
0350            MOAMonetary amountC1
0360            LOCPlace/location identificationC×5
0370              SG7Group (×5)C×5
0380              CUXCurrenciesM1
0390              DTMDate/time/periodC×5
0400                SG8Group (×10)C×10
0410                PATPayment terms basisM1
0420                DTMDate/time/periodC×5
0430                PCDPercentage detailsC1
0440                MOAMonetary amountC1
0450                PAIPayment instructionsC1
0460                FIIFinancial institution informationC1
0470                  SG9Group (×10)C×10
0480                  TDTDetails of transportM1
0490                  TSRTransport service requirementsC1
0500                    SG10Group (×10)C×10
0510                    LOCPlace/location identificationM1
0520                    DTMDate/time/periodC×5
0530                      SG11Group (×9999)C×9999
0540                      RFFReferenceM1
0550                      DTMDate/time/periodC×5
0560                        SG12Group (×5)C×5
0570                        TODTerms of delivery or transportM1
0580                        LOCPlace/location identificationC×2
0590                          SG13Group (×1000)C×1000
0600                          PACPackageM1
0610                          MEAMeasurementsC×5
0620                          EQDEquipment detailsC1
0630                            SG14Group (×5)C×5
0640                            PCIPackage identificationM1
0650                            RFFReferenceC1
0660                            DTMDate/time/periodC×5
0670                            GINGoods identity numberC×5
0680                              SG15Group (×9999)C×9999
0690                              ALCAllowance or chargeM1
0700                              ALIAdditional informationC×5
0710                              FTXFree textC1
0720                                SG16Group (×5)C×5
0730                                RFFReferenceM1
0740                                DTMDate/time/periodC×5
0750                                  SG17Group (×1)C1
0760                                  QTYQuantityM1
0770                                  RNGRange detailsC1
0780                                    SG18Group (×1)C1
0790                                    PCDPercentage detailsM1
0800                                    RNGRange detailsC1
0810                                      SG19Group (×2)C×2
0820                                      MOAMonetary amountM1
0830                                      RNGRange detailsC1
0840                                      CUXCurrenciesC1
0850                                      DTMDate/time/periodC1
0860                                        SG20Group (×1)C1
0870                                        RTERate detailsM1
0880                                        RNGRange detailsC1
0890                                          SG21Group (×5)C×5
0900                                          TAXDuty/tax/fee detailsM1
0910                                          MOAMonetary amountC1
0920                                            SG22Group (×100)C×100
0930                                            RCSRequirements and conditionsM1
0940                                            RFFReferenceC×5
0950                                            DTMDate/time/periodC×5
0960                                            FTXFree textC×5
0970                                              SG23Group (×1)C1
0980                                              AJTAdjustment detailsM1
0990                                              FTXFree textC×5
1000                                                SG24Group (×1)C1
1010                                                INPParties to instructionM1
1020                                                FTXFree textC×5

Detail

Pos.TagNameSRep.
1030  SG25Group (×9999999)C×9999999
1040  LINLine itemM1
1050  PIAAdditional product idC×25
1060  IMDItem descriptionC×10
1070  MEAMeasurementsC×5
1080  QTYQuantityC×5
1090  PCDPercentage detailsC1
1100  ALIAdditional informationC×5
1110  DTMDate/time/periodC×35
1120  GINGoods identity numberC×1000
1130  GIRRelated identification numbersC×1000
1140  QVRQuantity variancesC1
1150  EQDEquipment detailsC1
1160  FTXFree textC×5
1170  DGSDangerous goodsC1
1180    SG26Group (×10)C×10
1190    MOAMonetary amountM1
1200    CUXCurrenciesC1
1210      SG27Group (×10)C×10
1220      PATPayment terms basisM1
1230      DTMDate/time/periodC×5
1240      PCDPercentage detailsC1
1250      MOAMonetary amountC1
1260        SG28Group (×25)C×25
1270        PRIPrice detailsM1
1280        CUXCurrenciesC1
1290        APRAdditional price informationC1
1300        RNGRange detailsC1
1310        DTMDate/time/periodC×5
1320          SG29Group (×10)C×10
1330          RFFReferenceM1
1340          DTMDate/time/periodC×5
1350            SG30Group (×10)C×10
1360            PACPackageM1
1370            MEAMeasurementsC×10
1380            EQDEquipment detailsC1
1390              SG31Group (×10)C×10
1400              PCIPackage identificationM1
1410              RFFReferenceC1
1420              DTMDate/time/periodC×5
1430              GINGoods identity numberC×10
1440                SG32Group (×9999)C×9999
1450                LOCPlace/location identificationM1
1460                QTYQuantityC×100
1470                DTMDate/time/periodC×5
1480                  SG33Group (×99)C×99
1490                  TAXDuty/tax/fee detailsM1
1500                  MOAMonetary amountC1
1510                  LOCPlace/location identificationC×5
1520                    SG34Group (×99)C×99
1530                    NADName and addressM1
1540                    LOCPlace/location identificationC×5
1550                      SG35Group (×5)C×5
1560                      RFFReferenceM1
1570                      DTMDate/time/periodC×5
1580                        SG36Group (×5)C×5
1590                        DOCDocument/message detailsM1
1600                        DTMDate/time/periodC×5
1610                          SG37Group (×5)C×5
1620                          CTAContact informationM1
1630                          COMCommunication contactC×5
1640                            SG38Group (×30)C×30
1650                            ALCAllowance or chargeM1
1660                            ALIAdditional informationC×5
1670                            DTMDate/time/periodC×5
1680                            FTXFree textC1
1690                              SG39Group (×1)C1
1700                              QTYQuantityM1
1710                              RNGRange detailsC1
1720                                SG40Group (×1)C1
1730                                PCDPercentage detailsM1
1740                                RNGRange detailsC1
1750                                  SG41Group (×2)C×2
1760                                  MOAMonetary amountM1
1770                                  RNGRange detailsC1
1780                                  CUXCurrenciesC1
1790                                  DTMDate/time/periodC1
1800                                    SG42Group (×1)C1
1810                                    RTERate detailsM1
1820                                    RNGRange detailsC1
1830                                      SG43Group (×5)C×5
1840                                      TAXDuty/tax/fee detailsM1
1850                                      MOAMonetary amountC1
1860                                        SG44Group (×10)C×10
1870                                        TDTDetails of transportM1
1880                                          SG45Group (×10)C×10
1890                                          LOCPlace/location identificationM1
1900                                          DTMDate/time/periodC×5
1910                                            SG46Group (×5)C×5
1920                                            TODTerms of delivery or transportM1
1930                                            LOCPlace/location identificationC×2
1940                                              SG47Group (×100)C×100
1950                                              RCSRequirements and conditionsM1
1960                                              RFFReferenceC×5
1970                                              DTMDate/time/periodC×5
1980                                              FTXFree textC×5
1990                                                SG48Group (×10)C×10
2000                                                GISGeneral indicatorM1
2010                                                RFFReferenceC1
2020                                                DTMDate/time/periodC×5
2030                                                GIRRelated identification numbersC×5
2040                                                LOCPlace/location identificationC×2
2050                                                MEAMeasurementsC×5
2060                                                QTYQuantityC×2
2070                                                FTXFree textC×5
2080                                                MOAMonetary amountC×2

Summary

Pos.TagNameSRep.
2090UNSSection controlM1
2100CNTControl totalC×10
2110  SG49Group (×100)M×100
2120  MOAMonetary amountM1
2130    SG50Group (×1)C1
2140    RFFReferenceM1
2150    DTMDate/time/periodC×5
2160      SG51Group (×10)C×10
2170      TAXDuty/tax/fee detailsM1
2180      MOAMonetary amountC×2
2190        SG52Group (×15)C×15
2200        ALCAllowance or chargeM1
2210        ALIAdditional informationC1
2220        MOAMonetary amountC×2
2230        FTXFree textC1
2240UNTMessage trailerM1

Changes vs D.96A

Top-level differences between D.96A and D.97A for the INVOIC message (segments directly inside header / detail / summary, ignoring nested groups). The comparison is indicative: a given tag may have evolved inside nested groups without showing up in this synthesis.

Segments added vs D.96A

  • GIS in the header section (status C, repeat ×10) — not present at the top of the corresponding D.96A section.
  • DGS in the header section (status C, repeat ×1) — not present at the top of the corresponding D.96A section.
  • GIR in the header section (status C, repeat ×5) — not present at the top of the corresponding D.96A section.
  • TSR in the header section (status C, repeat ×1) — not present at the top of the corresponding D.96A section.
  • EQD in the header section (status C, repeat ×1) — not present at the top of the corresponding D.96A section.
  • DGS in the detail section (status C, repeat ×1) — not present at the top of the corresponding D.96A section.
  • GIS in the detail section (status M, repeat ×1) — not present at the top of the corresponding D.96A section.
  • FTX in the summary section (status C, repeat ×1) — not present at the top of the corresponding D.96A section.

Status changes (M ↔ C)

  • QTY (header): status M in D.96A → C in D.97A.

Max-repeat changes

  • LOC (header): repeat ×25 in D.96A → ×10 in D.97A.
  • QTY (header): repeat ×1 in D.96A → ×2 in D.97A.
  • MOA (header): repeat ×1 in D.96A → ×2 in D.97A.

Structural example

Minimal example of an INVOIC D.97A message with mandatory segments only. The goal is to show the exact version declared in UNH (INVOIC:D:97A:UN) — not to replicate a full business case (see the INVOIC D.96A page for an annotated example).

edifact invoic-d97a-example.edi
UNB+UNOC:3+5410000000123:14+5410000000456:14+260514:1430+CTRL097001'
UNH+1+INVOIC:D:97A:UN'
BGM+380+INV456789+9'
DTM+137:20260514:102'
NAD+SU+5410000000456::9'
NAD+BY+5410000000123::9'
CUX+2:EUR:4'
LIN+1++3520000001234:EN'
QTY+47:10'
MOA+203:420.00'
PRI+AAA:42.00'
UNS+S'
MOA+77:504.00'
MOA+125:420.00'
MOA+124:84.00'
TAX+7+VAT+++:::20'
UNT+16+1'
UNZ+1+CTRL097001'

Common errors

  • Misaligned UNH tokens — The UNH+...+INVOIC:D:97A:UN token must reflect exactly the directory in use — a mismatch between the UNH release and the release agreed with the partner is rejected by every strict validator.
  • Wrong UNT segment count — The value after UNT+ must include UNH and UNT themselves. By far the most common sender-side error, regardless of the directory in use.
  • Stale code lists — Between D.96A and D.97A, several code lists received new qualifiers (DTM status, RFF qualifier, NAD codes…). Reusing an older directory’s code tables triggers warnings or even rejections depending on the partner’s strict-conformance mode.

Other versions of this message available on ediverse.io: INVOIC D.96A, INVOIC D.01B, INVOIC D.10A, INVOIC D.16B, INVOIC D.21B, INVOIC D.24A, INVOIC D.99B, INVOIC D.00B, INVOIC D.02B, INVOIC D.05A, INVOIC D.08A, INVOIC D.13B, INVOIC D.18B, INVOIC D.20B.

X12 functional equivalent: X12 810.

← All EDIFACT versions