EDI Invoice Examples: EDIFACT INVOIC & X12 810

Electronic invoices are among the most common EDI documents exchanged between trading partners. Below are complete invoice examples in both EDIFACT (INVOIC) and ANSI X12 (810) formats, with detailed segment explanations.

EDIFACT INVOIC Example

This EDIFACT INVOIC message represents a commercial invoice from ABC Electronics to XYZ Retail, billing for 50 laptops, 100 mice, and 75 USB hubs with tax calculations:

EDIFACT INVOIC - Commercial Invoice
UNB+UNOA:2+SUPPLIER:ZZ+BUYER:ZZ+240215:1000+789456'
UNH+1+INVOIC:D:96A:UN'
BGM+380+INV-2024-00789+9'
DTM+137:20240215:102'
DTM+35:20240315:102'
RFF+ON:PO-2024-00456'
RFF+DQ:SHIP-2024-00123'
NAD+SU+4012345000001::9++ABC Electronics Ltd+100 Tech Park+San Jose+CA+95110+US'
NAD+BY+5412345678908::9++XYZ Retail Corp+200 Commerce Drive+Seattle+WA+98101+US'
NAD+IV+5412345678915::9++XYZ Accounts Payable+Finance Center+Seattle+WA+98102+US'
CUX+2:USD:4'
PAT+1++5:3:D:30'
ALC+A++++FC'
MOA+8:150.00'
LIN+1++7891234567890:EN'
PIA+1+LAPTOP-PRO-15:SA'
IMD+F++:::Laptop Pro 15 inch 16GB RAM'
QTY+47:50:EA'
MOA+203:49975.00'
PRI+AAA:999.50:CA'
TAX+7+VAT+++:::8.25+S'
MOA+124:4122.94'
LIN+2++7891234567891:EN'
PIA+1+MOUSE-WIRELESS:SA'
IMD+F++:::Wireless Mouse Ergonomic'
QTY+47:100:EA'
MOA+203:2990.00'
PRI+AAA:29.90:CA'
TAX+7+VAT+++:::8.25+S'
MOA+124:246.68'
LIN+3++7891234567892:EN'
PIA+1+USB-HUB-7PORT:SA'
IMD+F++:::USB Hub 7-Port Powered'
QTY+47:75:EA'
MOA+203:2243.25'
PRI+AAA:29.91:CA'
TAX+7+VAT+++:::8.25+S'
MOA+124:185.07'
UNS+S'
MOA+79:55208.25'
MOA+131:150.00'
MOA+176:55058.25'
MOA+124:4554.69'
MOA+77:59612.94'
UNT+43+1'
UNZ+1+789456'

Header Information

  • BGM+380 - Document type 380 = Commercial Invoice
  • DTM+137 - Invoice date: 2024-02-15
  • DTM+35 - Payment due: 2024-03-15 (Net 30)
  • RFF+ON - References purchase order PO-2024-00456
  • RFF+DQ - References shipment SHIP-2024-00123

Parties

  • NAD+SU - Supplier: ABC Electronics Ltd, San Jose CA
  • NAD+BY - Buyer: XYZ Retail Corp, Seattle WA
  • NAD+IV - Invoicee: XYZ Accounts Payable

Line Items Breakdown

LineProductQtyPriceAmountTax
1Laptop Pro 15"50$999.50$49,975.00$4,122.94
2Wireless Mouse100$29.90$2,990.00$246.68
3USB Hub 7-Port75$29.91$2,243.25$185.07

Summary Amounts (MOA Segments)

  • MOA+79 - Line items subtotal: $55,208.25
  • MOA+131 - Freight charge: $150.00
  • MOA+176 - Net subtotal: $55,058.25
  • MOA+124 - Total tax (8.25%): $4,554.69
  • MOA+77 - Invoice total: $59,612.94

X12 810 Invoice Example

The same invoice in ANSI X12 format (810 transaction set), commonly used in North America:

ANSI X12 810 - Invoice
ISA*00*          *00*          *ZZ*SUPPLIER       *ZZ*BUYER          *240215*1000*U*00401*000789456*0*P*>~
GS*IN*SUPPLIER*BUYER*20240215*1000*789456*X*004010~
ST*810*0001~
BIG*20240215*INV-2024-00789*20240201*PO-2024-00456~
REF*BM*SHIP-2024-00123~
N1*ST*XYZ Retail Corp*92*BUYER001~
N3*200 Commerce Drive~
N4*Seattle*WA*98101*US~
N1*VN*ABC Electronics Ltd*92*SUPPLIER001~
N3*100 Tech Park~
N4*San Jose*CA*95110*US~
N1*RI*XYZ Accounts Payable*92*BUYER002~
ITD*01*3*2**30**30~
IT1*1*50*EA*999.50**UP*7891234567890*VP*LAPTOP-PRO-15~
PID*F****Laptop Pro 15 inch 16GB RAM~
TXI*ST*4122.94*****8.25~
IT1*2*100*EA*29.90**UP*7891234567891*VP*MOUSE-WIRELESS~
PID*F****Wireless Mouse Ergonomic~
TXI*ST*246.68*****8.25~
IT1*3*75*EA*29.91**UP*7891234567892*VP*USB-HUB-7PORT~
PID*F****USB Hub 7-Port Powered~
TXI*ST*185.07*****8.25~
SAC*A*F600***150.00~
TDS*5961294~
TXI*ST*4554.69~
CTT*3*225~
SE*27*0001~
GE*1*789456~
IEA*1*000789456~

Key X12 Segments

  • BIG - Beginning segment with invoice date and number
  • N1/N3/N4 - Party name and address loops
  • ITD - Terms of sale (Net 30)
  • IT1 - Line item detail
  • TXI - Tax information
  • SAC - Service, allowance, or charge (freight)
  • TDS - Total invoice amount (in cents)

Invoice Document Codes

Invoice TypeEDIFACT BGM CodeUse Case
Commercial Invoice380Standard billing for goods/services
Credit Note381Refund or return credit
Debit Note383Additional charges
Pro-forma Invoice325Preliminary invoice for customs

More EDI Examples

Related Resources

Format Your EDI Invoices

Paste your INVOIC or 810 invoice message into our free formatter for instant beautification and structure analysis.

Open EDIFACT Formatter →