Aiia
Synchronisation scope
Bank accounts
Aiia → Younium
On demand from the integration settings
Incoming bank transactions
Aiia → Younium
Scheduled; or on demand for a bank account, optionally from a chosen date
Not in scope: payment initiation, outgoing bank transactions, invoices.
Overview
The Aiia integration connects Younium to Aiia (open banking) so bank account transactions can be imported and converted into payment batches for payment matching. The integration uses OAuth to obtain access and refresh tokens, synchronises the list of bank accounts available in Aiia, and periodically fetches booked transactions per configured account.
Unlike card or Direct Debit integrations, Aiia does not charge customers or post invoice settlements directly from bank debits. It ingests incoming bank transactions (non-negative amounts) and delegates batch creation to the payment matching subsystem.
Authentication
An administrator connects Younium to Aiia from the integration settings of a legal entity, choosing whether to connect to Aiia's sandbox or to production. Younium sends them to Aiia, where they sign in to the bank connection and approve the access; Aiia returns them to Younium and the connection is live.
Younium keeps the connection alive on its own, renewing its access before each account sync and transaction import, so an administrator never has to reauthorise it on a schedule. The integration settings show whether the connection is currently working, alongside when accounts were last synchronised.
Note on reconnection: Aiia can ask for the connection to be authorised again. When it does, transaction import stops and reports that reconnection is required, and it stays stopped until someone reconnects from the integration settings. Nothing is lost in the meantime — the next successful import picks up the transactions that were missed.
Settings
LastAccountSync / LastAccountSyncCount
When the account catalogue was last refreshed, and how many accounts it found
Empty until first sync
AccountSync
Whether the account catalogue is kept in step automatically
Per configuration
Sandbox vs. Production
You choose sandbox or production when you connect, and the choice is fixed for that connection.
The two are separate Aiia environments reached with separate credentials, so moving from testing to live means connecting again rather than switching a setting.
Activation
Connecting prepares the authorisation and records which Aiia environment you chose; the connection itself completes when you approve it at Aiia and are returned to Younium. Each authorisation attempt is single-use: Younium checks the callback against the connection attempt that started it, so completing the same authorisation link a second time, or returning to Aiia on a stale or bookmarked link, fails and the connection must be started again from Younium.
Connecting does not by itself import anything. Once connected, you synchronise the list of bank accounts and assign a Younium payment method to each account you want transactions imported for — until an account has one, its transactions are not imported.
Deactivation
Disconnecting removes the connection and the list of bank accounts Younium had synchronised, together with the payment methods assigned to them. Transaction imports stop.
The two are removed together, so reconnecting later starts from an empty account list and the payment method assignments have to be made again. Payments already imported and matched in Younium are unaffected.
Save and Setup
There is no separate save/setup handler that creates custom fields or event subscriptions. Operators map each AiiaAccount to a YouniumPaymentMethodId via AddPaymentMethod.
Custom fields created by the integration
Aiia does not create Younium custom fields.
Eligibility and scope
Transaction import
Only transactions with
amount >= 0are converted to payments (credits to the account).Transaction query uses pattern
state = Bookedonly.Default interval: from three days before
AiiaAccount.AiiaLastSynchronizeduntil now; skipped entirely if accountlastSynchronizedunchanged since last fetch (unless custom date fetch).Page size 250 with paging token until exhausted.
Duplicate transaction ids: deduplicated by keeping the entry with the latest effective date (
detail.valueDateordate, thencreationDate).
Scheduled job (Aiia import payments job)
Calls
ManualDataSynch— if Aiia returns anauthUrl, the job fails with “reconnection required”.Requires at least one
AiiaAccount.Processes only accounts with
YouniumPaymentMethodIdset.
Manual data sync
POST {baseUrl}/v1/update with body { "redirectUrl": "{frontend}/settings/aiia" } returns an authUrl when user re-authentication is required at Aiia.
Field mapping
Bank account catalogue (GET /v1/accounts → AiiaAccount)
Aiia field
Younium AiiaAccount field
id
AiiaAccountId
name
Name
currency
Currency
accountProvider.name
AccountProviderName
syncStatus
SyncStatus
isOrphaned
IsOrphaned
type
Type
lastSynchronized
AiiaLastSynchronized (on create only for new rows)
Accounts removed in Aiia are deleted from Younium on sync.
Default incoming payment (before provider rules)
Aiia transaction field
Younium IncomingPayment field
id
ExternalBankId
text
PaymentDescription, PaymentReference (initial)
originalText
PayerInformation
amount
Amount.Amount
currency
Amount.CurrencyCode
date (yyyy-MM-dd)
PaymentDate, Amount.CurrencyConversionDate
detail.source.name
PayerName (when present)
Payment batch generation
PaymentSection.BatchDescription
Transactions from {AiiaAccount.Name}
PaymentSection.SourceDescription
Aiia import
MatchingAccountSettings.YouniumPaymentMethodId
AiiaAccount.YouniumPaymentMethodId
MatchingAccountSettings.FinancialAccountId
From linked payment method
Provider-specific payment reference overrides
When AccountProviderName matches, PaymentReference (and sometimes PayerName) are derived from transaction text or detail fields:
ING
Text after Omschrijving: up to < in originalText
Danske Bank Business Online
Skips InternalCounterEntry; EUR parses Payment details: and Originator Reference Party: from detail.message; DKK uses originalText; tenant-specific rules for configured legal entities (message suffix / last 8 digits)
ABN AMRO
Default: digits after Omschrijving in originalText; variants for specific legal entity (after V) or tenant BCS (regex Fxxx-########)
Sparekassen Kronjylland
originalText or regex / last 4 characters when line ends with IK71
HSBCnet
Digits after INV in originalText
Nordea Yrityspankki
detail.identifiers.reference when present
Batch log (AiiaBatchLog)
BatchNumber
Generated payment batch
BankAccount
AiiaAccount.Name
NumberOfTransactions
Payment count in batch
Description
Batch description
TotalBatchLogAmount
Batch total amount
Currency
Account currency
AiiaSynchronized
AiiaAccount.AiiaLastSynchronized
YouniumTransactionSync
UtcNow at import
AiiaEnvironment
Current settings environment
Transaction fetch workflow
Refresh OAuth token.
GET /v1/accounts/{AiiaAccountId}— comparelastSynchronized; exit early if unchanged (unless custom date).POST /v1/accounts/{id}/transactions/querywithpageSize,interval, andpatterns(Booked only).Paginate with
pagingTokenuntil complete.Deduplicate, update
YouniumLastTransactionSync,YouniumLastTransactionSyncCount,AiiaLastSynchronized.Build the payment sections and generate payment batches for matching.
Write
AiiaBatchLogwhen batch contains payments.
Events and jobs
Scheduled job
Aiia import payments job
Reconnection check; fetch transactions per mapped account
Application events
None
—
Manual action
Account sync (FetchAiiaAccounts)
Refresh account list from Aiia
Manual action
AddPaymentMethod
Set YouniumPaymentMethodId on AiiaAccount
Last updated
Was this helpful?