Fixture ID: badOriginCountry · XPath: /ubl:Invoice/cac:InvoiceLine[1]/cac:Item/cac:OriginCountry/cbc:IdentificationCode
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.
BR-CL-15Set 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.
"originCountryCode": "CN"