Skip to main content
GET
/api/v1/billing/balance
يُبلغ balances عن diem و usd فقط. لا تظهر الأرصدة المُجمّعة (bundled credits) كحقل رقمي. إذا كانت الأرصدة المُجمّعة هي المصدر الذي سيُخصم منه طلبك التالي، تُعيد consumptionCurrency القيمة BUNDLED_CREDITS. لمعرفة المقدار المتبقي من الأرصدة المُجمّعة، تحقّق من venice.ai/settings/api. ولمعرفة كيف تختار الـ API بين DIEM والأرصدة المُجمّعة و USD، راجع VVV و DIEM.

التفويضات

Authorization
string
header
مطلوب

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

الاستجابة

Successful response

Current balance information for the authenticated user

canConsume
boolean
مطلوب

Whether the user has sufficient balance to make API requests

مثال:

true

consumptionCurrency
enum<string> | null
مطلوب

The currency that will be used for consumption (DIEM or USD)

الخيارات المتاحة:
USD,
VCU,
DIEM,
BUNDLED_CREDITS
مثال:

"DIEM"

balances
object
مطلوب
diemEpochAllocation
number
مطلوب

Total DIEM allocation for the current epoch (from staking). Use with balances.diem to calculate usage percentage.

مثال:

100