Get a summary of your account balance.


Example: Get account balance 


curl https://api.transmitsms.com/get-balance.json \
  -u 2e24c1cbdd987221e165d543f34b84bf:secret \


JSON Example

XML Example



{
  "balance":57953.503,
  "currency":"AUD",
  "error":
  {
    "code":"SUCCESS",
    "description":"OK"
  }
}


<?xmlversion="1.0"?>
<response>
    <balance>57953.503</balance>
    <currency>AUD</currency>
    <error>
        <code>SUCCESS</code>
        <description>OK</description>
    </error>
</response>


PHP Examples


<?php

 include'../../APIClient2.php';

 $api=new transmitsmsAPI("API_KEY",'API_SECRET');

 



 $result=$api->getBalance();

 

 if($result->error->code=='SUCCESS')

 {

     echo "Your balance is {$result->balance} {$result->currency}";

 }

 else

 {

     echo"Error: {$result->error->description}";

 }