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.
GESMES D.13B

GESMES — EDIFACT Generic Statistical Message (D.13B)

The GESMES message is the generic carrier of statistical series between statistical offices, central banks and international bodies (ECB, Eurostat, BIS, IMF): it transports structured time-series with their dimensions, codes and values, without presupposing any business domain — a cross-domain vehicle that preceded SDMX. This page summarises the segment structure as published by UN/CEFACT for directory D.13B.

Purpose

The GESMES message is the generic carrier of statistical series between statistical offices, central banks and international bodies (ECB, Eurostat, BIS, IMF): it transports structured time-series with their dimensions, codes and values, without presupposing any business domain — a cross-domain vehicle that preceded SDMX.

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

Segment structure

The GESMES D.13B message has 88 header entries, 0 detail entries and 0 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 messageC1
00030DTMDate/time/periodC×9
00040  SG1Group (×9999)C×9999
00050  FNTFootnoteM1
00060  FTXFree textC×9999
00070    SG2Group (×9)C×9
00080    NADName and addressM1
00090    IDEIdentityC1
00100      SG3Group (×5)C×5
00110      CTAContact informationM1
00120      COMCommunication contactC×5
00130        SG4Group (×99)C×99
00140        VLIValue list identificationM1
00150        DTMDate/time/periodC×9999
00160        FTXFree textC×9999
00170          SG5Group (×9)C×9
00180          IDEIdentityM1
00190          DTMDate/time/periodC×9
00200            SG6Group (×5)C×5
00210            GIRRelated identification numbersM1
00220            DTMDate/time/periodC×2
00230              SG7Group (×9999)C×9999
00240              CDVCode value definitionM1
00250              FTXFree textC×999
00260                SG8Group (×9)C×9
00270                IDEIdentityM1
00280                DTMDate/time/periodC×9
00290                  SG9Group (×999)C×999
00300                  STCStatistical conceptM1
00310                  FTXFree textC×5
00320                  IDEIdentityC×5
00330                    SG10Group (×9999)C×9999
00340                    ASIArray structure identificationM1
00350                    GEIProcessing informationC×5
00360                    FTXFree textC×9
00370                    IDEIdentityC×5
00380                      SG11Group (×999)C×999
00390                      SCDStructure component definitionM1
00400                      ATTAttributeC×99
00410                        SG12Group (×9999)C×9999
00420                        IDEIdentityM1
00430                        ATTAttributeC×99
00440                        DTMDate/time/periodC×2
00450                          SG13Group (×999)C×999
00460                          DSIData set identificationM1
00470                          STSStatusC×9
00480                          DTMDate/time/periodC×5
00490                          FTXFree textC×5
00500                          GIRRelated identification numbersC×2
00510                            SG14Group (×99)C×99
00520                            IDEIdentityM1
00530                            GEIProcessing informationC×5
00540                            DTMDate/time/periodC×5
00550                              SG15Group (×999)C×999
00560                              CDVCode value definitionM1
00570                              FTXFree textC×99
00580                                SG16Group (×999)C×999
00590                                SCDStructure component definitionM1
00600                                ATTAttributeC×9
00610                                DTMDate/time/periodC×9999
00620                                  SG17Group (×9999)C×9999
00630                                  CDVCode value definitionM1
00640                                  FTXFree textC×99
00650                                  ARRArray informationC×999999
00660                                    SG18Group (×5)C×5
00670                                    NADName and addressM1
00680                                    IDEIdentityC1
00690                                      SG19Group (×5)C×5
00700                                      CTAContact informationM1
00710                                      COMCommunication contactC×5
00720                                        SG20Group (×999)C×999
00730                                        FNSFootnote setM1
00740                                          SG21Group (×9999)C×9999
00750                                          RELRelationshipM1
00760                                            SG22Group (×9999)C×9999
00770                                            ARRArray informationM1
00780                                            FTXFree textC×9999
00790                                              SG23Group (×9999)C×9999
00800                                              IDEIdentityM1
00810                                              FTXFree textC×9999
00820                                                SG24Group (×9999)C×9999
00830                                                CDVCode value definitionM1
00840                                                FTXFree textC×9999
00850                                                  SG25Group (×9999)C×9999
00860                                                  FNTFootnoteM1
00870                                                  FTXFree textC×9999
00880UNTMessage trailerM1

Detail

No segment in this section.

Summary

No segment in this section.

Changes vs D.96A

Top-level differences between D.96A and D.13B for the GESMES 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 ×5) — not present at the top of the corresponding D.96A section.

Segments removed vs D.96A

  • GIS in the header section — present in D.96A but missing in D.13B at the same level.

Max-repeat changes

  • ARR (header): repeat ×9999 in D.96A → ×999999 in D.13B.

Structural example

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

edifact gesmes-d13b-example.edi
UNB+UNOC:3+5410000000123:14+5410000000456:14+260514:1430+CTRL013001'
UNH+1+GESMES:D:13B:UN'
BGM+14+GESMES-2026-Q1-FR+9'
DTM+137:20260514:102'
DTM+9:20260331:102'
BUS++17'
RFF+SRS:EUROSTAT-DS-2026-CPI'
UNT+7+1'
UNZ+1+CTRL013001'

Common errors

  • Misaligned UNH tokens — The UNH+...+GESMES:D:13B: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.13B, 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: GESMES D.96A, GESMES D.01B, GESMES D.10A, GESMES D.16B, GESMES D.21B, GESMES D.24A, GESMES D.97A, GESMES D.99B, GESMES D.00B, GESMES D.02B, GESMES D.05A, GESMES D.08A, GESMES D.18B, GESMES D.20B.

← All EDIFACT versions