Appearance
Balances
The Balance object provides the amount available on a given Wallet. Read more about the different kind of balances in the Balance definition of the Glossary.
Balance of a specific Wallet
This checks the current Balance of the Wallet (how much money there is), making sure the funds have arrived. Note that the walletId
is expected as a query parameter.
bash
curl -X POST {baseUrl}/v1/balances?walletId={walletId} \
--header 'Authorization: Bearer {accessToken}' \
--header 'Content-Type: application/json' \
1
2
3
2
3
Returns the Balance object, with both the Authorized Balance (authorizedBalance
) and Balance (currentBalance
).
json
{
"balances": [
{
"walletId": 1317558,
"currentBalance": 280, // Actual Balance
"authorizations": 0, // Currently pending authorizations
"authorizedBalance": 280, // Balance, minus pending authorizations
"currency": "EUR", // Currency of the balance
"calculationDate": "2022-03-01 15:52:40" // When the Balance was last actualized
}
]
}
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
Balances of all Wallets
You can retrieve the Balances of multiple Wallets related to the same User. In this case, you provide a userId
instead of a walletId
in the query parameters.
bash
curl -X GET {baseUrl}/v1/balances?userId={userId} \
--header 'Authorization: Bearer {accessToken}' \
--header 'Content-Type: application/json' \
1
2
3
2
3
Returns the list of Balance of each Wallet belonging to the User.
json
{
"balances": [
{
"walletId": 3645800,
"currentBalance": 4002.5,
"authorizations": 0,
"authorizedBalance": 4002.5,
"currency": "EUR",
"calculationDate": "2024-12-11 11:06:08"
},
{
"walletId": 3645801,
"currentBalance": 100,
"authorizations": 50,
"authorizedBalance": 50,
"currency": "EUR",
"calculationDate": "2024-12-11 11:06:08"
},
{
"walletId": 3645802,
"currentBalance": 302.5,
"authorizations": 0,
"authorizedBalance": 302.5,
"currency": "EUR",
"calculationDate": "2024-12-11 11:06:08"
}
]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Check the balance history
This checks the evolution of the balance over time. Only the walletId
is mandatory, it is expected in the URL. You can optionally restrict the search timeframe using the dateFrom
and dateTo
parameters.
bash
curl -X GET {baseUrl}/core-connect/balances/{walletId}?dateFrom=2021-11-01&dateTo=2022-10-01 \
--header 'Authorization: Bearer {accessToken}' \
--header 'Content-Type: application/json'
1
2
3
2
3
json
{
"2021-03-31T09:50:02+00:00": {
"solde": 51.25,
"authorizedBalance": 51.25,
"currency": "EUR"
},
"2021-02-04T13:20:02+00:00": {
"solde": 170.00,
"authorizedBalance": 170.00,
"currency": "EUR"
},
// [...] more items are hidden
}
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
Caution – Date expected format is YYYY-MM-DD
The timeframe dates do not follow the standard format and are instead expected as YYYY-MM-DD
.