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.
ORDERS D.18B

ORDERS — EDIFACT Purchase Order (D.18B)

The ORDERS message conveys a buyer’s intent to purchase goods or services from a seller under terms agreed upstream. It supports spot orders, call-offs against blanket contracts, and replenishment flows alike. This page summarises the segment structure as published by UN/CEFACT for directory D.18B.

Purpose

The ORDERS message conveys a buyer’s intent to purchase goods or services from a seller under terms agreed upstream. It supports spot orders, call-offs against blanket contracts, and replenishment flows alike.

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

Segment structure

The ORDERS D.18B message has 109 header entries, 139 detail entries and 8 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 descriptionC×999
00070FTXFree textC×99
00080GIRRelated identification numbersC×10
00090  SG1Group (×9999)C×9999
00100  RFFReferenceM1
00110  DTMDate/time/periodC×5
00120    SG2Group (×99)C×99
00130    NADName and addressM1
00140    LOCPlace/location identificationC×99
00150    FIIFinancial institution informationC×5
00160      SG3Group (×99)C×99
00170      RFFReferenceM1
00180      DTMDate/time/periodC×5
00190        SG4Group (×5)C×5
00200        DOCDocument/message detailsM1
00210        DTMDate/time/periodC×5
00220          SG5Group (×5)C×5
00230          CTAContact informationM1
00240          COMCommunication contactC×5
00250            SG6Group (×5)C×5
00260            TAXDuty/tax/fee detailsM1
00270            MOAMonetary amountC1
00280            LOCPlace/location identificationC×9
00290              SG7Group (×5)C×5
00300              CUXCurrenciesM1
00310              PCDPercentage detailsC×5
00320              DTMDate/time/periodC×5
00330                SG8Group (×10)C×10
00340                PYTPayment termsM1
00350                DTMDate/time/periodC×5
00360                PCDPercentage detailsC1
00370                  SG9Group (×9999)C×9999
00380                  MOAMonetary amountM1
00390                  GIRRelated identification numbersC×9
00400                  RJLAccounting journal identificationC×99
00410                    SG10Group (×10)C×10
00420                    TDTTransport informationM1
00430                      SG11Group (×10)C×10
00440                      LOCPlace/location identificationM1
00450                      DTMDate/time/periodC×5
00460                        SG12Group (×5)C×5
00470                        TODTerms of delivery or transportM1
00480                        LOCPlace/location identificationC×2
00490                          SG13Group (×99)C×99
00500                          PACPackageM1
00510                          MEAMeasurementsC×5
00520                            SG14Group (×5)C×5
00530                            PCIPackage identificationM1
00540                            RFFReferenceC1
00550                            DTMDate/time/periodC×5
00560                            GINGoods identity numberC×10
00570                              SG15Group (×10)C×10
00580                              EQDEquipment detailsM1
00590                              HANHandling instructionsC×5
00600                              MEAMeasurementsC×5
00610                              FTXFree textC×5
00620                                SG16Group (×10)C×10
00630                                SCCScheduling conditionsM1
00640                                FTXFree textC×5
00650                                RFFReferenceC×5
00660                                  SG17Group (×10)C×10
00670                                  QTYQuantityM1
00680                                  DTMDate/time/periodC×5
00690                                    SG18Group (×25)C×25
00700                                    APRAdditional price informationM1
00710                                    DTMDate/time/periodC×5
00720                                    RNGRange detailsC1
00730                                      SG19Group (×99)C×99
00740                                      ALCAllowance or chargeM1
00750                                      ALIAdditional informationC×5
00760                                      DTMDate/time/periodC×5
00770                                        SG20Group (×1)C1
00780                                        QTYQuantityM1
00790                                        RNGRange detailsC1
00800                                          SG21Group (×1)C1
00810                                          PCDPercentage detailsM1
00820                                          RNGRange detailsC1
00830                                            SG22Group (×2)C×2
00840                                            MOAMonetary amountM1
00850                                            RNGRange detailsC1
00860                                              SG23Group (×1)C1
00870                                              RTERate detailsM1
00880                                              RNGRange detailsC1
00890                                                SG24Group (×5)C×5
00900                                                TAXDuty/tax/fee detailsM1
00910                                                MOAMonetary amountC1
00920                                                  SG25Group (×999)C×999
00930                                                  RCSRequirements and conditionsM1
00940                                                  RFFReferenceC×5
00950                                                  DTMDate/time/periodC×5
00960                                                  FTXFree textC×99999
00970                                                    SG26Group (×999)C×999
00980                                                    DGSDangerous goodsM1
00990                                                    FTXFree textC×5
01000                                                      SG27Group (×99)C×99
01010                                                      CTAContact informationM1
01020                                                      COMCommunication contactC×5
01030                                                        SG28Group (×99)C×99
01040                                                        EFIExternal file link identificationM1
01050                                                        CEDComputer environment detailsC×99
01060                                                        COMCommunication contactC×9
01070                                                        RFFReferenceC×9
01080                                                        DTMDate/time/periodC×9
01090                                                        QTYQuantityC×9

