Skip to content

Get the token balance​

GET
/data/api/v1/wallet-management/balance

Returns the token balance of the caller's company. Rewards add to it; charged queries and downloads take from it.

Authorizations​

bearerAuth

The accessToken of a sign-in or refresh answer. Valid for 5 minutes.

Type
HTTP (bearer)

Parameters​

Query Parameters

peerId

Id of the caller's company. Optional. Any other company answers 403 with code 59.

Type
string
Example"example_telco"

Responses​

The balance.

application/json
JSON
{
  
"status": {
  
  
"code": 0,
  
  
"name": "Ok"
  
},
  
"data": {
  
  
"tokenId": {
  
  
  
"definitionId": "credit#admin",
  
  
  
"accountId": "admin@example_telco"
  
  
},
  
  
"balance": 685
  
}
}

Samples​

Powered by VitePress OpenAPI