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

INVOIC — EDIFACT Invoice (D.16B)

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

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.16B. 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.16B message has 115 header entries, 116 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.
00010UNHMessage headerM1
00020BGMBeginning of messageM1
00030DTMDate/time/periodM×35
00040PAIPayment instructionsC1
00050ALIAdditional informationC×5
00060IMDItem descriptionC1
00070FTXFree textC×99
00080LOCPlace/location identificationC×10
00090GEIProcessing informationC×10
00100DGSDangerous goodsC1
00110GIRRelated identification numbersC×10
00120  SG1Group (×99999)C×99999
00130  RFFReferenceM1
00140  DTMDate/time/periodC×5
00150  GIRRelated identification numbersC×5
00160  LOCPlace/location identificationC×2
00170  MEAMeasurementsC×5
00180  QTYQuantityC×2
00190  FTXFree textC×5
00200  MOAMonetary amountC×2
00210  RTERate detailsC×99
00220    SG2Group (×99)C×99
00230    NADName and addressM1
00240    LOCPlace/location identificationC×25
00250    FIIFinancial institution informationC×5
00260    MOAMonetary amountC×99
00270      SG3Group (×9999)C×9999
00280      RFFReferenceM1
00290      DTMDate/time/periodC×5
00300        SG4Group (×5)C×5
00310        DOCDocument/message detailsM1
00320        DTMDate/time/periodC×5
00330          SG5Group (×5)C×5
00340          CTAContact informationM1
00350          COMCommunication contactC×5
00360            SG6Group (×5)C×5
00370            TAXDuty/tax/fee detailsM1
00380            MOAMonetary amountC1
00390            LOCPlace/location identificationC×5
00400              SG7Group (×99)C×99
00410              CUXCurrenciesM1
00420              DTMDate/time/periodC×5
00430                SG8Group (×10)C×10
00440                PYTPayment termsM1
00450                DTMDate/time/periodC×5
00460                PCDPercentage detailsC1
00470                MOAMonetary amountC1
00480                PAIPayment instructionsC1
00490                FIIFinancial institution informationC1
00500                  SG9Group (×10)C×10
00510                  TDTTransport informationM1
00520                  TSRTransport service requirementsC1
00530                    SG10Group (×10)C×10
00540                    LOCPlace/location identificationM1
00550                    DTMDate/time/periodC×5
00560                      SG11Group (×9999)C×9999
00570                      RFFReferenceM1
00580                      DTMDate/time/periodC×5
00590                        SG12Group (×5)C×5
00600                        TODTerms of delivery or transportM1
00610                        LOCPlace/location identificationC×2
00620                          SG13Group (×99)C×99
00630                          EQDEquipment detailsM1
00640                          SELSeal numberC×9
00650                            SG14Group (×1000)C×1000
00660                            PACPackageM1
00670                            MEAMeasurementsC×5
00680                            EQDEquipment detailsC1
00690                              SG15Group (×5)C×5
00700                              PCIPackage identificationM1
00710                              RFFReferenceC1
00720                              DTMDate/time/periodC×5
00730                              GINGoods identity numberC×5
00740                                SG16Group (×9999)C×9999
00750                                ALCAllowance or chargeM1
00760                                ALIAdditional informationC×5
00770                                FTXFree textC1
00780                                  SG17Group (×5)C×5
00790                                  RFFReferenceM1
00800                                  DTMDate/time/periodC×5
00810                                    SG18Group (×1)C1
00820                                    QTYQuantityM1
00830                                    RNGRange detailsC1
00840                                      SG19Group (×1)C1
00850                                      PCDPercentage detailsM1
00860                                      RNGRange detailsC1
00870                                        SG20Group (×2)C×2
00880                                        MOAMonetary amountM1
00890                                        RNGRange detailsC1
00900                                        CUXCurrenciesC1
00910                                        DTMDate/time/periodC1
00920                                          SG21Group (×1)C1
00930                                          RTERate detailsM1
00940                                          RNGRange detailsC1
00950                                            SG22Group (×5)C×5
00960                                            TAXDuty/tax/fee detailsM1
00970                                            MOAMonetary amountC1
00980                                              SG23Group (×100)C×100
00990                                              RCSRequirements and conditionsM1
01000                                              RFFReferenceC×5
01010                                              DTMDate/time/periodC×5
01020                                              FTXFree textC×5
01030                                                SG24Group (×1)C1
01040                                                AJTAdjustment detailsM1
01050                                                FTXFree textC×5
01060                                                  SG25Group (×1)C1
01070                                                  INPParties and instructionM1
01080                                                  FTXFree textC×5
01090                                                    SG26Group (×99)C×99
01100                                                    EFIExternal file link identificationM1
01110                                                    CEDComputer environment detailsC×99
01120                                                    COMCommunication contactC×9
01130                                                    RFFReferenceC×9
01140                                                    DTMDate/time/periodC×9
01150                                                    QTYQuantityC×9

Detail

