Consultar a recarga automática
curl --request GET \
--url https://api.validator.blubash.io/v1/billing/auto-recharge \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.validator.blubash.io/v1/billing/auto-recharge', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.validator.blubash.io/v1/billing/auto-recharge"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"amount": "1000.0000",
"disabled_reason": null,
"enabled": true,
"has_payment_method": true,
"threshold": "200.0000"
}Recargas e cobrança
Consultar a recarga automática
A configuração atual: ligada ou não, limiar, valor, se há cartão salvo e, quando nós a desligamos, o motivo (disabled_reason).
Escopo exigido: billing. Liberada para workspace suspenso.
GET
/
v1
/
billing
/
auto-recharge
Consultar a recarga automática
curl --request GET \
--url https://api.validator.blubash.io/v1/billing/auto-recharge \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.validator.blubash.io/v1/billing/auto-recharge', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.validator.blubash.io/v1/billing/auto-recharge"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"amount": "1000.0000",
"disabled_reason": null,
"enabled": true,
"has_payment_method": true,
"threshold": "200.0000"
}Authorizations
Response
A configuração da recarga automática.