Consultar saldo líquido atual
curl --request GET \
--url https://gateway.staging.azentech.dev/api/merchant/current/balance \
--header 'Authorization: Bearer <token>'import requests
url = "https://gateway.staging.azentech.dev/api/merchant/current/balance"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gateway.staging.azentech.dev/api/merchant/current/balance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"amount": 1250.75
}{
"error": {
"message": {
"base": [
"Not authenticated"
]
},
"status": 401
}
}{
"error": {
"message": {
"fatal": "Something went wrong. Please refer to support with the following code: 0000000000"
},
"status": 500
}
}Saldos
Consultar saldo líquido atual
Consulta o saldo líquido atual da carteira principal.
GET
/
api
/
merchant
/
current
/
balance
Consultar saldo líquido atual
curl --request GET \
--url https://gateway.staging.azentech.dev/api/merchant/current/balance \
--header 'Authorization: Bearer <token>'import requests
url = "https://gateway.staging.azentech.dev/api/merchant/current/balance"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gateway.staging.azentech.dev/api/merchant/current/balance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"amount": 1250.75
}{
"error": {
"message": {
"base": [
"Not authenticated"
]
},
"status": 401
}
}{
"error": {
"message": {
"fatal": "Something went wrong. Please refer to support with the following code: 0000000000"
},
"status": 500
}
}Comportamento observado
- O valor vem da carteira principal vinculada ao estabelecimento.
Os exemplos usam identificadores e credenciais sintéticos. Os resultados do processador dependem do credenciamento e da configuração do estabelecimento.