errorPOLKSeF

KSEF-004:Currency code invalid

Currency must be a valid ISO 4217 code. Use PLN for domestic invoices.

Severity
Fatal
Rule set
KSeF
Country
POL
Fix type
INPUT REQUIRED

Engine Classification

Business data required · Explicit input workflow · No assumptions made

Required input: Currency Code

What is KSEF-004?

KSEF-004 is a fatal validation rule defined in the KSeF specification (POL national rules). It checks whether currency code invalid.

When this rule fires, the invoice is non-compliant and will be rejected by Peppol access points and national validation services. The sending system receives a rejection response and the invoice does not reach the buyer.

Why This Error Matters

KSEF-004 is a hard failure. Invoices that trigger this rule are rejected at the access point and never reach the recipient. In Peppol networks, this means your sending system receives an MLR (Message Level Response) with a rejection status. The invoice must be corrected and re-sent, adding delay to your payment cycle.

Validator Behavior

  • ·Causes invoice rejection
  • ·Error returned: KSEF-004
  • ·Specification: KSeF

How to Fix It

.

.

.

Technical Reference

SpecKSeF

Code Example

<KodWaluty>PLN</KodWaluty>

Common Causes

  • ·Invalid currency code format
  • ·Using currency symbol instead of code
  • ·Typo in currency code

Seeing this in production? The API handles KSEF-004 automatically. See the fix response →

Frequently Asked Questions

Currency must be a valid ISO 4217 code. Use PLN for domestic invoices.

Use correct ISO 4217 currency code. You can also use Invoice Navigator's automatic Fixer tool to correct this instantly.

Yes, KSEF-004 is a critical error that will cause invoice rejection. It must be fixed before submission to ensure your invoice is accepted by the recipient's system.

Many instances of KSEF-004 can be automatically corrected using Invoice Navigator's Fixer tool. Upload your invoice and the tool will identify and fix common issues, including currency code invalid.

Last updated: 19 January 2026

Share this guide:

Handle KSEF-004 Automatically in Your Pipeline

The compliance engine auto-remediates this error with controlled safety policies and evidence pack generation.