Skip to content

Before placing orders the account needs funds. There are two ways to deposit money into an account.

Bankgiro transfer

The customer makes a standard bank transfer to Fondo's bankgiro number using the account's ref field as the OCR reference. The ref is returned when the account is created and is available on the account object.

string<= 128 characters

ref is a unique account number, based on epoch, length and Luhn. OCR length digit compliant.

Swish

Swish lets the customer pay directly from the Swish app. There are two flows:

  • Same device — the customer is on a mobile device; Swish opens directly via its app-switch token.
  • QR code — the customer is on a desktop; you display a QR code they scan with the Swish app.

Create a Swish deposit session

curl -i -X POST \
  https://api.sandbox.fondo.se/v2/partner/client/49ad7378-121c-4a53-9894-dfd14a7b4877/account/49ad7378-121c-4a53-9894-dfd14a7b4877/deposit/swish \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "type": "qr",
    "amount": 0,
    "qrFormat": {
      "format": "jpg"
    }
  }'

Request schema

Poll for payment status

After creating the Swish session, poll for the result:

curl -i -X GET \
  https://api.sandbox.fondo.se/v2/partner/deposit/swish/49ad7378-121c-4a53-9894-dfd14a7b4877 \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Response schema

statusstring

status from Swish

Example: "PAID"
errorCodestring or null

error code from Swish

Example: "AM02"

Next: Autogiro deposits