Retrieve account agreements and generate PDF documents for account-related contracts.
Fondo Partner API (2.0.0)
Transactions
Transactions record movements of money and units.
- Cash transactions (CT): deposits, withdrawals, cash legs of fund orders (with settlement dates).
- Fund transactions (FT): unit movements from subscriptions/redemptions (trade & settlement dates). Use these endpoints to reconcile ledgers and statements.
Subscriptions (WebSocket & Webhooks)
Receive real-time updates from Fondo without polling.
- WebSocket: open a persistent stream for
.create,.update,.delete, andheartbeatevents. - Webhooks: register a callback URL to get signed POSTs with
current/previouspayloads. Include replay/retry handling in your consumers.
Request
Opens a persistent WebSocket channel for the specified client_id and streams real-time events defined in the event schema.
Event types:
.create – includes a current property with the newly created object.
.update – includes a current property with the updated object and a previous property with the object's prior state.
.delete – includes a previous property with the deleted object.
heartbeat – sent at intervals to keep the connection alive.
Use this endpoint to receive live updates (for example on orders, transactions, or journeys) without polling the REST API.
A heartbeat event is sent regularly to keep the connection alive.
- Mock serverhttps://docs.fondo.se/_mock/openapi/api_3.0.3/v2/partner/client/{client_id}/subscribe
- Productionhttps://api.fondo.se/v2/partner/client/{client_id}/subscribe
- Sandboxhttps://api.sandbox.fondo.se/v2/partner/client/{client_id}/subscribe
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://docs.fondo.se/_mock/openapi/api_3.0.3/v2/partner/client/49ad7378-121c-4a53-9894-dfd14a7b4877/subscribe \
-H 'Authorization: Bearer <YOUR_Token_HERE>'Websocket upgrade
- heartbeat
- account.create
- account.update
- account.delete
- client.update
- client.delete
- cashTransaction.create
- cashTransaction.update
- cashTransaction.delete
- fundTransaction.create
- fundTransaction.update
- fundTransaction.delete
- order.create
- order.update
- order.delete
- instrument.reloaded
- journey.delete
- journey.update
Event subscription object
{ "eventType": "heartbeat" }
Request
Your endpoint that Fondo calls whenever an event occurs. The POST body matches one of the event types defined in the event schema:
.create – current contains the newly created object.
.update – current contains the updated object, and previous shows the object's state before the change.
.delete – previous contains the deleted object.
Fondo sends these requests to the callback URL you register, allowing your system to react immediately to updates such as account changes, order executions, or transaction settlements. (This API doc shows it as a POST to Fondo for illustration; in practice, the call is made from Fondo to your server.)
Note that this documentation system does not yet support OpenAPI 3.1 Webhooks spec and the callback is described as a POST to Fondos API. The URL and host is an endpoint on your system.
Call back to your server with updates
- Mock serverhttps://docs.fondo.se/_mock/openapi/api_3.0.3/fondo/webhooks/callback
- Productionhttps://api.fondo.se/fondo/webhooks/callback
- Sandboxhttps://api.sandbox.fondo.se/fondo/webhooks/callback
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.fondo.se/_mock/openapi/api_3.0.3/fondo/webhooks/callback \
-H 'Content-Type: application/json' \
-d '{
"current": {
"ref": "160367146695159",
"name": "Spar",
"status": "pending",
"accountType": "isk",
"serviceType": "portfolioManagement",
"owner": {
"firstName": "Ben",
"lastName": "Rangel",
"fullName": "Ben Rangel",
"ssn": "197001010003"
},
"balance": 100,
"amounts": {
"deposited": 123.45,
"withdrawn": 123.45
},
"positions": [
{
"instrument": "string",
"units": 0,
"unitsSettled": 0,
"value": 0,
"closePrice": 0,
"gav": 0
}
],
"deleted": true,
"clientId": "string",
"bankAccounts": [
{
"iban": "SE7280000810340009783242",
"bban": "666 666 666",
"bank": "Buy n'\'' Large",
"name": "Lönekonto",
"createdDate": "2018-12-13T23:59:00.001Z",
"modifiedDate": "2018-12-13T23:59:00.001Z",
"deletedDate": "2018-12-13T23:59:00.001Z",
"validated": true
}
],
"currency": "SEK"
}
}'