← All messages  /  INVOIC
INVOIC

Invoice

D01B

What is the INVOIC message used for?

  • The INVOIC page serves as an instant reference for systems analysts, developers, and EDI operations teams.
  • It brings together the message business role, associated segment breakdown, and a live example in one place.
  • Highly valuable during trading partner onboarding, mapping verification, incident triage, and technical training.

The INVOIC message represents an electronic invoice. The seller notifies the buyer of the amount due for goods delivered or services rendered. It is among the most frequently exchanged EDIFACT message types across all industries.

Key features

  • Net/gross amounts
  • VAT breakdown (TAX segment)
  • Line item and summary level
  • Payment terms (PAT)
  • Banking details (FII)
Usage scenarios:
All industries — retail, manufacturing, logistics, standard B2B transactions.
Segment Name Mandatory Max Repeat
UNH Message Header Mandatory 1
BGM Beginning of Message Mandatory 1
DTM Date/Time/Period Mandatory 35
PAI Payment instructions Optional 1
ALI Additional information Optional 5
IMD Item Description Optional 99
FTX Free Text Optional 99
LOC Place/Location Identification Mandatory 25
GIS General indicator Mandatory 10
DGS Dangerous goods Optional 1
GIR Related identification numbers Optional 1000
RFF Reference Mandatory 5
MEA Measurements Optional 10
QTY Quantity Mandatory 100
MOA Monetary Amount Mandatory 99
RTE Rate details Mandatory 99
NAD Name and Address Mandatory 1
FII Financial institution information Optional 5
DOC Document/message details Mandatory 1
CTA Contact Information Mandatory 1
COM Communication Contact Optional 5
TAX Duty/Tax/Fee Details Mandatory 1
CUX Currencies Mandatory 1
PAT Payment Terms Basis Mandatory 1
PCD Percentage details Mandatory 99
TDT Transport Information Mandatory 1
TSR Transport service requirements Optional 1
TOD Terms of Delivery or Transport Mandatory 1
EQD Equipment details Mandatory 1
SEL Seal number Optional 9
PAC Package Mandatory 1
PCI Package identification Mandatory 1
GIN Goods Identity Number Optional 1000
ALC Allowance or Charge Mandatory 1
RNG Range details Optional 1
RCS Requirements and conditions Mandatory 1
AJT Adjustment details Mandatory 1
INP Parties to instruction Mandatory 1
LIN Line Item Mandatory 1
PIA Additional Product ID Optional 25
PGI Product group information Optional 99
QVR Quantity variances Optional 1
PRI Price Details Mandatory 1
APR Additional price information Optional 1
UNS Section Control Mandatory 1
CNT Control Total Optional 10
UNT Message Trailer Mandatory 1
INVOIC – Sample message (D01B) Download (.edi) Test in validator
UNA:+.? '
UNB+UNOC:3+SELLER:14+BUYER:14+260310:0900+00002'
UNH+1+INVOIC:D:01B:UN'
BGM+380+INV-2026-0310+9'
DTM+137:20260310:102'
DTM+35:20260410:102'
RFF+ON:ORD-2026-0305'
NAD+SE+9876543210123::9++Supplier GmbH++Berlin+10115+DE'
NAD+BY+1234567890123::9++ACME Kft++Budapest+1051+HU'
CUX+2:EUR:4'
LIN+1++4000862141404:EN'
IMD+F++:::Stainless Steel Bolt M8x30'
QTY+47:1000:PCE'
MOA+79:1250.00'
PRI+AAA:1.25'
TAX+7+VAT+++:::27+S'
UNS+S'
CNT+2:1'
MOA+124:337.50'
MOA+9:1587.50'
UNT+20+1'
UNZ+1+00002'

The sample above can be validated directly in the EDIFACT Validator – Online Syntax Checker.