Before placing orders the account needs funds. There are two ways to deposit money into an account.
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 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.
- Sandboxhttps://api.sandbox.fondo.se/v2/partner/client/{clientId}/account/{accountId}/deposit/swish
- NPChttps://api.npc.fondo.se/v2/partner/client/{clientId}/account/{accountId}/deposit/swish
- Productionhttps://api.fondo.se/v2/partner/client/{clientId}/account/{accountId}/deposit/swish
- curl
- Node.js
- Go
- C#
- Python
- Java
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"
}
}'After creating the Swish session, poll for the result:
- Sandboxhttps://api.sandbox.fondo.se/v2/partner/deposit/swish/{swishId}
- NPChttps://api.npc.fondo.se/v2/partner/deposit/swish/{swishId}
- Productionhttps://api.fondo.se/v2/partner/deposit/swish/{swishId}
- curl
- Node.js
- Go
- C#
- Python
- Java
curl -i -X GET \
https://api.sandbox.fondo.se/v2/partner/deposit/swish/49ad7378-121c-4a53-9894-dfd14a7b4877 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'statusstring
status from Swish
Example: "PAID"
errorCodestring or null
error code from Swish
Example: "AM02"
Next: Autogiro deposits