Skip to main content

EDIFACT: INVOIC (D.96A) Invoice

This article provides an overview of the EDIFACT INVOIC D.96A 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.964)


The EDIFACT INVOIC (D.96A) is a United Nations (UN) standard Electronic Data Interchange (EDI) message used to transmit invoice information from a supplier to a buyer. It communicates details for goods or services supplied, including party information, payment terms, tax details, line item information, monetary totals, and settlement information.

Understanding the structure of the INVOIC message is important when configuring, mapping, or troubleshooting invoice transactions within your EDI setup. The INVOIC supports billing, payment processing, tax reporting, and reconciliation activities between trading partners.


Transaction Overview


Field

Value

Standard

EDIFACT

Message Type

INVOIC

Version

D.96A

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, references, parties, payment information, and tax information. This section establishes the context of the entire invoice transaction.

Detail Section

Contains individual invoice line-item information — the specific goods or services being invoiced, including quantities, pricing, and item descriptions.

Summary Section

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


Required Segments


The following segments are required in every INVOIC (D.96A) message.

Segment

Description

UNH

Message Header — identifies the message as INVOIC D.96A UN

BGM

Beginning of Message — includes invoice number, type, and function

DTM

Date/Time/Period — invoice, shipment, or delivery dates

UNS

Section Control — separates the Detail and Summary sections

MOA (SG48)

Monetary Amount — invoice monetary totals

UNT

Message Trailer — closes the transaction and verifies segment count


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

ALI

Additional Commercial Information

IMD

Common Item Description

FTX

Free Text Notes


Segment Groups


Segment Groups (SG) are logical groupings of related segments.

The INVOIC (D.96A) uses the Segment Groups in the following table.

Segment Group

Name

Key Segments

SG1

References

RFF, DTM

SG2

Parties

NAD, LOC, FII

SG6

Tax Information

TAX, MOA, LOC

SG7

Currency Information

CUX, DTM

SG8

Payment Terms

PAT, DTM, PCD, MOA

SG9

Transportation Information

TDT

SG13

Packaging Information

PAC, MEA

SG15

Allowances and Charges

ALC

SG25

Invoice Line Items

LIN loop


Detail Section — Invoice Line Items (SG25)


The SG25 loop contains the individual line item details of the invoice. Each line includes the content in the following table.

Segment

Description

LIN

Line Item identifier

PIA

Additional Product Identification

IMD

Item Description

QTY

Quantities

PRI

Pricing (via SG28)

TAX

Tax Details

RFF

References

PAC

Packaging Information


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 for the message

  • SG48 — Provides invoice monetary totals

  • SG50 — Provides tax totals

  • SG51 — Provides allowances and charges totals

  • UNT — Closes the transaction and verifies segment count


Additional Resources


rev. 07/22/26

Did this answer your question?