Check Account Balance
You can check your balance for the different currencies available via the API https://api.marasoftpay.live/checkbalance
How to Integrate
1. Post requied data to https://api.marasoftpay.live/checkbalance
Usage
API Endpoint - https://api.marasoftpay.live/checkbalance
Method - POST
Data Type - FORM-DATA
Limit - No Limit
Required Parameters
Parameter | Required? | Description |
---|---|---|
enc_key | Yes | Your encryption key from Marasoft Pay. Get it from your dashboard. |
Code Examples
<?php
$enc_key = "your encryption key";
$url = "https://api.marasoftpay.live/checkbalance";
$curl = curl_init($url);
curl_setopt($curl,CURLOPT_URL,$url);
curl_setopt($curl,CURLOPT_POST,true);
curl_setopt($curl,CURLOPT_RETURNTRANSFER,true);
$headers = array (
"Content-Type: application/x-www-form-urlencoded",
);
curl_setopt($curl,CURLOPT_HTTPHEADER,$headers);
$data = "enc_key=$enc_key";
curl_setopt($curl,CURLOPT_POSTFIELDS,$data);
echo $resp = curl_exec($curl);
curl_close($curl);
router.get("/generate-dynamic-account", (req,res) => {
const enc_key = "your encryption key";
const data = { enc_key };
const url = "https://api.marasoftpay.live/checkbalance";
axios
.post(url,data)
.then((response) => {
console.log(response);
})
.catch((error)=>{
console.log(error);
})
})
Url Response
Below is what your response should look like.
{ "status" : true, "available_balance" : 10671, "ledger_balance" : 0 }