Pos.TagNameSRep.
01160  SG27Group (×9999999)C×9999999
01170  LINLine itemM1
01180  PIAAdditional product idC×25
01190  PGIProduct group informationC×99
01200  IMDItem descriptionC×99
01210  MEAMeasurementsC×5
01220  QTYQuantityC×5
01230  PCDPercentage detailsC1
01240  ALIAdditional informationC×5
01250  DTMDate/time/periodC×35
01260  GINGoods identity numberC×1000
01270  GIRRelated identification numbersC×1000
01280  QVRQuantity variancesC1
01290  EQDEquipment detailsC1
01300  FTXFree textC×99
01310  DGSDangerous goodsC1
01320    SG28Group (×99)C×99
01330    MOAMonetary amountM1
01340    CUXCurrenciesC1
01350      SG29Group (×10)C×10
01360      PYTPayment termsM1
01370      DTMDate/time/periodC×5
01380      PCDPercentage detailsC×99
01390      MOAMonetary amountC1
01400        SG30Group (×25)C×25
01410        PRIPrice detailsM1
01420        CUXCurrenciesC1
01430        APRAdditional price informationC1
01440        RNGRange detailsC1
01450        DTMDate/time/periodC×5
01460          SG31Group (×10)C×10
01470          RFFReferenceM1
01480          DTMDate/time/periodC×5
01490            SG32Group (×999)C×999
01500            PACPackageM1
01510            MEAMeasurementsC×10
01520            EQDEquipment detailsC1
01530              SG33Group (×10)C×10
01540              PCIPackage identificationM1
01550              RFFReferenceC1
01560              DTMDate/time/periodC×5
01570              GINGoods identity numberC×10
01580                SG34Group (×9999)C×9999
01590                LOCPlace/location identificationM1
01600                QTYQuantityC×100
01610                DTMDate/time/periodC×5
01620                  SG35Group (×99)C×99
01630                  TAXDuty/tax/fee detailsM1
01640                  MOAMonetary amountC×2
01650                  LOCPlace/location identificationC×5
01660                    SG36Group (×99)C×99
01670                    NADName and addressM1
01680                    LOCPlace/location identificationC×5
01690                    FIIFinancial institution informationC×5
01700                      SG37Group (×5)C×5
01710                      RFFReferenceM1
01720                      DTMDate/time/periodC×5
01730                        SG38Group (×5)C×5
01740                        DOCDocument/message detailsM1
01750                        DTMDate/time/periodC×5
01760                          SG39Group (×5)C×5
01770                          CTAContact informationM1
01780                          COMCommunication contactC×5
01790                            SG40Group (×30)C×30
01800                            ALCAllowance or chargeM1
01810                            ALIAdditional informationC×5
01820                            DTMDate/time/periodC×5
01830                            FTXFree textC1
01840                              SG41Group (×1)C1
01850                              QTYQuantityM1
01860                              RNGRange detailsC1
01870                                SG42Group (×1)C1
01880                                PCDPercentage detailsM1
01890                                RNGRange detailsC1
01900                                  SG43Group (×2)C×2
01910                                  MOAMonetary amountM1
01920                                  RNGRange detailsC1
01930                                  CUXCurrenciesC1
01940                                  DTMDate/time/periodC1
01950                                    SG44Group (×1)C1
01960                                    RTERate detailsM1
01970                                    RNGRange detailsC1
01980                                      SG45Group (×5)C×5
01990                                      TAXDuty/tax/fee detailsM1
02000                                      MOAMonetary amountC×2
02010                                        SG46Group (×10)C×10
02020                                        TDTTransport informationM1
02030                                          SG47Group (×10)C×10
02040                                          LOCPlace/location identificationM1
02050                                          DTMDate/time/periodC×5
02060                                            SG48Group (×5)C×5
02070                                            TODTerms of delivery or transportM1
02080                                            LOCPlace/location identificationC×2
02090                                              SG49Group (×100)C×100
02100                                              RCSRequirements and conditionsM1
02110                                              RFFReferenceC×5
02120                                              DTMDate/time/periodC×5
02130                                              FTXFree textC×5
02140                                                SG50Group (×999)C×999
02150                                                GEIProcessing informationM1
02160                                                RFFReferenceC×9
02170                                                IMDItem descriptionC×99
02180                                                DTMDate/time/periodC×5
02190                                                GIRRelated identification numbersC×5
02200                                                LOCPlace/location identificationC×2
02210                                                MEAMeasurementsC×5
02220                                                QTYQuantityC×9
02230                                                FTXFree textC×5
02240                                                MOAMonetary amountC×2
02250                                                  SG51Group (×99)C×99
02260                                                  EFIExternal file link identificationM1
02270                                                  CEDComputer environment detailsC×99
02280                                                  COMCommunication contactC×9
02290                                                  RFFReferenceC×9
02300                                                  DTMDate/time/periodC×9
02310                                                  QTYQuantityC×9

Summary

Pos.TagNameSRep.
02320UNSSection controlM1
02330CNTControl totalC×10
02340  SG52Group (×100)M×100
02350  MOAMonetary amountM1
02360    SG53Group (×1)C1
02370    RFFReferenceM1
02380    DTMDate/time/periodC×5
02390      SG54Group (×10)C×10
02400      TAXDuty/tax/fee detailsM1
02410      MOAMonetary amountC×9
02420        SG55Group (×15)C×15
02430        ALCAllowance or chargeM1
02440        ALIAdditional informationC1
02450        MOAMonetary amountC×2
02460        FTXFree textC1
02470UNTMessage trailerM1

Changes vs D.96A

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

  • GEI 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 ×10) — not present at the top of the corresponding D.96A section.
  • PYT in the header section (status M, repeat ×1) — 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.
  • EFI in the header section (status M, repeat ×1) — not present at the top of the corresponding D.96A section.
  • CED in the header section (status C, repeat ×99) — not present at the top of the corresponding D.96A section.
  • PGI in the detail section (status C, repeat ×99) — 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.
  • PYT in the detail section (status M, 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.
  • GEI in the detail section (status M, repeat ×1) — not present at the top of the corresponding D.96A section.
  • EFI in the detail section (status M, repeat ×1) — not present at the top of the corresponding D.96A section.
  • CED in the detail section (status C, repeat ×99) — 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.16B at the same level.
  • PAT in the detail section — present in D.96A but missing in D.16B at the same level.

Status changes (M ↔ C)

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

Max-repeat changes

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

Structural example

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

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

Common errors

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