Consultar saldo
curl --request GET \
--url https://onlyascent.pro/api/v1/balance \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://onlyascent.pro/api/v1/balance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://onlyascent.pro/api/v1/balance"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "balance",
"currency": "BRL",
"available_cents": 123,
"reserved_cents": 123
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Carteira
Consultar saldo
Leia os valores disponíveis e reservados da conta em centavos de real.
GET
/
balance
Consultar saldo
curl --request GET \
--url https://onlyascent.pro/api/v1/balance \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://onlyascent.pro/api/v1/balance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://onlyascent.pro/api/v1/balance"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "balance",
"currency": "BRL",
"available_cents": 123,
"reserved_cents": 123
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}