Invoice currency code is missing
What it means
The invoice currency (BT-5) governs every monetary amount in the document — without it the amounts are just numbers, and the receiver cannot post them or reconcile them against a payment. It is also the value every currencyID attribute in a UBL document has to agree with, so an absent currency code tends to cascade into further failures about mismatched amounts.
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
In UBL the amounts already carry currencyID attributes; when those all agree the document currency can be recovered from them without guessing. If they disagree, the intended currency has to be confirmed.
Where it applies
| CII | //ram:ApplicableHeaderTradeSettlement/ram:InvoiceCurrencyCode |
|---|---|
| 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