Skip to main content

EDIFACT: INVOIC (D.01B) Invoice

This article provides an overview of the EDIFACT INVOIC D.01B message, covering its purpose, message structure, required segments, and segment groups used to transmit invoice data between trading partners.

L
Written by Lorilei Nash

Product/Topic: EDIFACT - INVOIC (D.01B)


The EDIFACT INVOIC (D.01B) is a United Nations (UN) standard Electronic Data Interchange (EDI) message used to claim payment for goods or services supplied between a seller and a buyer. It communicates financial, commercial, tax, payment, and line-item details required by trading partners for billing and financial settlement processes.

Understanding the structure of the INVOIC message is important when configuring, mapping, or troubleshooting invoice transactions within your Electronic Data Interchange (EDI) setup. The INVOIC (D.01B) supports standard invoices, credit notes, and debit notes, and facilitates billing, accounts payable, accounts receivable, taxation, and financial reconciliation processes between trading partners.


Transaction Overview


Field

Value

Standard

EDIFACT

Message Type

INVOIC

Version

D.01B

Agency

UN (United Nations)

Purpose

Invoice


Message Structure


The INVOIC message is divided into three primary sections: Header, Detail, and Summary.

Header Section

Contains invoice identification, dates, party information, references, currencies, payment terms, transportation, delivery terms, and tax information. This section establishes the full context of the invoice transaction.

Detail Section

Contains individual invoice line-item information — the specific goods or services being invoiced, including products, quantities, pricing, allowances, charges, taxes, and packaging details.

Summary Section

Contains invoice totals, taxes, allowances, charges, and control totals that close out and validate the invoice.


Required Segments


The following segments are required in every INVOIC (D.01B) message.

Segment

Description

UNH

  • Message Header — identifies the message as INVOIC D.01B UN.

  • Required composite S009 values

    • 0065 = INVOIC

    • 0052 = D

    • 0054 = 01B

    • 0051 = UN

BGM

Beginning of Message — specifies the invoice document type, invoice number, and message function

DTM

Date/Time/Period — provides invoice dates and other significant dates such as shipment or delivery dates

UNS

Section Control — separates the Detail section from the Summary section and prevents segment collisions

UNT

Message Trailer — ends the INVOIC transaction, provides the total segment count, and ensures message integrity


Header Segments


The segments in the following table appear in the Header section and provide supporting information about the invoice.

Segment

Description

PAI

Payment Instructions — communicates payment methods, guarantees, and payment processing instructions

ALI

Additional Information — provides commercial or customs-related information affecting the invoice

IMD

Item Description — provides descriptions applicable to all invoice line items

FTX

Free Text — communicates additional information that cannot be represented in structured segments

LOC

Place/Location Identification — identifies locations relevant to the invoice transaction

GIS

General Indicator — specifies processing indicators associated with the invoice

DGS

Dangerous Goods — provides dangerous goods information applicable to the invoice

GIR

Related Identification Numbers — communicates identification numbers common to invoice items


Segment Groups


Segment Groups (SG) are logical groupings of related segments within the INVOIC (D.01B) message.

Segment Group

Name

Key Segments

SG1

References

RFF, DTM, GIR, LOC, MEA, QTY, FTX, MOA, RTE

SG2

Parties

NAD, LOC, FII, MOA

SG3

Party References

RFF, DTM

SG4

Related Documents

DOC, DTM

SG5

Contacts

CTA, COM

SG6

Tax Information

TAX, MOA, LOC

SG7

Currency Information

CUX, DTM

SG8

Payment Terms

PAT, DTM, PCD, MOA, PAI, FII

SG9

Transportation Information

TDT, TSR

SG10

Transport Locations

LOC, DTM

SG11

Transport References

RFF, DTM

SG12

Delivery Terms

TOD, LOC

SG13

Equipment Information

EQD, SEL

SG14

Packaging Information

PAC, MEA, EQD

SG15

Package Identification

