Obtener balance de cuentas
Some payment services allow merchants to check their available balance at any moment. This can be done using both API and control panel.
Panel
To check the available account balance using the control panel, go to the client details and click on the account balance tab.
Api
In order to check the available balance using the API, the following endpoint must be used:
curl --request GET 'https://api.paylands.com/v1/sandbox/balance/{client_uuid}' \
--header 'Authorization: pk_test_3c140607778e1217f56ccb8b50540e00' \
--header 'Content-Type: application/json' \
And we will receive a response like this:
{
"message": "OK",
"code": 200,
"current_time": "2024-04-16T13:10:26+0200",
"balances": [
{
"service_uuid": "F4EB8DF8-6369-4E35-8BD0-45A29AF90616",
"type": "DEVENGO",
"service_name": "Devengo Terminal",
"identifier": "ES2067130002000000458101",
"total_amount": {
"amount": "26205.05",
"currency": "EUR"
},
"available_amount": {
"amount": "26205.05",
"currency": "EUR"
}
}
]
}