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"