Get Bank codes & Mobile Money Codes
This endpoint is used to get all the bank codes & mobile money codes for all the existing financial institutions in our operating countries.
Usage
          API Endpoint   -   https://api.marasoftpay.live/getbanks 
        
        
        
          Method   -   POST 
        
        
        
          Data Type   -     FORM-DATA 
        
        
        
          Limit   -   No Limit 
        
        
        | Parameter | Required? | Description | 
|---|---|---|
| enc_key | Yes | Your encryption key from MarasoftPay. Get it from your dashboard | 
| currency | No | Allowed values are: NGN and KSH It defaults to NGN. | 
Code Sample
                        
                            
<?php
    $enc_key = "yourencrytionkey";
        
    $url = "https://api.marasoftpay.live/getbanks";
        
    $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=MSFT_Enc_GXU";
    curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
            
    echo $resp = curl_exec($curl);
    curl_close($curl); 
    
?>
                        
                    
                Response Sample
                        
                            
{
        "status": "success",
        "data": {
        "banks": [
            {
                "nip_bank_code": "110005",
                "bank_name": "3LINE CARD MANAGEMENT LIMITED"
            },
            {
                "nip_bank_code": "120001",
                "bank_name": "9 PAYMENT SOLUTIONS BANK"
            },
            {
                "nip_bank_code": "090270",
                "bank_name": "AB MICROFINANCE BANK"
            },
            {
                "nip_bank_code": "070010",
                "bank_name": "ABBEY MORTGAGE BANK"
            }
        ]
    }
}