Skip to content

Croatia eRačun (FINA)

Space Invoices sends and receives Croatian B2B eRačun through FINA e-Račun for Fiskalizacija 2.0. Domestic invoices and credit notes to Croatian businesses go out as signed UBL 2.1 eRačun (HR CIUS, EN 16931), and supplier eRačun addressed to your entity land in the received e-invoices inbox.

Space Invoices (Studio 404 d.o.o.) acts as the information intermediary. It sends and receives through FINA with its own FINA application certificate, under a power of attorney (punomoć) that your company gives it. You do not need your own FINA certificate or a FINA e-Račun contract for this. B2C fiscalization with CIS stays in the Croatia FINA fiscalization guide.

What Space Invoices handles

AreaWhat Space Invoices does
Power of attorneyGives you a pre-filled FINA punomoć form and checks at FINA whether the authorisation is registered
SendingIssues eligible domestic B2B invoices and credit notes as eRačun, generates and validates the UBL, signs it and sends it to FINA
ReceivingFetches supplier eRačun from FINA, keeps the signed original, and sends your accept, refuse or paid answer back to FINA
StatusTracks each sent eRačun through FINA and shows its state on the document
FiscalizationFINA fiscalizes and reports (eIzvještavanje) the eRačun for you. Nothing is sent to CIS and the document has no JIR or ZKI

Not supported:

  • Advance invoices, and invoices settled by linked advance invoices, as eRačun
  • Foreign or consumer buyers (they keep their existing paths, see Special cases)
  • Editing or voiding an issued eRačun. Correct it with a credit note

Laws and standards

SourceRelevance
Zakon o fiskalizaciji (NN 89/2025)Fiskalizacija 2.0: B2B invoices between Croatian businesses are exchanged as eRačun and reported to the Tax Administration
EN 16931 and HR CIUSThe UBL 2.1 invoice format and Croatian rules for it
KPD 2025Product classification code required on every invoice line
FINA e-RačunThe information intermediary service Space Invoices uses to send and receive

Before you start

RequirementDescription
Croatian entity with an OIBA valid OIB as the entity tax number. Other countries receive 422 with FINA_ERACUN_NOT_SUPPORTED_FOR_COUNTRY
Bank account (sending)At least one entity bank account with an IBAN. The IBAN is sent on every eRačun invoice
Default FINA operator (sending)operator_oib and operator_label in the entity’s FINA settings. They are sent as HR-BT-5 and HR-BT-4 on every eRačun
Signed punomoćYour company’s power of attorney for Space Invoices, registered by FINA (see Setup)
Buyer registered at FINAThe buyer must be registered for eRačun at FINA, or the send fails with recipient_not_registered
KPD code on every lineA KPD 2025 code on each invoice line (see Issue a compliant invoice)

Sending and receiving are chosen separately. Each one works only when it is turned on and FINA has registered the matching right for your OIB. Receiving needs only a valid OIB: no bank account or operator is required.

Sandbox entities use the FINA demo environment and live entities use FINA production.

Setup

Steps 1 to 3 can be done in the Space Invoices app (FINA e-Račun settings) or through the API, as shown below. Step 4 happens at FINA.

1. Add the bank account and operator

Only needed for sending. The operator is the person or label that issues the invoices. A request can override it with fina.operator_oib and fina.operator_label.

Add the bank account and FINA operatortypescript
await sdk.entities.update(entity.id, {
  settings: {
    bank_accounts: [{ type: "iban", iban: "HR1210010051863000160", is_default: true }],
  },
});

await sdk.finaSettings.update({
  operator_oib: "12345678903",
  operator_label: "Ana Horvat",
});

2. Choose sending, receiving or both

enabled turns sending on and receiving_enabled turns receiving on. Omitted fields stay unchanged. Turning sending on returns 422 when the OIB, the IBAN or the operator is missing (FINA_ERACUN_OIB_REQUIRED, FINA_ERACUN_IBAN_REQUIRED, FINA_ERACUN_OPERATOR_REQUIRED).

