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.99B

INVOIC — EDIFACT Invoice (D.99B)

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.99B.

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.99B. The segments listed, their status (M / C), position and repetition factor are extracted from the official file invoic_c.htm hosted on service.unece.org.

Segment structure

The INVOIC D.99B message has 106 header entries, 105 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×99
0080LOCPlace/location identificationC×10
0100DGSDangerous goodsC1
0110GIRRelated identification numbersC×10
0120  SG1Group (×99999)C×99999
0130  RFFReferenceM1
0140  DTMDate/time/periodC×5
0150  GIRRelated identification numbersC×5
0160  LOCPlace/location identificationC×2
0170  MEAMeasurementsC×5
0180  QTYQuantityC×2
0190  FTXFree textC×5
0200  MOAMonetary amountC×2
0210  RTERate detailsC×99
0220    SG2Group (×99)C×99
0230    NADName and addressM1
0240    LOCPlace/location identificationC×25
0250    FIIFinancial institution informationC×5
0260    MOAMonetary amountC×99
0270      SG3Group (×9999)C×9999
0280      RFFReferenceM1
0290      DTMDate/time/periodC×5
0300        SG4Group (×5)C×5
0310        DOCDocument/message detailsM1
0320        DTMDate/time/periodC×5
0330          SG5Group (×5)C×5
0340          CTAContact informationM1
0350          COMCommunication contactC×5
0360            SG6Group (×5)C×5
0370            TAXDuty/tax/fee detailsM1
0380            MOAMonetary amountC1
0390            LOCPlace/location identificationC×5
0400              SG7Group (×99)C×99
0410              CUXCurrenciesM1
0420              DTMDate/time/periodC×5
0430                SG8Group (×10)C×10
0450                DTMDate/time/periodC×5
0460                PCDPercentage detailsC1
0470                MOAMonetary amountC1
0480                PAIPayment instructionsC1
0490                FIIFinancial institution informationC1
0500                  SG9Group (×10)C×10
0510                  TDTDetails of transportM1
0520                  TSRTransport service requirementsC1
0530                    SG10Group (×10)C×10
0540                    LOCPlace/location identificationM1
0550                    DTMDate/time/periodC×5
0560                      SG11Group (×9999)C×9999
0570                      RFFReferenceM1
0580                      DTMDate/time/periodC×5
0590                        SG12Group (×5)C×5
0600                        TODTerms of delivery or transportM1
0610                        LOCPlace/location identificationC×2
0620                          SG13Group (×99)C×99
0630                          EQDEquipment detailsM1
0640                          SELSeal numberC×9
0650                            SG14Group (×1000)C×1000
0660                            PACPackageM1
0670                            MEAMeasurementsC×5
0680                            EQDEquipment detailsC1
0690                              SG15Group (×5)C×5
0700                              PCIPackage identificationM1
0710                              RFFReferenceC1
0720                              DTMDate/time/periodC×5
0730                              GINGoods identity numberC×5
0740                                SG16Group (×9999)C×9999
0750                                ALCAllowance or chargeM1
0760                                ALIAdditional informationC×5
0770                                FTXFree textC1
0780                                  SG17Group (×5)C×5
0790                                  RFFReferenceM1
0800                                  DTMDate/time/periodC×5
0810                                    SG18Group (×1)C1
0820                                    QTYQuantityM1
0830                                    RNGRange detailsC1
0840                                      SG19Group (×1)C1
0850                                      PCDPercentage detailsM1
0860                                      RNGRange detailsC1
0870                                        SG20Group (×2)C×2
0880                                        MOAMonetary amountM1
0890                                        RNGRange detailsC1
0900                                        CUXCurrenciesC1
0910                                        DTMDate/time/periodC1
0920                                          SG21Group (×1)C1
0930                                          RTERate detailsM1
0940                                          RNGRange detailsC1
0950                                            SG22Group (×5)C×5
0960                                            TAXDuty/tax/fee detailsM1
0970                                            MOAMonetary amountC1
0980                                              SG23Group (×100)C×100
0990                                              RCSRequirements and conditionsM1
1000                                              RFFReferenceC×5
1010                                              DTMDate/time/periodC×5
1020                                              FTXFree textC×5
1030                                                SG24Group (×1)C1
1040                                                AJTAdjustment detailsM1
1050                                                FTXFree textC×5
1060                                                  SG25Group (×1)C1
1070                                                  INPParties and instructionM1
1080                                                  FTXFree textC×5

Detail

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

Summary

Pos.TagNameSRep.
2160UNSSection controlM1
2170CNTControl totalC×10
2180  SG50Group (×100)M×100
2190  MOAMonetary amountM1
2200    SG51Group (×1)C1
2210    RFFReferenceM1
2220    DTMDate/time/periodC×5
2230      SG52Group (×10)C×10
2240      TAXDuty/tax/fee detailsM1
2250      MOAMonetary amountC×2
2260        SG53Group (×15)C×15
2270        ALCAllowance or chargeM1
2280        ALIAdditional informationC1
2290        MOAMonetary amountC×2
2300        FTXFree textC1
2310UNTMessage trailerM1

Changes vs D.96A

Top-level differences between D.96A and D.99B 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

  • 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 ×10) — 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 M, repeat ×1) — not present at the top of the corresponding D.96A section.
  • SEL in the header section (status C, repeat ×9) — 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.
  • FII in the detail section (status C, repeat ×5) — 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.

Segments removed vs D.96A

  • PAT in the header section — present in D.96A but missing in D.99B at the same level.
  • PAT in the detail section — present in D.96A but missing in D.99B at the same level.

Status changes (M ↔ C)

  • QTY (header): status M in D.96A → C in D.99B.
  • RTE (header): status M in D.96A → C in D.99B.

Max-repeat changes

  • FTX (header): repeat ×10 in D.96A → ×99 in D.99B.
  • LOC (header): repeat ×25 in D.96A → ×10 in D.99B.
  • QTY (header): repeat ×1 in D.96A → ×2 in D.99B.
  • MOA (header): repeat ×1 in D.96A → ×2 in D.99B.
  • RTE (header): repeat ×1 in D.96A → ×99 in D.99B.
  • IMD (detail): repeat ×10 in D.96A → ×99 in D.99B.
  • FTX (detail): repeat ×5 in D.96A → ×99 in D.99B.

Structural example

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

edifact invoic-d99b-example.edi
UNB+UNOC:3+5410000000123:14+5410000000456:14+260514:1430+CTRL099001'
UNH+1+INVOIC:D:99B: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+CTRL099001'

Common errors

  • Misaligned UNH tokens — The UNH+...+INVOIC:D:99B: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.99B, 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.97A, 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