APIGet Balance

Get Balance

Retrieve the wallet balance for a user within a project.

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: