fifinvoice

package module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

README

GOBL ➡️ Finnish Finvoice 3.0

Finnish Finvoice 3.0 addon for GOBL, used for invoices delivered over the Finnish banking network.

Released under the Apache 2.0 LICENSE, Copyright 2026 Invopop S.L..

Lint Test Go Go Report Card codecov GoDoc Latest Tag Ask DeepWiki

This module implements the Finvoice 3.0 requirements as a GOBL tax addon (fi-finvoice-v3). Finvoice conforms to EN 16931, so the addon Requires the EN 16931 addon and only layers the Finvoice-specific tightening on top — principally the data needed to build the EpiDetails payment block, which is mandatory on every Finvoice invoice, credit notes included:

  • Customer — must be present and named (BuyerOrganisationName).
  • Payment details — required unconditionally, not only when an amount is due as in EN 16931 (BR-CO-25).
  • Credit transfer — payment instructions must use the credit-transfer key (extensions such as credit-transfer+sepa are accepted) and the first credit transfer entry must carry an IBAN (EpiAccountID), validated with the ISO 7064 mod 97-10 checksum.
  • Payment reference — required (EpiReference).
  • Due date — payment terms must include at least one dated entry (EpiDateOptionDate).
  • BIC (EpiBfiIdentifier) — recommended alongside the IBAN but not required, matching the schema and current SEPA practice.

IBANs and payment references are normalized to their machine form: grouping spaces are removed and IBANs are upper-cased.

Unlike the format converters in the GOBL ecosystem, this is a true addon: it registers validation rules and normalizers into GOBL's global registry. It lives in its own module so that only projects handling Finnish Finvoice documents take on its weight.

Usage

Import the addon for its side effects to register it, then declare the fi-finvoice-v3 addon on a GOBL document:

import _ "github.com/invopop/gobl.fi.finvoice/addon"
$schema: "https://gobl.org/draft-0/bill/invoice"
$regime: "FI"
$addons:
  - "fi-finvoice-v3"
supplier:
  name: "Myyjä Oy"
  tax_id:
    country: "FI"
    code: "23456780"
payment:
  instructions:
    key: "credit-transfer+sepa"
    ref: "RF18539007547034"
    credit_transfer:
      - iban: "FI21 1234 5600 0007 85" # normalized to FI2112345600000785
  terms:
    due_dates:
      - date: "2026-08-31"
        percent: "100%"

Sources

Documentation

Overview

Package fifinvoice is the root of the Finnish Finvoice 3.0 module for GOBL. The GOBL addon itself lives in the addon subpackage; this root package is reserved for Finvoice tooling built on top of the addon.

Directories

Path Synopsis
Package finvoice provides validations for the Finnish Finvoice 3.0 format.
Package finvoice provides validations for the Finnish Finvoice 3.0 format.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL