Skip to content

Payment files to Swedbank automatically

Swedbank receives ISO 20022 payment files through Anslutning Företag. With direct integration the files are protected with PGP according to your agreement with the bank. This guide takes you from the agreement to your first real payment.

Last checked

In brief#

Swedbank
Channel Anslutning Företag. Direct integration is a direct SFTP connection to the bank's server, by quotation.
Protection PGP. The details are in your agreement with Swedbank.
Format ISO 20022 according to Swedbank's MIG. The payee's name is mandatory for several payment types.
Reports Ask the bank which reports are included, for example pain.002 and camt.054 or camt.053.
Test tools Validex, which checks ISO 20022 files against Swedbank's MIG.
Agreement Anslutning Företag and a payment service, for example Utbetalning Företag.

The savings banks (sparbankerna) use the same service, for example Sparbanken Boken. This guide applies to them too.

The agreement#

Swedbank needs two agreements. One covers the channel, the other the payment service itself.

  • Anslutning Företag is the channel, that is how the files reach the bank.
  • Utbetalning Företag is the payment service for file payments, and it requires Anslutning Företag.

All file communication now goes through the bank instead of through Bankgirot. Ask Swedbank or your savings bank for a quotation for direct integration, and ask at the same time:

  • which PGP protection applies and how the keys are exchanged
  • which reports are included
  • whether payments have to be approved in the online bank before they go, or go straight away

The channel#

SafeSeal belongs in direct integration. SafeSeal logs in to the bank's server and leaves the file there. Nobody has to upload it, and it does not pass through anyone else. You get the server address and the login from the bank once the agreement is in place.

Anslutning Företag has four channels:

  • Filadministration via internetbanken, where the files are handled in the online bank
  • Direktintegration (direct integration), a direct SFTP connection between the finance system and the bank's server
  • Tredjepartsintegration, where the files go through a third party
  • Säkerhetslösning

The keys#

The protection with direct integration is PGP. Swedbank does not describe the details on its public pages. They are in the agreement, which decides:

  • whether the files are encrypted, or encrypted and signed
  • which public key from the bank you use
  • how you send your own public key to the bank
  • how and when the keys are changed

Your private key and its password stay on your server. If the agreement gives an expiry date for a key, put it in your operating routine. More about key pairs and key changes is in the PGP guide.

The file format#

Swedbank wants files in ISO 20022 according to the bank's MIG. It states which version of pain.001 applies. Send the MIG to your system supplier.

The payee's name is mandatory for account transfers, salaries and bankgiro and plusgiro payments. Without it the payment is rejected. The banks also check OCR numbers. Every payment needs a reference.

Go through the ISO 20022 checklist before you send the first file. If the finance system can only create old files such as LB, Format conversion turns them into pain.001 on your server.

Reports#

Ask the bank which reports are included. Swedbank does not describe them for direct integration on the pages this guide is based on. This is what you usually need:

  • pain.002 with the status of each payment file
  • camt.054 with each incoming payment and its OCR number. It replaces Bg Max.
  • camt.053 with the account statement

Ask your system supplier which of them the finance system can import. More about incoming payments is in the guide to incoming payments and camt.054.

Ask the bank to send the reports unencrypted. The transfer is still encrypted by SFTP, and SafeSeal fetches the files and puts them where the finance system reads them in.

Testing#

Run the payment file through Validex before you send it. Validex checks the file against Swedbank's MIG. You see format errors before the bank does. Ask the bank whether there is a test environment for direct integration.

Then send a real payment with a small amount. Check that it arrives. The receipt should come back and be imported into the finance system.

Setting it up in SafeSeal#

You need two flows. One sends the payment files, the other fetches the reports. You set up both in SafeSeal Config, and the service then runs them around the clock.

The key#

Open Tools › PGP keys.... Choose New to create a key pair and enter Username, Password and Repeat password. Send the public key to the bank as the agreement says. Add the bank's public key with Import. The keys are saved in the PgpKeys folder and never leave the server.

The New PGP Keys window with the fields Username, Password and Repeat password

The flow for payment files#

Fetch#

Choose Type File system and the Folder where the finance system puts the payment files, for example C:\SafeSeal\Out\Payments. Set File pattern, for example *.xml. With Min file age no file is sent half finished while it is still being written.

Send#

Choose Method PGP. Open PGP settings… and choose the Action the agreement states, Encrypt or Encrypt and sign. Point to the bank's key in Public key. When signing, point to your own in Secret key too and enter its Password. Under Recipient choose Type FTP and Protocol SFTP. Fill in Host, Port, Path, Username and Password from the bank. If you log in with an SSH key, point to the key file in RSA.

Afterwards#

Choose Action Move to folder, for example C:\SafeSeal\Archive\Payments. The original is then kept.

Click Check connection in the Send step. SafeSeal logs in and lists the files in the folder on the bank's server. With Test writing on the server you can see that files can be put there. Check the folders in Fetch and Afterwards with Check permissions.

The flow for reports#

Fetch from the bank's server with Type FTP and Protocol SFTP. Use the same login, but the folder for reports. Poll frequency sets how often SafeSeal looks for new files. Send with Method No processing to the folder that the finance system imports from.

Run both flows once with Run now. The All flows overview shows every file that has been sent and fetched. If something goes wrong, you get an email. Every setting is described in the manual's chapter on flows.

Common errors#

The bank rejects the key#

Check that the bank has the right public key and that the flow uses the bank's current key. The action in the flow has to be the one the agreement states.

Wrong version of pain.001#

The bank rejects the file before it reads the content. Run the file through Validex and ask your system supplier to change the version.

The payee's name is missing#

Payments without the payee's name are rejected. The name comes from the finance system and has to be on the supplier or the employee there.

Wrong OCR number#

A wrong OCR reference can get the payment rejected.

Sources#

Checked 28 November 2026.

Try it on your own file Try SafeSeal free for 30 days, or let us set up the first flow with you.