Skip to main content

Check My Balance

Endpoint:

https://api.betatel.com/api/billing/me/balance

Method: GET

Description: Retrieve the current balance for a specific user.

Request Headers

The request must include an Authorization header with a valid API key for authentication:

HeaderValueRequiredDescription
x-api-key{{x-api-key}}YesThe authentication api key to verify the user's identity

Let’s Dive Into the Code!

Choose your preferred programming language and use the provided examples to integrate the get check user balance.

Example - cURL
curl --location 'https://api.betatel.com/api/billing/me/balance' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY3ZWE2MjJiMDU1MjkzNWZhYzVjZDFhZCIsImVtYWlsIjoicG92aWQ2ODFAbm9rZG90LmNvbSIsInJvbGUiOiJ1c2VyIiwiaWF0IjoxNzQzNDI4Mjk3LCJleHAiOjE3NDM0MzE4OTd9.dS4w_GEw4jVoMm5pvv6uoYnC9TYGO3rAbUeRMxK1iow' \
--header 'x-api-key: ••••••'

Response

JSON Schema:

{
"userId": "user123",
"balance": 245.65,
"currency": "USD",
"lastUpdated": "2025-03-18T14:32:05Z"
}
FieldTypeDescription
userIdstringThe unique identifier for the user (e.g., "user123").
balancenumberThe current balance of the user (e.g., 245.65).
currencystringThe currency in which the balance is represented (e.g., "USD").
lastUpdatedstringThe timestamp of the last update to the user's balance (e.g., "2025-03-18T14:32:05Z").