Skip to content

Retrieve Credit Balance

Query the current account credit balance. A positive balance is essential for resource allocation and service provisioning.

HTTP Request

GET {API_URL}billing/balance

Response Structure

status boolean

Operation result indicator. Returns true for successful execution, false when encountering an error.

message string

Descriptive response indicating the outcome of the balance retrieval request.

data object

Contains current account balance information and related financial metrics.

Implementation Example

Request

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

Response

json
{
    "status": true,
    "message": "Account balance retrieved successfully",
    "data": {
        "balance": 100.8145
    }
}