Message us on WhatsApp
    Back to glossary
    EDI Messages

    INVOIC: the EDI invoice message

    INVOIC is the EDIFACT/EANCOM message for the electronic invoice sent to a retailer. It carries the parties, references to the order and the despatch advice, items, quantities, prices, VAT and totals. In Romania, INVOIC and the ANAF e-Invoice coexist: INVOIC goes to the retailer, the e-Invoice goes to ANAF.

    Full definition

    INVOIC is the EDIFACT message for the electronic invoice, carrying party tax data, items, quantities, prices, VAT and totals. In Romania it coexists with ANAF e-Invoice (UBL 2.1 XML sent via SPV): EDIconnect automatically converts between INVOIC (required by retailers) and e-Invoice (required by ANAF), eliminating double entry.

    What an INVOIC message contains

    An INVOIC repeats the data from the order and the delivery and adds the financial part. The main segments:

    Main segments of an INVOIC message (EANCOM)
    SegmentRole in the message
    UNHMessage header: type (INVOIC) and version.
    BGMBeginning of the document: type (380 = commercial invoice) and the invoice number.
    DTMInvoice date (137) and other relevant dates.
    RFFReferences: the order (ON), the despatch advice (DQ), the party's VAT number (VA).
    NADSupplier (SU), buyer (BY), invoicee (IV) and delivery party (DP).
    CUXThe invoice currency.
    LIN, QTY, PRIThe item (GTIN), the invoiced quantity (47) and the net price.
    MOAAmounts: the line amount (203) and the summary totals (77, 79, 125, 176).
    TAXTax: the VAT and the rate applied.
    UNTEnd of the message.

    Illustrative INVOIC example

    The example is illustrative and simplified: 118 units invoiced, the ones received in the RECADV example, at 4.35 each. The amounts and the VAT rate are illustrative and do not replace the tax rules in force.

    Illustrative example (EANCOM D.96A)
    UNH+1+INVOIC:D:96A:UN:EAN008'
    BGM+380+INV-2026-1234+9'
    DTM+137:20261120:102'
    RFF+ON:PO-2026-0451'
    RFF+DQ:DES-2026-0187'
    NAD+SU+2000001000014::9'
    NAD+BY+2000002000020::9'
    NAD+IV+2000004000042::9'
    NAD+DP+2000003000036::9'
    CUX+2:RON:4'
    LIN+1++5940000000011:SRV'
    QTY+47:118'
    MOA+203:513.30'
    PRI+AAA:4.35'
    UNS+S'
    MOA+77:621.09'
    MOA+79:513.30'
    TAX+7+VAT+++:::21'
    MOA+125:513.30'
    MOA+176:107.79'
    UNT+21+1'

    Where INVOIC sits in the retail flow

    INVOIC closes the commercial flow: ORDERS → ORDRSP → DESADV → RECADV → INVOIC. It is issued after delivery and, as a rule, after the quantities have been confirmed by RECADV.

    • It must refer back to the ORDERS order and the DESADV despatch advice.
    • Prices and quantities must match the order and the receipt.
    • For ANAF, the same invoice is submitted separately as an e-Invoice (UBL 2.1), from the same flow.

    Common mistakes with EDI invoices

    • A wrong VAT number or GLN/ILN for the invoicee.
    • Invoiced quantities that differ from the received ones (RECADV).
    • Totals that do not add up: line amounts, VAT base, VAT and invoice total.
    • A price that differs from the order or the price list.
    • A missing order or despatch advice number, so the invoice cannot be matched automatically.

    INVOIC and e-Invoice: what EDIconnect does

    EDIconnect converts automatically between INVOIC, required by retailers, and the e-Invoice, required by ANAF, with no double entry. You can issue the invoice from the Web EDI portal or from your ERP, and the platform generates the e-Invoice from the INVOIC and submits it to ANAF using the company's digital certificate.

    Frequently asked questions about INVOIC

    What is INVOIC?
    INVOIC is the EDIFACT/EANCOM message for the electronic invoice. It carries the party details, items, quantities, prices, VAT and totals.
    Does INVOIC replace the e-Invoice?
    No. INVOIC is the format retailers require, while the e-Invoice is the tax obligation towards ANAF. They coexist, and EDIconnect generates both from the same flow.
    What references should INVOIC contain?
    Usually the order number (ORDERS) and the despatch advice number (DESADV), plus the location codes of the parties. The exact requirements are in the retailer's specification.
    Why is an EDI invoice rejected?
    Common causes: quantities that differ from the receipt, prices that differ from the order, incorrect totals, a wrong GLN/ILN or VAT number, or missing references.
    How do I issue INVOIC without entering data twice?
    Through ERP integration or the Web EDI portal. EDIconnect converts the document automatically and can generate the e-Invoice from the INVOIC.
    Reviewed by The EDIconnect Team : EDI & Business Operations experts · Last updated: June 13, 2026

    Invoicing retailers through EDI?

    EDIconnect sends INVOIC to the retailer and generates the e-Invoice for ANAF from the same flow, with no double entry.

    Last updated: November 2026. The example is illustrative and simplified; mandatory segments and codes differ from one retailer to another, so follow the partner's implementation guide.