Price base quantity uses a different unit than the invoiced quantity
What it means
The price base quantity says how many units the net price refers to, so it has to be expressed in the same unit as the invoiced quantity. Different units make the line arithmetic meaningless — you cannot price "per kilogram" a quantity measured in pieces.
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
Set the price base quantity unit code to the invoiced quantity unit code. If the two genuinely differ, the price itself is wrong and the fix is a business decision.
Where it applies
| UBL | /Invoice/cac:InvoiceLine/cac:Price/cbc:BaseQuantity/@unitCode |
|---|
Check your own invoice
curl -X POST https://einvoice.mgsoft.sk/v1/validate \
-H 'Content-Type: application/xml' \
--data-binary @invoice.xml