APIGet Balance API - Wallet Credits | BotSubscription

Get Balance - Check Member Wallet Credits via API

Check how much credit a member has in their wallet. BotSubscription allows users to maintain a balance that can be applied toward future subscriptions, and this endpoint lets you query that amount along with the configured currency.

GET/v2/projects/{project_id}/balance

Authorization

Bearer TokenRequired

Path Parameters

project_idstringRequired

The unique identifier of the project.

Query Parameters

user_idstringRequired

The user ID to query balance for.

Request
curl -X GET "https://api.botsubscription.com/v2/projects/YOUR_PROJECT_ID/balance?user_id=123456789012345678" \
  -H "Authorization: Bearer YOUR_TOKEN"
Successapplication/json
{
  "ok": true,
  "request_id": "11111111-1111-1111-1111-111111111111",
  "method": "GET",
  "path": "/v2/projects/YOUR_PROJECT_ID/balance",
  "code": 200,
  "data": {
    "balance": "25.00",
    "currency": "USD"
  }
}

Last updated: