Skip to content

billing.balance

Credit balance.

Reference

GET/api/v1/billing/balance

Auth
API key in X-API-Key
Content
none
Returns
200 · Response Get Balance Api V1 Billing Balance Get

Current credit, and whether we can sell more of it. ``topups_enabled`` is false when Razorpay keys are missing *or* when the webhook secret is — checkout without a webhook charges the customer and credits nobody, which is worse than an honest "unavailable".

Arguments

This method takes no arguments.

Example request

curl -X GET "https://api.decibyl.ai/api/v1/billing/balance" \
  -H "X-API-Key: dcb_your_key"

Response

{}

Errors

StatusWhen
404Not found
422Validation Error