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.
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:
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'
BGM+380 - Document type 380 = Commercial InvoiceDTM+137 - Invoice date: 2024-02-15DTM+35 - Payment due: 2024-03-15 (Net 30)RFF+ON - References purchase order PO-2024-00456RFF+DQ - References shipment SHIP-2024-00123NAD+SU - Supplier: ABC Electronics Ltd, San Jose CANAD+BY - Buyer: XYZ Retail Corp, Seattle WANAD+IV - Invoicee: XYZ Accounts Payable| Line | Product | Qty | Price | Amount | Tax |
|---|---|---|---|---|---|
| 1 | Laptop Pro 15" | 50 | $999.50 | $49,975.00 | $4,122.94 |
| 2 | Wireless Mouse | 100 | $29.90 | $2,990.00 | $246.68 |
| 3 | USB Hub 7-Port | 75 | $29.91 | $2,243.25 | $185.07 |
MOA+79 - Line items subtotal: $55,208.25MOA+131 - Freight charge: $150.00MOA+176 - Net subtotal: $55,058.25MOA+124 - Total tax (8.25%): $4,554.69MOA+77 - Invoice total: $59,612.94The same invoice in ANSI X12 format (810 transaction set), commonly used in North America:
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~
BIG - Beginning segment with invoice date and numberN1/N3/N4 - Party name and address loopsITD - Terms of sale (Net 30)IT1 - Line item detailTXI - Tax informationSAC - Service, allowance, or charge (freight)TDS - Total invoice amount (in cents)| Invoice Type | EDIFACT BGM Code | Use Case |
|---|---|---|
| Commercial Invoice | 380 | Standard billing for goods/services |
| Credit Note | 381 | Refund or return credit |
| Debit Note | 383 | Additional charges |
| Pro-forma Invoice | 325 | Preliminary invoice for customs |
Paste your INVOIC or 810 invoice message into our free formatter for instant beautification and structure analysis.
Open EDIFACT Formatter →