Use this api to check sms account balance.

URL - https://app.bongasms.co.ke/api/check-credits

METHOD - GET

Response : JSON

Request Parameters

NameDescriptionTypeOption
apiClientIDAPI Client ID (Provided above)NumericMandatory
keyAPI Key (Provided above)StringMandatory

Response Parameters

NameDescriptionTypeOption
statusStatus of the request (222 - success, 666 - error)NumericMandatory
status_messageDescription of statusStringMandatory
client_nameName of oganization as registered on BongaStringMandatory
sms_creditsSMS creditsStringMandatory
sms_thresholdTop up alert thresholdStringMandatory
api_client_idOrganization Bonga ID, assigned on registrationStringMandatory
curl --location --request GET 'https://app.bongasms.co.ke/api/check-credits?apiClientID=605&key=SLn4VDUnPRomPjzB'


 
 {
    "status": 222,
    "status_message": "fetched credits",
    "api_client_id": 605,
    "client_name": "Kenya LTD",
    "sms_credits": 123455,
    "sms_threshold": 500,
	"email_credits": 0,
    "utility_credits": 0
 }
 
 

 
 {
    "status": 222,
    "status_message": "fetched credits",
    "api_client_id": 605,
    "client_name": "Kenya LTD",
    "sms_credits": 123455,
    "sms_threshold": 500,
	"email_credits": 0,
    "utility_credits": 0
 }