What Is an Electronic Invoice? Formats, Delivery, and IRS Rules

An electronic invoice is a bill that is issued, sent, and received as structured data a computer can read and process on its own, without anyone retyping the numbers. A PDF attached to an email or a scanned paper bill does not qualify, because those are just digital pictures of a document. A true electronic invoice stores each piece of information — vendor name, tax ID, line-item price, tax amount, due date — in labeled data fields that accounting software can pull directly into its ledger the moment the file arrives. Under federal law, these records carry the same legal weight as paper originals.

How It Differs From a PDF or Scanned Bill

The dividing line is whether a machine can read the content or only display it. Open a PDF invoice and you see a familiar-looking bill, but the software behind it cannot tell which number is the subtotal and which is the tax without optical character recognition or a human typing it in. An electronic invoice is the opposite: every value sits inside a tag that identifies what it is. The receiving system knows the subtotal is a subtotal because the file says so in a way the computer understands.

Two ideas run through the legal framework for e-invoicing worldwide. Authenticity of origin means the recipient can confirm who actually sent the invoice. Integrity of content means the data has not been altered between creation and storage. Digital signatures satisfy both at once: when the sender signs the file electronically, the recipient’s system can verify the sender’s identity and detect any tampering in transit.

Is an Electronic Invoice Legally Valid?

Yes. Under the Electronic Signatures in Global and National Commerce Act, a signature, contract, or other record cannot be denied legal effect solely because it exists in electronic form.1Office of the Law Revision Counsel. 15 U.S. Code 7001 – General Rule of Validity The statute, commonly called the ESIGN Act, means an electronic invoice is as enforceable as a paper original, provided both parties consent to doing business electronically. It also recognizes electronic signatures for notarization, verification, and oaths when the signature is logically associated with the record.

Businesses do not need a separate legal justification to switch from paper. If anything, the structured format strengthens both sides’ position, because the tagged fields and signature verification create a built-in audit trail that is harder to dispute than a paper document in a filing cabinet.

What Information an Electronic Invoice Must Contain

No single federal statute dictates every field for a commercial invoice between two private businesses. Customs regulations, tax rules, and widely used standards converge on the same core set. For imported goods, federal regulations require the name and complete address of the party responsible for invoicing the merchandise, an adequate description of the goods, quantities, and values.2eCFR. 19 CFR 142.6 – Invoice Requirements Domestic invoicing follows similar conventions because incomplete invoices cause payment delays and audit problems.

A well-formed electronic invoice includes:

  • Seller and buyer identification: legal names, physical addresses, and tax identification numbers such as a Federal Employer Identification Number.
  • A unique invoice number and the issue date.
  • Line-item detail: a description of each good or service, quantities, and unit prices.
  • A standardized currency code such as USD, which prevents confusion when buyer and seller operate in different regions.
  • Tax breakdown: the rate applied to each line item and the total tax amount, kept separate from the subtotal.
  • Payment terms, including the due date and accepted payment methods.

Billing software maps each of these to specific tags in the invoice file. If a required field is missing or incorrectly formatted, the receiving system rejects the file before it ever reaches accounts payable.

The File Formats Behind E-Invoices

Electronic invoices use data-description languages built for computer-to-computer exchange. The files look like code rather than a familiar bill, because their job is organization, not visual presentation.

  • XML (Extensible Markup Language) is the most widely used format. Each value is wrapped in a labeled tag, so the receiving system knows which number is a subtotal, which is a tax rate, and which is a quantity.
  • EDI (Electronic Data Interchange) is a long-established standard for exchanging business documents between organizations. It defines the exact position and order of every element, which makes it reliable but rigid compared to newer options.
  • UBL (Universal Business Language) is a standardized library of XML-based business documents maintained by OASIS, giving companies a shared vocabulary so an invoice built in one system can be read by any other system using the same standard.3OASIS. Universal Business Language Version 2.1
  • JSON (JavaScript Object Notation) is increasingly common in modern web-based platforms and REST APIs. It structures invoice data as key-value pairs that work natively with web applications.

Each format follows a schema — a blueprint that dictates what data types belong in which positions and what values are acceptable. Files that deviate from the schema get rejected immediately rather than importing bad data into the ledger.

How Electronic Invoices Get Delivered

Once an invoice is correctly formatted, it moves through a structured exchange. The most common architecture is the four-corner model. The sender creates the invoice in their accounting system and hands it to their certified access point provider. That provider validates the file and routes it through the network to the recipient’s access point provider, which delivers it into the recipient’s system. Both parties choose their own service provider, and the network handles interoperability between them.

