Fill out the form and you will know how much you can save per month from the payment form that has only loan interest.
Details are shown below.
http://api.key-ative.com/loan-calculators/loan-repayments-calculator/v1
loan_capacity - Loan Capacity.
interest_rate - Interest Rate per Year.
year - Duration.
My API will return loan repayment data in JSON format. Here's is sample.
{
"monthly_repayment":16104.6486904,
"min_income":46013.2819725,
"remark":"The maximum loan will be 35% of the total income",
"servertime":"Tue, 11 Aug 15 10:20:59 +0700",
"error":false,
"status":200
}
monthly_repayment - Monthly Repayment
min_income - Minimum Monthly Income
remark - Remark
servertime - Execute time on server
error - Error status (true/false)
status - HTTP Status code
$curl "api.key-ative.com/loan-calculators/loan-repayments-calculator/v1?loan_capacity=3000000&interest_rate=5&year=30"
{
"monthly_repayment":16104.6486904,
"min_income":46013.2819725,
"remark":"The maximum loan will be 35% of the total income",
"servertime":"Tue, 11 Aug 15 10:20:59 +0700",
"error":false,
"status":200
}
Here's a jQuery example.
$.get("http://api.key-ative.com/loan-calculators/loan-repayments-calculator/v1",
{loan_capacity:3000000,interest_rate:5,year:30},
function( data ) {
console.log(data);
},"json");
Here's a PHP code example.
Option 1
$url = "http://api.key-ative.com/loan-calculators/loan-repayments-calculator/v1?loan_capacity=3000000&interest_rate=5&year=30";
$json = file_get_contents($url);
if($json){
$data = json_decode($json);
var_dump($data);
}
Option 2
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"http://api.key-ative.com/loan-calculators/loan-repayments-calculator/v1");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,"loan_capacity=3000000&interest_rate=5&year=30");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$json = curl_exec ($ch);
curl_close ($ch);
$data = json_decode($json);
var_dump($data)