Skip to content

Validation rules

US e-invoice validation rules, explained

What the DBNAlliance (UBL 2.3) and ANSI X12 810 (004010 base profile) rules our validator reports mean, and how to fix an invoice that fails them. Each one is an InvokeXML check; the official Schematron for the format runs on top of them. The validator also checks the basics every invoice needs: required fields, line amounts, tax breakdown and totals.

What stopped your invoice?

5 rules found

United States (DBNAlliance Core)

IXK-US-SELLER-COUNTRYerror

Seller is not in the United States

The DBNAlliance profile is meant for sellers established in the United States, so the seller address must have country code US.

How to fix it: Set the seller address countryCode to US. If you invoice from another country, use the format of that country instead.

IXK-US-UBLwarning

UBL version is not 2.3

DBNAlliance Core documents are UBL 2.3. A different UBLVersionID usually means the file was made for another network.

How to fix it: Set cbc:UBLVersionID to 2.3, or create the invoice with InvokeXML, which writes 2.3 for you.

IXK-US-TAX-SCHEMEerror

GST tax scheme on a US invoice

The United States has no GST. A GST tax scheme on a US invoice is almost always copied from a template for another country.

How to fix it: Use a sales tax scheme for the tax lines.

IXK-US-ZEROerror

Exempt or zero-rated line has a tax rate

Only taxed lines (category S) and out-of-scope lines (O) may carry a rate. Exempt (E) and zero-rated (Z) lines must have a 0% rate.

How to fix it: Set the rate of that line to 0, or change the category to S if the line is taxed. Sales tax rates differ per state and locality, so the rate of taxed lines is not checked.

IXK-US-CURRENCYwarning

Invoice is not in USD

Most US buyers expect invoices in US dollars.

How to fix it: Use currency USD unless your customer agreed to another currency.