S M S

Getting Account Balance

GET
/sms/v1/account/balance

Through Get Your Current Balance API, you can directly retrieve your current Cequens account balance. You can also get the current balance of your sub-accounts, along with their details, in case your account is a master account.

Using Cequens Get Your Current Balance API is quite simple. First, submit an HTTP Request to the API’s designated URL, and then receive a Response that includes your account balance details.

Authorization

bearerAuth
AuthorizationBearer <token>

JWT access token returned by Signing In (POST /auth/v1/tokens/).

In: header

Response Body

application/json

application/json

curl -X GET "https://example.com/sms/v1/account/balance"
"{\n  \"replyCode\": 0,\n  \"replyMessage\": \"string\",\n  \"requestId\": \"string\",\n  \"clientRequestId\": 0,\n  \"requestTime\": \"2017-07-06T10:45:11.129Z\",\n  \"data\": {\n    \"Account\": {\n      \"UserName\": \"string\",\n      \"Credit\": 0\n    },\n    \"SubAccounts\": [\n      {\n        \"UserName\": \"string\",\n        \"Credit\": 0,\n        \"BalanceMode\": \"Allocated balance\"\n      }\n    ]\n  }\n}"