The Peppol network is the leading implementation of this model. It standardizes how business documents are structured and exchanged, giving organizations worldwide a shared digital language for invoicing and other trade documents.4OpenPeppol AISBL. Peppol – Homepage The European Commission encourages suppliers to send invoices through Peppol, particularly for public procurement.5EC Public Wiki. eInvoicing via PEPPOL – F&T Portal eProcurement Documentation

In the United States, the Business Payments Coalition has been developing an e-invoice exchange framework through a market pilot, with the goal of a virtual network letting U.S. businesses exchange electronic invoices regardless of what accounting software they use.6FedPayments Improvement. E-invoice Exchange Framework – One Step Closer to B2B Payments Efficiency

When an invoice arrives, the receiving system runs automated checks: verifying the digital signature, confirming the required fields are present and correctly formatted, and sending an acknowledgment back to the sender. The validated data then flows directly into accounts payable for approval and payment scheduling.

When U.S. Law Requires Electronic Invoicing

The United States does not impose a single federal mandate requiring e-invoicing for all private-sector transactions. The federal government itself, however, has moved toward structured invoicing for its own purchasing. OMB Memorandum M-15-19 directed federal agencies to transition to electronic invoicing for appropriate procurements, defining an electronic invoice as a payment request managed as structured data elements exchanged through electronic workflow with minimal manual interaction.7White House. M-15-19 – Improving Government Efficiency and Saving Taxpayer Dollars Through Electronic Invoicing The memorandum required agencies to migrate to approved e-invoicing solutions and told solution providers to build electronic interfaces such as APIs.

For companies that sell to federal agencies, that effectively makes structured e-invoicing a practical requirement. For purely private transactions between two U.S. businesses, adoption is voluntary. The picture differs abroad. The European Union’s Directive 2014/55 requires contracting authorities and entities in member states to accept and process electronic invoices that comply with the European standard, and bars them from refusing compliant e-invoices on grounds unrelated to the directive’s requirements.8EUR-Lex. Directive 2014/55/EU on Electronic Invoicing in Public Procurement Businesses with international operations increasingly encounter mandatory regimes elsewhere even where domestic U.S. rules remain optional.

IRS Storage and Retention Rules

Storing invoices electronically is allowed, but the IRS sets conditions for those records to hold up on audit. Revenue Procedure 97-22 requires an electronic storage system to ensure accurate and complete transfer of records, to maintain controls preventing unauthorized creation, alteration, or deletion of stored documents, and to include an indexing system that creates an audit trail between the general ledger and source documents. The system must also produce legible hard copies on demand.9Internal Revenue Service. Revenue Procedure 97-22 – Electronic Storage System Requirements

Revenue Procedure 98-25 adds requirements for machine-sensible records — records in electronic format intended for computer use. Those records must contain enough transaction-level detail to support and verify the entries on the business’s tax return, and the business must be able to show an audit trail connecting them to both its books and its return. At examination time, the taxpayer must provide the IRS with the hardware, software, and personnel needed to locate, retrieve, and reproduce the records.10Internal Revenue Service. Revenue Procedure 98-25 – Machine-Sensible Records Requirements

How long to keep the records depends on the situation. The IRS generally requires retaining records that support items on a return for at least three years from the filing date. If you underreport income by more than 25%, the period extends to six years. Employment tax records must be kept at least four years after the tax becomes due or is paid. If you never file a return or file a fraudulent one, there is no expiration on the retention requirement.11Internal Revenue Service. How Long Should I Keep Records For invoices tied to property or fixed assets, keep the records until the limitations period expires for the year you dispose of the asset.

Protecting the Data

Electronic invoices carry sensitive information: tax IDs, bank details, transaction amounts. Businesses that handle consumer financial information may fall under the Gramm-Leach-Bliley Act’s Safeguards Rule, which requires covered companies to maintain an information security program with administrative, technical, and physical safeguards to protect customer data.12Federal Trade Commission. Gramm-Leach-Bliley Act Even businesses outside that statute face practical exposure if invoice data is intercepted or altered.

E-invoicing platforms typically rely on encrypted transmission, digital signatures that detect tampering, and access controls limiting who can view or change invoice data. When evaluating a provider, look for independent compliance verifications such as SOC 2 Type II. The digital signature that establishes authenticity also doubles as a tamper check, because any modification to the file after signing will cause verification to fail at the recipient’s end.