SchemaGuard by Ironbark Digital · EN 16931 / Peppol / XRechnung Reference
← All 294 EN 16931 / Peppol Rules & Live Validator
FATAL Official EN 16931 / Peppol / CIUS Rule BT/BG Fields: BT-159

BR-CL-15 — E-Invoice Validation Rule & Fix

Fixture ID: badOriginCountry · XPath: /ubl:Invoice/cac:InvoiceLine[1]/cac:Item/cac:OriginCountry/cbc:IdentificationCode

1. Why This Rule Triggers (Diagnostic Message)

Line 1 declares an item country of origin (BT-159) of "UK", which is not an ISO 3166-1 code. The United Kingdom is "GB" in ISO 3166-1 — "UK" is a reserved code and is not in the list. Origin is a customs and trade-preference fact, not a shipping detail: it decides duty rates, preferential-origin claims and whether the goods fall under a sanctions or safeguard measure. It is checked under its own rule id, BR-CL-15, because it binds cac:OriginCountry — the same list as BR-CL-14 on a different element, so a report can show one failing while the other passes.

2. How to Fix BR-CL-15

Set line.originCountryCode to the two-letter ISO 3166-1 code of the country where the item was produced — not where it shipped from, which is a different fact. Omit the field when origin is not relevant to the supply, as it usually is not for services.

3. Valid Code / Payload Example

"originCountryCode": "CN"
Test & Validate XML / JSON in Live SchemaGuard Validator →