Consultar o saldo
curl --request GET \
--url https://api.validator.blubash.io/v1/balance \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.validator.blubash.io/v1/balance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.validator.blubash.io/v1/balance"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"available": "487.5000",
"balance": "500.0000",
"currency": "BRL",
"monthly_limit": null,
"reserved": "12.5000",
"spent_this_month": "37.2000"
}
Saldo e extrato
Consultar o saldo
available = balance − reserved: é o que novas consultas e lotes podem usar. spent_this_month soma reservas e consumos do mês corrente (fuso de São Paulo); monthly_limit é o limite mensal em vigor (null = sem limite). Não aceita parâmetros de query.
Escopo exigido: billing. Liberada para workspace suspenso.
GET
/
v1
/
balance
Consultar o saldo
curl --request GET \
--url https://api.validator.blubash.io/v1/balance \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.validator.blubash.io/v1/balance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.validator.blubash.io/v1/balance"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"available": "487.5000",
"balance": "500.0000",
"currency": "BRL",
"monthly_limit": null,
"reserved": "12.5000",
"spent_this_month": "37.2000"
}
Authorizations
Response
O saldo do workspace.