Skip to content

Payment files to Handelsbanken automatically

Handelsbanken requires a PGP agreement before you can protect your payment files with PGP. The bank accepts the files in ISO 20022 through Global Gateway. This guide covers the agreement, the channel, the keys, the file format, the reports and testing.

Last checked

In brief#

What At Handelsbanken
Channel Handelsbanken Global Gateway with SFTP or FTPS, the online bank's file handling or Swift.
Protection PGP, which requires a PGP agreement. The bank publishes its next key well before a change.
Format pain.001 versions 2 and 3, with country specific instructions.
Reports Bg Max ended on 31 May 2026. Incoming payments mainly in camt.054 Credit. Ask the bank about status reports (pain.002) and account statements (camt.053).
Test tools Schema validation of files, then a check of the content in Internet Företag.
Agreement A PGP agreement. Ask the bank which agreements Global Gateway and the payment services need.

The agreement#

You order two things from Handelsbanken. One is the file transfer through Global Gateway, the other a PGP agreement to protect the files with PGP. Ask your branch or Global Gateway support which agreements you need for the payment services you use, such as supplier payments and salaries.

Decide at the same time whether the payments must be approved in the online bank before they go, or whether they go straight through. That is set in the agreement.

The channel#

Global Gateway accepts files over SFTP or FTPS. With SafeSeal the files go straight from your server to the bank's, and nobody has to upload them. Handelsbanken also has file handling in the online bank and Swift.

Handelsbanken asks you to download the bank's SSH host key. It tells you that it is the bank's server you are connecting to. The bank gives you the address and the login details when the channel is set up.

The keys#

PGP at Handelsbanken requires a PGP agreement. You and the bank exchange public keys. You send your public key to the bank and add the bank's public key on your side. Each side keeps its private key. Ask the bank whether the files must be encrypted, or encrypted and signed. SafeSeal can do both.

Public keys are changed at company level and sometimes at personal level. When Handelsbanken changes its key, the bank publishes the next key well before the change. Add the new key to SafeSeal and switch it in the flow when the bank says the change applies. That way no files are stopped. The PGP guide describes how a key change works in SafeSeal.

The file format#

Handelsbanken accepts pain.001 versions 2 and 3. The bank has country specific instructions. Read the instructions for Sweden in the bank's format description. Check which version your finance system creates and that it matches the instructions.

The banks check more than they used to. Handelsbanken checks the OCR reference, and a wrong reference can get the payment rejected. The payee's name must be on every payment. Every payment has one reference, either OCR or free text. The ISO 20022 checklist has the rest.

Reports#

Incoming payments from Handelsbanken come mainly as camt.054 Credit. The bank stopped Bankgirot's Bg Max as early as 31 May 2026. If your finance system still imports Bg Max, it needs to be able to read camt.054. See the guide to incoming payments and camt.054.

After every payment file you also want to know whether the payments went through. Ask the bank which status reports (pain.002) and account statements (camt.053) you can get through Global Gateway, and order them for every account.

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

Testing#

Handelsbanken offers schema validation of files. It checks that the file follows the pain.001 schema. The content is then checked in Internet Företag. Do both before the first real file.

Then send a real payment for a small amount. Check that it arrives, that the receipt comes back and that someone is told if a file is rejected.

How to set it up in SafeSeal#

Your key pair is created in SafeSeal and the private key never leaves the server. Open PGP keys... in the Tools menu and choose New. Enter Username, Password and Repeat password. The public key is saved as an .asc file in the PgpKeys folder. That is the file you send to Handelsbanken. You add the bank's public key with Import.

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

Fetch#

Create a new flow. Under 1 Fetch, choose Type File system and the Folder where the finance system puts the payment files, for example C:\SafeSeal\Ut\Betalningar. Enter File pattern *.xml and click Check permissions.

Send#

Under 2 Send, choose Method PGP and click PGP settings…. Choose the Action the bank requires, Encrypt or Encrypt and sign. Choose the bank's key as Public key. If the file is to be signed, choose your key as Secret key and enter its Password. Under Recipient, choose Type FTP and Protocol SFTP or FTPS. Fill in Host, Username and Path from the bank. Click Check connection.

Afterwards#

Under 3 Afterwards, choose Action Move to folder, for example C:\SafeSeal\Arkiv\Betalningar. The original is kept, and the same file is not sent twice.

Run now#

Save the flow and put a test file in the folder. Click Run now. When the file shows as sent in Runs, the Windows service runs the flow around the clock.

For the reports you create a second flow. Under 1 Fetch, choose Type FTP from the bank's server. Under 2 Send, enter the folder the finance system imports camt.054 from. The All flows overview shows every file that has been sent and fetched. If something goes wrong you get an email, and under Mail settings... you choose who receives it. Every setting is in the manual's chapter on protection.

Common errors#

The bank rejects the file because the key does not match#

Check that the PGP agreement is in place and that the bank has registered your public key. If the bank has changed its key, the flow may still use the old one. Add the new key and choose it as Public key.

The file is rejected for the wrong version#

Handelsbanken accepts pain.001 versions 2 and 3. Check which version the finance system creates and run the file through the schema validation.

The payment is missing the payee's name#

The payee's name must be on every payment. Correct it in the supplier register and create the file again.

The payment is rejected for a wrong OCR number#

Handelsbanken checks the OCR reference. Check the number on the invoice and send the payment again with the right reference.

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.