Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 875 Bytes

Get_Credit_Balance.md

File metadata and controls

49 lines (31 loc) · 875 Bytes
description
Retrieve the user's current credit balance.

User Credit Balance

Retrieve the current credit balance for your account.

HTTP Request

GET {API_URL}/users/credits

Response Attributes

data dict

Returns the data object, containing the user credit balance in the field available_balance.

status string

Indicates the result of the request to get your credit balance. success signifies success, while failed indicates an error.

message string

A description of the status of the request.

Example

Request

curl -X GET '{API_URL}/users/credits'
-H 'Authorization: Bearer {TOKEN/KEY}'

Response

{
    "data": {
        "available_balance": "1228.55600"
    },
    "message": "User credit balance successfully retrieved",
    "status": "success"
}