Getting 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 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}"Sending SMS POST
Use messages endpoint to send Single or Bulk SMS. When you send SMS messages using this API, the API will return to you the sent messages’ ID to track them later using Cequens Get Message Details by ID API.
Getting Messages Count GET
You can know the count of SMS messages you have sent during a certain period. The API will return an integer that represents the count of SMS messages sent during the provided date range in the API request.To use Cequens Get Sent Messages Count API, first submit an HTTP Request with the date range, then receive a Response that includes the count of SMS messages sent during the provided date range.