Turn sending and receiving ontypescript
const settings = await sdk.eInvoicing.updateFinaEracunSettings(
  {
    enabled: true, // sending
    receiving_enabled: true,
  },
  { entity_id: entity.id },
);

console.log(settings.enrollment.status, settings.ready, settings.receiving_allowed);

3. Download the power of attorney

The API returns FINA’s official form “PUNOMOĆ za korištenje servisa Fina e-Račun za poslovne subjekte” as a PDF, pre-filled with your company (OIB and company number) and with Space Invoices as the authorised party. The rights Potpis and Pregled i prihvat are already ticked. The optional representative_name prints the name of the person who signs for your company.

Download the pre-filled power of attorneytypescript
const form = await sdk.eInvoicing.getFinaEracunAuthorizationForm(
  { representative_name: "Ana Horvat" },
  { entity_id: entity.id },
);

fs.writeFileSync("fina-punomoc.pdf", new Uint8Array(await form.arrayBuffer()));

4. File the form at FINA

Your company’s authorised representative dates and signs the form, attaches a copy of their identity document, and files it in person at any FINA branch office. Online filing through OSPD is not available for this form. FINA then registers the authorisation.

5. Check the authorisation

Once FINA has registered it, check the authorisation. In the app this is the Check authorisation button. Space Invoices also re-checks waiting enrollments automatically every day.

Check the authorisationtypescript
const settings = await sdk.eInvoicing.verifyFinaEracunEnrollment({ entity_id: entity.id });

console.log(settings.enrollment.send_authorized, settings.enrollment.receive_authorized);

The response tells you where each direction stands:

Settings Response Fields
enabled
Sending is switched on
receiving_enabled
Receiving is switched on
enrollment.send_authorized
FINA shows the sending right for your OIB at the last check
enrollment.receive_authorized
FINA shows the receiving right for your OIB at the last check
ready
Sending works right now: it is on, the enrollment is active and sending is available
receiving_allowed
Receiving works right now: it is on and FINA shows the right
enrollment.status
not_started, pending, active or failed (see below)
enrollment.error
Why the last check failed, or null
enrollment.statusMeaning
not_startedNo check has run yet
pendingFINA does not (yet) show the sending right. This is normal until the punomoć is registered, and it is not an error
activeFINA shows the sending right. Receiving does not move the status: read it from enrollment.receive_authorized and receiving_allowed
failedFINA refused the check with an unexpected error, or support deactivated the enrollment. See enrollment.error

In the app each direction shows as Off, Waiting for FINA or Active. If FINA later withdraws a right, sending fails with supplier_not_authorized and the enrollment goes back to pending. Receiving stops too: enrollment.receive_authorized becomes false and the status does not change.

Issue a compliant invoice

Create an invoice or credit note as usual. When sending is allowed, a domestic B2B document that does not qualify for the cash or card path in the FINA fiscalization guide is issued as an eRačun automatically. Space Invoices generates the UBL, validates it, stores it with the document, and sends it to FINA right after issuing.

Business customers (B2B)

B2B eRačun Requirements
customer.tax_number
The buyer's valid OIB (11 digits, with or without the HR prefix). The buyer must be Croatian
items[].e_invoicing.croatia.kpd_code
KPD 2025 code for each invoice line, in NN.NN.NN form such as 62.20.20. Must be a valid leaf code of the official KPD 2025 list
date_due
Due date, required when there is an amount to pay
items[].taxes
Croatian VAT of 25%, 13% or 5%, zero-rated, or reverse charge
Create a B2B invoice with KPD codestypescript
const invoice = await sdk.invoices.create(
  {
    customer: {
      name: "Kupac d.o.o.",
      tax_number: "98765432106",
      country_code: "HR",
      address: "Ilica 1",
      city: "Zagreb",
      post_code: "10000",
    },
    date_due: "2026-12-31",
    items: [
      {
        name: "Software development",
        quantity: 10,
        price: 100,
        taxes: [{ rate: 25 }],
        e_invoicing: { croatia: { kpd_code: "62.20.20" } },
      },
    ],
  },
  { entity_id: entity.id },
);

