Get account or API key balance
Read the wallet balance for the current user or API key.
Get account or API key balance
curl -X GET "https://router.chbcloud.com/v1/me/balance" \ -H "Authorization: Bearer <YOUR_API_KEY>"
Successful response.
{
"data": {
"balance": 0,
"currency": "string"
},
"message": "string",
"success": true
}Returns the current wallet balance. Omit scope to query the user balance, or set scope=token to query the current API key balance. The operation is read-only and has a minimum recommended interval of five minutes.
Use the InnoPaaS AppKey as a Bearer token. Create or manage keys in Console. API key guide
Authorization
AuthorizationQuery Parameters
scopeOptional. Set to token to query the current API key balance; omit for the user balance.
Response
application/jsonSuccessful response.
dataBalance result.
Show child attributesHide child attributes
data.balanceCurrent balance.
data.currencyCurrency, normally CNY.
messageResult message; empty on success.
successWhether the lookup succeeded.
{
"data": {
"balance": 0,
"currency": "string"
},
"message": "string",
"success": true
}