billing

Get current credit balance

[cloud-only] Returns the authenticated user's current credit balance and usage summary.

get/api/billing/balance

Response

Balance info

amount_microsnumber double required

The total remaining balance in microamount (1/1,000,000 of the currency unit)

prepaid_balance_microsnumber double

The remaining balance from prepaid commits in microamount

cloud_credit_balance_microsnumber double

The remaining balance from cloud credits in microamount

pending_charges_microsnumber double

The total amount of pending/unbilled charges from draft invoices in microamount

effective_balance_microsnumber double

The effective balance (total balance minus pending charges). Can be negative if pending charges exceed the balance.

currencystring required

Currency code

Example response

{
  "currency": "usd"
}

Changes