KF-PAYS: The country code does not exist
This code shows up when an electronic invoice is validated. Here is what it means, why it fires, and what to change in the file.
Why this code appears
An address country code is not a valid ISO 3166-1 alpha-2 code. The most common mistake is UK for the United Kingdom: the official code is GB.
How to fix it
Use the two-letter uppercase ISO 3166-1 code: FR, DE, BE, GB.
What it looks like in the file
These two snippets are replayed against our own checker on a complete invoice, every time the site is built. The first one raises this code, the second one does not.
What raises the code:
<ram:CityName>Nîmes</ram:CityName>
<ram:CountryID>XX</ram:CountryID>
</ram:PostalTradeAddress>
<ram:SpecifiedTaxRegistration>
What to write instead:
<ram:CityName>Nîmes</ram:CityName>
<ram:CountryID>FR</ram:CountryID>
</ram:PostalTradeAddress>
<ram:SpecifiedTaxRegistration>
Where it happens
This check is ours, not a code from the standard: we do not cover enough of EN 16931 to borrow its numbers, and a misattributed official code would send you to fix the wrong field. It concerns BT-40.