Faturamento
Saldo de cobrança
Get current balance information for the authenticated user. Returns remaining DIEM/USD balances and total DIEM epoch allocation for calculating usage percentage.
GET
/api/v1/billing/balance
balances reporta apenas diem e usd. Créditos empacotados não aparecem como um campo numérico. Se os créditos empacotados forem a fonte da qual sua próxima requisição será debitada, consumptionCurrency retorna BUNDLED_CREDITS. Para ver o valor restante de créditos empacotados, verifique venice.ai/settings/api. Para saber como a API escolhe entre DIEM, créditos empacotados e USD, consulte VVV & DIEM.Autorizações
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Resposta
Successful response
Current balance information for the authenticated user
Whether the user has sufficient balance to make API requests
Exemplo:
true
The currency that will be used for consumption (DIEM or USD)
Opções disponíveis:
USD, VCU, DIEM, BUNDLED_CREDITS Exemplo:
"DIEM"
Total DIEM allocation for the current epoch (from staking). Use with balances.diem to calculate usage percentage.
Exemplo:
100