Skip to main content

Get credit balance

Returns the credit balance, its USD equivalent, the remaining seconds and the auto-recharge setting.

Responses
200

Successful Response

Schema — OPTIONAL
ok Ok — OPTIONAL

Indicates if the request was successful or not.

data object

User credit balance details.

credits Credits

Current credit balance

credits_usd_equivalent Credits Usd Equivalent

Approximate USD value of credits

remaining_seconds Remaining Seconds

Balance in seconds at the current plan rate, rounded down; 0 when the balance or the plan rate is not positive

autorecharge_enabled Autorecharge Enabled — OPTIONAL

Whether auto-recharge is on; null when never set up

autorecharge_threshold_minutes Autorecharge Threshold Minutes — OPTIONAL

Auto-recharge buys the package when the remaining minutes drop below this value

autorecharge_package_id Autorecharge Package Id — OPTIONAL

Package that auto-recharge buys

autorecharge_monthly_limit_cents Autorecharge Monthly Limit Cents — OPTIONAL

Maximum auto-recharge spend per calendar month (UTC), in US cents; null means no limit

autorecharge_paused_reason Autorecharge Paused Reason — OPTIONAL

Why auto-recharge stopped buying; null unless a payment, the package or the monthly limit stopped it

default

Default Response

Schema — OPTIONAL
ok Ok — OPTIONAL

Indicates if the request was successful or not.

errors object[]

List of errors

type uri

Possible values: 1 ≤ length ≤ 2083

A string containing a URI reference that identifies the problem type.

status Status

Possible values: 399 < value < 600

A number indicating the HTTP status code.

title Title

Possible values: 5 ≤ length

A string containing a short, human-readable summary of the problem type.

detail Detail

Possible values: 5 ≤ length

A string containing a human-readable explanation specific to this occurrence of the problem.

instance Instance

Possible values: 1 ≤ length

A string containing a URI reference that identifies the specific occurrence of the problem.

error_code Error Code

A Number that indicates the error type that occurred.