console.log(invoice.e_invoicing?.croatia?.status);

The issue date must be on or after 1 January 2026, and the document number must not contain whitespace. Set is_end_consumer to true for a consumer; the invoice is then not an eRačun.

If the content does not validate, the request fails with 422 and cause.code fina_eracun_validation_failed. cause.errors lists each field to fix, for example items.0.e_invoicing.croatia.kpd_code with the code kpd_code_required. No document number is used.

Credit notes

A credit note for an eRačun invoice is issued as an eRačun too and must reference the invoice it corrects with linked_documents. KPD codes are not required on credit-note lines, but a code you send is still checked. A credit note cannot mix the two paths: an eRačun invoice needs an eRačun credit note, and an invoice fiscalized with CIS needs a CIS credit note.

Sending behaviour

Space Invoices sends the stored eRačun to FINA right after issuing and retries automatically when FINA cannot be reached. The invoice or credit note carries the server-managed e_invoicing.croatia object. Do not send it in requests.

Check delivery statustypescript
const submissions = await sdk.eInvoicing.listEInvoicingSubmissions(
  { document_id: invoice.id },
  { entity_id: entity.id },
);

console.log(submissions.data[0]?.status);

An issued eRačun cannot be edited or voided. Correct it with a credit note. Its payments are ordinary payments and never change anything at CIS.

Receive invoices

When receiving is allowed, Space Invoices fetches new supplier eRačun from FINA every 15 minutes. The first sync goes back 90 days. Received invoices appear with the other received e-invoices (Expenses → Received e-invoices in the app) and you get a notification for new ones.

List received eRačuntypescript
const received = await sdk.eInvoicing.listReceivedEInvoices(
  { state: "pending", limit: 50 },
  { entity_id: entity.id },
);

for (const document of received.data) {
  console.log(document.id, document.supplier_name, document.number, document.total_with_tax);
}

state filters the inbox: pending (the default), accepted, refused or all. status_code shows the FINA status: RECEIVED, APPROVED, REJECTED or PAYMENT_FULFILLED.

Download the original

Space Invoices keeps the signed original XML of every received eRačun. A buyer must keep it for 11 years. format is original (the default) or ubl, which return the same signed bytes. factur-x and cii return 422 for Croatian invoices.

Download the signed originaltypescript
const original = await sdk.eInvoicing.downloadReceivedEInvoice(
  "91002",
  { format: "original" },
  { entity_id: entity.id },
);

fs.writeFileSync("received-eracun.xml", new Uint8Array(await original.arrayBuffer()));

Accept

Accepting creates an incomplete draft expense from the invoice and tells FINA the invoice is APPROVED. The call is idempotent. If FINA does not allow the change yet, Space Invoices retries it automatically. If FINA has not handed over the original yet, the call returns 503 with fina_eracun_original_not_available; try again later.

Accept as an expensetypescript
const accepted = await sdk.eInvoicing.acceptReceivedEInvoice("91002", { entity_id: entity.id });

console.log(accepted.state, accepted.expense_id);

Refuse

Refusing needs a free-text reason. FINA passes it to the supplier, and the invoice is sent to FINA as REJECTED. A refusal without a reason returns 422 with fina_eracun_refusal_reason_required.

Refuse with a reasontypescript
await sdk.eInvoicing.sendReceivedEInvoiceLifecycle(
  "91002",
  { action: "refused", reason: "Goods were not delivered" },
  { entity_id: entity.id },
);

Mark as paid

Use the payment_sent action when you have paid the supplier. FINA records PAYMENT_FULFILLED.

Mark as paidtypescript
await sdk.eInvoicing.sendReceivedEInvoiceLifecycle(
  "91002",
  { action: "payment_sent" },
  { entity_id: entity.id },
);

