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
| Area | What Space Invoices does |
|---|---|
| Power of attorney | Gives you a pre-filled FINA punomoć form and checks at FINA whether the authorisation is registered |
| Sending | Issues eligible domestic B2B invoices and credit notes as eRačun, generates and validates the UBL, signs it and sends it to FINA |
| Receiving | Fetches supplier eRačun from FINA, keeps the signed original, and sends your accept, refuse or paid answer back to FINA |
| Status | Tracks each sent eRačun through FINA and shows its state on the document |
| Fiscalization | FINA 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
| Source | Relevance |
|---|---|
| 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 CIUS | The UBL 2.1 invoice format and Croatian rules for it |
| KPD 2025 | Product classification code required on every invoice line |
| FINA e-Račun | The information intermediary service Space Invoices uses to send and receive |
Before you start
| Requirement | Description |
|---|---|
| Croatian entity with an OIB | A 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 FINA | The buyer must be registered for eRačun at FINA, or the send fails with recipient_not_registered |
| KPD code on every line | A 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.
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).
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.
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.
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:
enabledreceiving_enabledenrollment.send_authorizedenrollment.receive_authorizedreadyreceiving_allowedenrollment.statusenrollment.errorenrollment.status | Meaning |
|---|---|
not_started | No check has run yet |
pending | FINA does not (yet) show the sending right. This is normal until the punomoć is registered, and it is not an error |
active | FINA shows the sending right. Receiving does not move the status: read it from enrollment.receive_authorized and receiving_allowed |
failed | FINA 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)
customer.tax_numberitems[].e_invoicing.croatia.kpd_codedate_dueitems[].taxesconst 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.
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.
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.
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.
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.
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.
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.status | Meaning |
|---|---|
pending | Issued and reserved, not yet accepted by FINA. error says when it is waiting |
sent | FINA accepted the document |
delivered | FINA reports it in the buyer’s inbox or beyond. fina_status is RECEIVED, APPROVED or PAYMENT_FULFILLED |
rejected | FINA rejected the content (violations lists the rules) or the buyer rejected it |
failed | It cannot be delivered without action. See error.code |
statussubmitted_atfina_statusviolationserrorA document that failed can be sent again:
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
422until 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_authorizedand the enrollment goes back topending. Register the authorisation again, check it, and retry the failed document.
Common errors
| Error | Meaning |
|---|---|
FINA_ERACUN_NOT_SUPPORTED_FOR_COUNTRY | The entity is not Croatian |
FINA_ERACUN_OIB_REQUIRED | The entity needs a valid OIB before sending or receiving can be turned on |
FINA_ERACUN_IBAN_REQUIRED | Add a bank account with an IBAN before turning sending on |
FINA_ERACUN_OPERATOR_REQUIRED | Set operator_oib and operator_label in the FINA settings before turning sending on |
fina_eracun_invalid_oib | The entity OIB is not valid, so the power of attorney form or the check cannot run |
fina_eracun_validation_failed | The 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_ready | The document is an eRačun but sending is not on or FINA does not show the right |
fina_eracun_credit_note_source_not_eracun | A credit note was issued as an eRačun for an invoice fiscalized through CIS |
fina_eracun_credit_note_must_be_eracun | A credit note for an eRačun invoice must be issued as an eRačun |
fina_eracun_refusal_reason_required | Refusing a received eRačun needs a reason (422) |
supplier_not_authorized | FINA has no authorisation for your company. The enrollment is back to pending |
recipient_not_registered | The buyer is not registered for eRačun at FINA. Retry after they register |
fina_content_rejected | FINA 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.