Invoice currency code is not a valid ISO 4217 code
What it means
Currency must be an ISO 4217 three-letter code. Values like 'EURO', 'eur' or a currency symbol are rejected. Note that fixing this wrongly is worse than leaving it: all monetary amounts in the document inherit this currency.
Can it be fixed automatically?
The fix is mechanical once you provide the value, but the value itself is yours: it cannot be derived from the invoice and will not be guessed.
How to fix it
Set the correct ISO 4217 code, for example EUR, SEK or NOK. Some values map obviously, but confirming the intended currency is the issuer's call because every amount in the invoice depends on it.
Where it applies
| UBL | /Invoice/cbc:DocumentCurrencyCode |
|---|
Check your own invoice
curl -X POST https://einvoice.mgsoft.sk/v1/validate \
-H 'Content-Type: application/xml' \
--data-binary @invoice.xml