EDIFACT message guide · Finance

INVOIC Invoice

The UN/EDIFACT message a seller uses to claim payment for goods or services, also used for credit and debit notes.

Sent by
Seller or supplier
Received by
Buyer
Standard
UN/EDIFACT · Batch message
X12 equivalent
810 Invoice

What is the EDIFACT INVOIC message?

INVOIC is the UN/EDIFACT invoice message. The directory defines it as a message claiming payment for goods or services supplied under conditions agreed between the seller and the buyer, and, with the right qualifiers, it also serves as the specification for credit notes and debit notes.

An invoice carries the invoice number and date, the parties and their tax registrations, references to orders and despatches, line items with quantities and prices, allowances and charges, tax breakdowns and totals. In many countries electronic invoices must also meet tax and archiving rules, so INVOIC implementations often involve legal as well as technical requirements.

How the EDIFACT INVOIC message worksDiagram of the UN/EDIFACT INVOIC Invoice message. Seller or supplier sends it to buyer. It usually follows DESADV and RECADV. It is usually followed by REMADV and APERAK. Inside the UNB and UNH envelopes, the directory D.21A requires, in the start of message: BGM (Beginning of message) and DTM (Date/time/period) and body and segment groups: UNS (Section control) and the required SG52 loop with MOA (Monetary amount). 18 conditional segment groups are listed by their trigger segment.How the EDIFACT INVOIC message worksInvoice: who sends it, where it fits and what the directory marks mandatory1 WHERE IT FITSUSUALLY FOLLOWSDESADVDespatch adviceRECADVReceiving adviceINVOICSENDERSeller or supplierRECEIVERBuyerCONTRL syntax report back, if agreedUSUALLY FOLLOWED BYREMADVRemittance adviceAPERAKApplication error andacknowledgement2 WHAT DIRECTORY D.21A REQUIRESInterchange: sender and recipient IDsUNB … UNZMessage INVOICUNH … UNTSTART OF MESSAGEBGMBeginning of messageDTMDate/time/periodBODY AND SEGMENT GROUPSUNSSection controlMandatory group SG52 · repeats up to 100MOAMonetary amount+ 18 conditional groups, starting with:RFFNADTAXCUXPYTTDTTODEQDPACALCRCSAJTINPEFILINBlue box: mandatory segment group. Conditional groups are listed by the trigger segment that starts them; a group is sent only when its data applies.Conditional segments outside groups are not drawn.Structure: mandatory segments and groups in the UN/EDIFACT directory D.21A listing for INVOIC. Your trading partner's implementation guide adds itsown requirements.
How the EDIFACT INVOIC message worksDiagram of the UN/EDIFACT INVOIC Invoice message. Seller or supplier sends it to buyer. It usually follows DESADV and RECADV. It is usually followed by REMADV and APERAK. Inside the UNB and UNH envelopes, the directory D.21A requires, in the start of message: BGM (Beginning of message) and DTM (Date/time/period) and body and segment groups: UNS (Section control) and the required SG52 loop with MOA (Monetary amount). 18 conditional segment groups are listed by their trigger segment.How the EDIFACT INVOICmessage worksInvoice: who sends it, where it fits and whatthe directory marks mandatory1 WHERE IT FITSUSUALLY FOLLOWSDESADVDespatch adviceRECADVReceiving adviceINVOICSENDERSeller orsupplierRECEIVERBuyerCONTRL syntax report back, if agreedUSUALLY FOLLOWED BYREMADVRemittance adviceAPERAKApplication error andacknowledgement2 WHAT DIRECTORY D.21A REQUIRESInterchange: sender and recipient IDs(UNB … UNZ)Message INVOIC (UNH … UNT)START OF MESSAGEBGMBeginning of messageDTMDate/time/periodBODY AND SEGMENT GROUPSUNSSection controlMandatory group SG52 · repeats upto 100MOAMonetary amount+ 18 conditional groups, starting with:RFFNADTAXCUXPYTTDTTODEQDPACALCRCSAJT…Blue box: mandatory segment group. Conditionalgroups are listed by the trigger segment thatstarts them; a group is sent only when its dataapplies. Conditional segments outside groups arenot drawn.Structure: mandatory segments and groups in theUN/EDIFACT directory D.21A listing for INVOIC.Your trading partner's implementation guide adds itsown requirements.

How to read this diagram: the top row shows who sends INVOIC, to whom, and which messages usually come before and after it. The lower part shows what the directory D.21A itself requires: the envelopes around INVOIC and the segments and segment groups it marks mandatory. Conditional groups are listed by their trigger segment rather than drawn in full. This is the directory's minimum, not a trading partner's requirement: a message implementation guide, such as an industry subset or a partner’s own guide, usually makes some conditional groups mandatory, restricts the codes and may use an older directory.

Expand diagram Download SVG

When it is used

  • Invoicing delivered goods or services
  • Issuing credit notes for returns or price corrections
  • Issuing debit notes for additional charges

Where it fits in the message flow

Structure

Mandatory segments in INVOIC (directory D.21A)

In UN/EDIFACT directory D.21A, the INVOIC message has 192 segment positions arranged in 55 segment groups. These are the segments and segment groups marked mandatory at message level, in order; a mandatory group is shown with the segment that starts it. Segments inside conditional groups are needed only when the group is used. This is the directory’s requirement, not your trading partner’s: each partner’s message implementation guide names the directory it uses, often an older one such as D.96A or D.01B where the structure can differ, makes some conditional segments mandatory and restricts the codes.

  • UNH
  • BGM
  • DTM
  • UNS
  • SG52 (MOA)
  • UNT

Practical example

INVOIC in practice

A packaging manufacturer delivers to a food producer in France. After each delivery its ERP sends an INVOIC with the order and despatch references, the lines delivered, unit prices, VAT at the applicable rate and totals. The buyer's accounts payable system matches the invoice to the order and receipt and schedules payment, and the supplier later receives a REMADV.

Implementation

Implementation considerations for INVOIC

  • Check national e-invoicing and VAT rules that apply to the invoice flow.
  • Reference the order and despatch so three-way matching works.
  • Calculate tax per line and in total exactly as the partner validates it.
  • Use the invoice type code to distinguish invoices, credit notes and debit notes.

Need help with INVOIC?

ECOM maps, tests and monitors EDIFACT messages for your trading partners and integrates them with your ERP.