PCI, RFF, DTM, GIN

SG16

Allowances and Charges

ALC, ALI, FTX

SG17

Allowance/Charge References

RFF, DTM

SG18

Allowance/Charge Quantities

QTY, RNG

SG19

Allowance/Charge Percentages

PCD, RNG

SG20

Allowance/Charge Monetary Amounts

MOA, RNG, CUX, DTM

SG21

Allowance/Charge Rates

RTE, RNG

SG22

Allowance/Charge Tax Details

TAX, MOA

SG23

Requirements and Conditions

RCS, RFF, DTM, FTX

SG24

Adjustments

AJT, FTX

SG25

Instructions

INP, FTX


Detail Section — Invoice Line Items (SG26)


The SG26 loop is the primary line-item loop used to communicate invoiced products and services. Each iteration of the LIN segment represents one invoice line item.

Segment

Description

LIN

Line Item — identifies each individual product line being invoiced

PIA

Additional Product Identification — alternate product codes and identifiers

PGI

Product Group Information — product grouping details

IMD

Item Description — free-form or coded description of the item

MEA

Measurements — physical measurements associated with the line item

QTY

Quantity — invoiced quantity for this line item

PCD

Percentage Details — percentage values applicable to the line

ALI

Additional Information — country of origin or other line-level attributes

DTM

Date Information — item-level date information

GIN

Goods Identity Number — serial or batch numbers for goods

GIR

Related Identification Numbers — additional identifiers linked to the line

QVR

Quantity Variances — differences between ordered and invoiced quantities

EQD

Equipment Details — equipment identification associated with the line

FTX

Free Text — item-level notes or instructions

DGS

Dangerous Goods — classification and description of hazardous materials

The following supporting groups appear within the SG26 loop:

Segment Group

Name

Key Segments

SG27

Monetary Amounts

MOA, CUX

SG28

Payment Terms

PAT, DTM, PCD, MOA

SG29

Pricing Information

PRI, CUX, APR, RNG, DTM

SG30

References

RFF, DTM

SG31

Packaging Information

PAC, MEA, EQD

SG32

Package Identification

PCI, RFF, DTM, GIN

SG33

Location Information

LOC, QTY, DTM

SG34

Tax Information

TAX, MOA, LOC

SG35

Party Information

NAD, LOC, FII

SG36

Party References

RFF, DTM

SG37

Related Documents

DOC, DTM

SG38

Contact Information

CTA, COM

SG39

Line-Level Allowances and Charges

ALC, ALI, DTM, FTX

SG40

Allowance/Charge Quantities

QTY, RNG

SG41

Allowance/Charge Percentages

PCD, RNG

SG42

Allowance/Charge Monetary Amounts

MOA, RNG, CUX, DTM

SG43

Allowance/Charge Rates

RTE, RNG

SG44

Allowance/Charge Taxes

TAX, MOA

SG45

Transportation Information

TDT

SG46

Transport Locations

LOC, DTM

SG47

Delivery Terms

TOD, LOC

SG48

Requirements and Conditions

RCS, RFF, DTM, FTX

SG49

General Indicators

GIS, RFF, DTM, GIR, LOC, MEA, QTY, FTX, MOA


Summary Section


The Summary Section closes out the INVOIC message and provides control and totals information:

  • UNS — Separates the Detail section from the Summary section

  • CNT — Provides control totals used for validation and reconciliation

  • SG50 — Communicates invoice summary amounts (Invoice Total, Taxable Amount, Net Amount, Gross Amount, Payable Amount)

  • SG51 — Summary References (RFF, DTM)

  • SG52 — Provides summarized tax information for the invoice (TAX, MOA)

  • SG53 — Communicates invoice-level discounts, charges, and adjustments included in the summary totals (ALC, ALI, MOA, FTX)

  • UNT — Ends the INVOIC transaction, provides the total segment count, and ensures message integrity


Additional Resources


rev. 07/23/26

Did this answer your question?