Detail

Pos.TagNameSRep.
01100  SG29Group (×200000)C×200000
01110  LINLine itemM1
01120  PIAAdditional product idC×25
01130  IMDItem descriptionC×99
01140  MEAMeasurementsC×99
01150  QTYQuantityC×99
01160  PCDPercentage detailsC×5
01170  ALIAdditional informationC×5
01180  DTMDate/time/periodC×35
01190  MOAMonetary amountC×10
01200  GEIProcessing informationC×99
01210  GINGoods identity numberC×1000
01220  GIRRelated identification numbersC×1000
01230  QVRQuantity variancesC1
01240  DOCDocument/message detailsC×99
01250  PAIPayment instructionsC1
01260  MTDMaintenance operation detailsC×99
01270  FTXFree textC×99
01280    SG30Group (×999)C×999
01290    CCICharacteristic/class idM1
01300    CAVCharacteristic valueC×10
01310    MEAMeasurementsC×10
01320      SG31Group (×10)C×10
01330      PYTPayment termsM1
01340      DTMDate/time/periodC×5
01350      PCDPercentage detailsC1
01360        SG32Group (×9999)C×9999
01370        MOAMonetary amountM1
01380        GIRRelated identification numbersC×9
01390          SG33Group (×25)C×25
01400          PRIPrice detailsM1
01410          CUXCurrenciesC1
01420          APRAdditional price informationC×99
01430          RNGRange detailsC1
01440          DTMDate/time/periodC×5
01450            SG34Group (×9999)C×9999
01460            RFFReferenceM1
01470            DTMDate/time/periodC×5
01480            GEIProcessing informationC×99
01490            MOAMonetary amountC×99
01500              SG35Group (×99)C×99
01510              PACPackageM1
01520              MEAMeasurementsC×5
01530              QTYQuantityC×5
01540              DTMDate/time/periodC×5
01550                SG36Group (×1)C1
01560                RFFReferenceM1
01570                DTMDate/time/periodC×5
01580                  SG37Group (×5)C×5
01590                  PCIPackage identificationM1
01600                  RFFReferenceC1
01610                  DTMDate/time/periodC×5
01620                  GINGoods identity numberC×10
01630                    SG38Group (×9999)C×9999
01640                    LOCPlace/location identificationM1
01650                    PCDPercentage detailsC1
01660                    DTMDate/time/periodC×5
01670                      SG39Group (×99)C×99
01680                      QTYQuantityM1
01690                      STSStatusC×99
01700                        SG40Group (×10)C×10
01710                        TAXDuty/tax/fee detailsM1
01720                        MOAMonetary amountC1
01730                        LOCPlace/location identificationC×5
01740                          SG41Group (×999)C×999
01750                          NADName and addressM1
01760                          LOCPlace/location identificationC×5
01770                          FIIFinancial institution informationC×5
01780                            SG42Group (×99)C×99
01790                            RFFReferenceM1
01800                            DTMDate/time/periodC×5
01810                              SG43Group (×5)C×5
01820                              DOCDocument/message detailsM1
01830                              DTMDate/time/periodC×5
01840                                SG44Group (×5)C×5
01850                                CTAContact informationM1
01860                                COMCommunication contactC×5
01870                                  SG45Group (×99)C×99
01880                                  ALCAllowance or chargeM1
01890                                  ALIAdditional informationC×5
01900                                  DTMDate/time/periodC×5
01910                                    SG46Group (×1)C1
01920                                    QTYQuantityM1
01930                                    RNGRange detailsC1
01940                                      SG47Group (×1)C1
01950                                      PCDPercentage detailsM1
01960                                      RNGRange detailsC1
01970                                        SG48Group (×2)C×2
01980                                        MOAMonetary amountM1
01990                                        RNGRange detailsC1
02000                                          SG49Group (×1)C1
02010                                          RTERate detailsM1
02020                                          RNGRange detailsC1
02030                                            SG50Group (×5)C×5
02040                                            TAXDuty/tax/fee detailsM1
02050                                            MOAMonetary amountC1
02060                                              SG51Group (×10)C×10
02070                                              TDTTransport informationM1
02080                                                SG52Group (×10)C×10
02090                                                LOCPlace/location identificationM1
02100                                                DTMDate/time/periodC×5
02110                                                  SG53Group (×5)C×5
02120                                                  TODTerms of delivery or transportM1
02130                                                  LOCPlace/location identificationC×2
02140                                                    SG54Group (×10)C×10
02150                                                    EQDEquipment detailsM1
02160                                                    HANHandling instructionsC×5
02170                                                    MEAMeasurementsC×5
02180                                                    FTXFree textC×5
02190                                                      SG55Group (×100)C×100
02200                                                      SCCScheduling conditionsM1
02210                                                      FTXFree textC×5
02220                                                      RFFReferenceC×5
02230                                                        SG56Group (×10)C×10
02240                                                        QTYQuantityM1
02250                                                        DTMDate/time/periodC×5
02260                                                          SG57Group (×999)C×999
02270                                                          RCSRequirements and conditionsM1
02280                                                          RFFReferenceC×5
02290                                                          DTMDate/time/periodC×5
02300                                                          FTXFree textC×99999
02310                                                            SG58Group (×10)C×10
02320                                                            STGStagesM1
02330                                                              SG59Group (×3)C×3
02340                                                              QTYQuantityM1
02350                                                              MOAMonetary amountC1
02360                                                                SG60Group (×999)C×999
02370                                                                DGSDangerous goodsM1
02380                                                                FTXFree textC×5
02390                                                                  SG61Group (×99)C×99
02400                                                                  CTAContact informationM1
02410                                                                  COMCommunication contactC×5
02420                                                                    SG62Group (×99)C×99
02430                                                                    EFIExternal file link identificationM1
02440                                                                    CEDComputer environment detailsC×99
02450                                                                    COMCommunication contactC×99
02460                                                                    RFFReferenceC×9
02470                                                                    DTMDate/time/periodC×9
02480                                                                    QTYQuantityC×9