Croatian eRačun supports only accepted, refused and payment_sent. Other lifecycle actions return 422. A lifecycle answer stays pending, or failed, until FINA allows the change, and is retried automatically.

What you get back

An issued eRačun carries e_invoicing.croatia:

e_invoicing.croatia.statusMeaning
pendingIssued and reserved, not yet accepted by FINA. error says when it is waiting
sentFINA accepted the document
deliveredFINA reports it in the buyer’s inbox or beyond. fina_status is RECEIVED, APPROVED or PAYMENT_FULFILLED
rejectedFINA rejected the content (violations lists the rules) or the buyer rejected it
failedIt cannot be delivered without action. See error.code
e_invoicing.croatia Fields
status
pending, sent, delivered, rejected or failed
submitted_at
When FINA accepted the document, or null
fina_status
Latest status FINA reports, such as RECEIVED, APPROVED, REJECTED or PAYMENT_FULFILLED
violations
Rule violations FINA listed when it refused the content
error
Why the document is waiting or failed (code and message), or null

A document that failed can be sent again:

Retry a failed submissiontypescript
const [failed] = (
  await sdk.eInvoicing.listEInvoicingSubmissions({ document_id: invoice.id }, { entity_id: entity.id })
).data;

await sdk.eInvoicing.retryEInvoicingSubmissionById(failed.id, { entity_id: entity.id });

Only failed submissions can be retried. A rejected eRačun is corrected with a credit note.

Special cases

  • Cash or card payment. A domestic B2B invoice settled by exactly one cash or card payment for the full total is fiscalized through CIS with the buyer’s OIB, not sent as an eRačun. See Domestic B2B.
  • Sending is off or not authorised. A domestic B2B invoice that cannot go through CIS is refused with 422 until sending is on and FINA shows the right.
  • Foreign buyers and consumers. They are not sent as eRačun. They follow the rules in the FINA fiscalization guide.
  • Advance invoices. Not generated as eRačun. An invoice settled by linked advance invoices keeps the existing refusal.
  • Turning sending off. Stops new eRačun issuance. Documents already issued stay locked.
  • Withdrawn authorisation. If FINA no longer shows the right, a send fails with supplier_not_authorized and the enrollment goes back to pending. Register the authorisation again, check it, and retry the failed document.

Common errors

ErrorMeaning
FINA_ERACUN_NOT_SUPPORTED_FOR_COUNTRYThe entity is not Croatian
FINA_ERACUN_OIB_REQUIREDThe entity needs a valid OIB before sending or receiving can be turned on
FINA_ERACUN_IBAN_REQUIREDAdd a bank account with an IBAN before turning sending on
FINA_ERACUN_OPERATOR_REQUIREDSet operator_oib and operator_label in the FINA settings before turning sending on
fina_eracun_invalid_oibThe entity OIB is not valid, so the power of attorney form or the check cannot run
fina_eracun_validation_failedThe eRačun content failed validation. cause.errors lists the fields, such as kpd_code_required, kpd_code_unknown, invalid_buyer_oib, due_date_required or issuer_iban_required
fina_eracun_not_readyThe document is an eRačun but sending is not on or FINA does not show the right
fina_eracun_credit_note_source_not_eracunA credit note was issued as an eRačun for an invoice fiscalized through CIS
fina_eracun_credit_note_must_be_eracunA credit note for an eRačun invoice must be issued as an eRačun
fina_eracun_refusal_reason_requiredRefusing a received eRačun needs a reason (422)
supplier_not_authorizedFINA has no authorisation for your company. The enrollment is back to pending
recipient_not_registeredThe buyer is not registered for eRačun at FINA. Retry after they register
fina_content_rejectedFINA rejected the content. See violations and issue a credit note

Verifying the authorisation returns 503 with fina_eracun_unavailable when FINA cannot be reached. Nothing changes; try again later.