BR-CL-14

Country code is not a valid ISO 3166-1 alpha-2 code

Repaired automatically Field BT-40 EN16931 UBL / CII

What it means

Country codes must be the two-letter ISO 3166-1 form. Three-letter codes such as 'NOR' or 'DEU', or full country names, are rejected. This is a common defect when address data comes from a system that stores alpha-3 codes internally.

Can it be fixed automatically?

Nothing about your business is needed to fix this — the correct value is a constant, a code list entry, or is already present in the document.

This one can be repaired automatically. The API applies the fix, re-validates, and reports exactly what changed with before and after values.

How to fix it

Convert the code to its two-letter equivalent — NOR becomes NO, DEU becomes DE. The mapping is defined by the standard, so no interpretation is required.

Where it applies

CII//ram:CountryID
UBL//cac:Country/cbc:IdentificationCode

Check your own invoice

curl -X POST https://einvoice.mgsoft.sk/v1/validate \
     -H 'Content-Type: application/xml' \
     --data-binary @invoice.xml

← All rules