Summary

Pos.TagNameSRep.
02490UNSSection controlM1
02500MOAMonetary amountC×99
02510CNTControl totalC×10
02520  SG63Group (×10)C×10
02530  ALCAllowance or chargeM1
02540  ALIAdditional informationC1
02550  MOAMonetary amountM×2
02560UNTMessage trailerM1

Changes vs D.96A

Top-level differences between D.96A and D.18B for the ORDERS 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

  • 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.
  • RJL in the header section (status C, repeat ×99) — not present at the top of the corresponding D.96A section.
  • DGS in the header section (status M, repeat ×1) — 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.
  • GEI in the detail section (status C, repeat ×99) — not present at the top of the corresponding D.96A section.
  • MTD in the detail section (status C, repeat ×99) — 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.
  • STS in the detail section (status C, repeat ×99) — 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.
  • DGS 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.

Segments removed vs D.96A

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

Max-repeat changes

  • IMD (header): repeat ×1 in D.96A → ×999 in D.18B.
  • LOC (header): repeat ×25 in D.96A → ×99 in D.18B.
  • MEA (detail): repeat ×5 in D.96A → ×99 in D.18B.
  • QTY (detail): repeat ×10 in D.96A → ×99 in D.18B.
  • DOC (detail): repeat ×5 in D.96A → ×99 in D.18B.
  • APR (detail): repeat ×1 in D.96A → ×99 in D.18B.
  • MOA (summary): repeat ×12 in D.96A → ×99 in D.18B.

Structural example

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

edifact orders-d18b-example.edi
UNB+UNOC:3+5410000000123:14+5410000000456:14+260514:1430+CTRL018001'
UNH+1+ORDERS:D:18B:UN'
BGM+220+ORDER789+9'
DTM+137:20260514:102'
DTM+2:20260520:102'
NAD+BY+5410000000123::9'
NAD+SU+5410000000456::9'
LIN+1++3520000001234:EN'
QTY+21:10'
PRI+AAA:42.00'
UNS+S'
CNT+2:1'
UNT+11+1'
UNZ+1+CTRL018001'

Common errors

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

X12 functional equivalent: X12 850.

← All EDIFACT versions