Get Available Balance
Use getConversiveBalance() to retrieve the current SMS and MMS credits available in the connected account.
When to use this API
This API is useful for:
- validating account capacity before bulk sends
- showing available credits in admin screens
- pre-send checks in workflows or scheduled jobs
- operational monitoring
Method signature
Inputs
This API takes no input parameters.
Response type
Response fields
Example
Example success response
Example error response
Error behavior
The Confluence page documents generic error behavior for this API:
response = 'ERROR'responseMessagecontains the reason for failureSMSCreditsandMMSCreditsmay be null or empty depending on the failure condition
Because this API takes no inputs, the main implementation concern is handling the returned error response and preventing downstream logic from assuming credits exist.
Best practices
- call this API before large SMS or MMS sends
- surface the balance in admin or monitoring screens
- guard downstream logic against null credit values
- log
responseMessagewhen troubleshooting
