Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Apix

Synchronisation scope

Synchronisation
Direction
When it runs

Invoices and credit notes (electronic delivery)

Younium → APIX

When an invoice with delivery method Electronic invoice is posted, or resent from the invoice

Invoices and credit notes (external print)

Younium → APIX

When an invoice with delivery method External print is posted, or resent from the invoice

Electronic invoice addresses

APIX → Younium

On demand, when looking up a customer's electronic address from the account

APIX customer configuration

APIX → Younium

On demand, from the electronic invoice settings

Not in scope: e-invoice status, received (supplier) invoices, payments.


Overview

The APIX integration sends Finnish (and Nordic) electronic invoices through APIX’s channel by packaging Peppol UBL XML in a ZIP archive and uploading it via APIX REST/SOAP clients. Younium supports post with attachments, batch queue, post-as-mail (print routing), electronic address lookup, and customer provisioning checks. Peppol XML generation is shared with the Peppol integration.

Authentication

Younium reaches APIX with service credentials held for Younium as a whole, so there is nothing to enter and no connection to authorise.

What identifies you to APIX is your APIX customer id, which is recorded for the legal entity. Younium can confirm a customer exists in APIX for that id and read back the configuration APIX holds for it, so you can check the legal entity is set up before sending anything.

When something is wrong, the message says which part failed: reaching APIX at all, Younium's own access to it, or your customer id not being accepted — the last of these is the one you can act on, and it means electronic invoicing has not been set up for that legal entity at APIX.

Activation and setup

There is no activation step. Once the legal entity has an APIX customer id that APIX accepts, invoices can be sent.

Younium's own check on an account confirms only that APIX is reachable and Younium's access is valid. APIX applies its own rules to the recipient when the invoice arrives, so an account that passes the check in Younium can still be rejected by APIX afterwards.

Post invoice workflow

  1. ValidateClient.

  2. Resolve attachments: default from DB on post, or explicit attachment IDs, or none for mail-only.

  3. Unless sendAsMail, load account and run ValidateForElectronicInvoice.

  4. Younium generates the Peppol UBL XML for the invoice.

  5. If sendAsMail, inject print routing into XML (see below).

  6. ZIP contains single entry {LegalEntity.Name} - {InvoiceNumber}.xml (no compression).

  7. ApixClient.SendInvoiceZIP(byte[]).

Post as mail (print) mapping

For supported invoice address countries SE, NO, DK, FI, Younium sets the Peppol customer endpoint to a print directive:

Younium Field
UBL change

Invoice.InvoiceAddress.Country.TwoAlphaCode

AccountingCustomerParty/Party/EndpointID inner text → PRINT_{countryCode}

Other countries throw: external print not available for that country.

Peppol XML in ZIP

Younium source
APIX package

Peppol XML document

{LegalEntityName} - {InvoiceNumber}.xml inside ZIP

ZIP bytes

APIX send invoice payload

Field-level Peppol mapping is documented in the Peppol article.

Electronic address query

Younium query field
APIX API

ElectronicAddressQuery.ReceiverName

Address lookup input

ElectronicAddressQuery.ReceiverBusinessId

Address lookup input

Returns opaque object from ApixClient.QueryForElectronicAddress.

Batch posting

Batching validates the connection and collects invoice ids for a single send. Nothing is transmitted until the batch is sent.

Eligibility

The legal entity must have electronic invoicing enabled. Peppol pre-validation runs inside CreateEInvoice. Attachments follow Peppol MIME allow list when included.

Last updated

Was this helpful?