Skip to content

Retrieve Credit Balance ​

Retrieves the current credit balance for your account. Maintaining a positive credit balance ensures that you can create resources.

HTTP Request ​

GET {API_URL}billing/balance

Reponse Attributes ​

status boolean ​

Indicates the result of the request to create virtual machine. true signifies success, while false indicates an error.

message string ​

A description of the status of the request.

data object ​

An object containing information about your account's credit balance.

Example ​

Request ​

curl -X GET '{API_URL}billing/balance' \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'refresh-token: {REFRESH_TOKEN}' \
-H 'Content-Type: application/json'

Response ​

{
    "status": true,
    "message": "Getting balance successful",
    "data": {
        "balance": 10.7145
    }
}