Checking Account Statements
You can genrate account statements with custom date ranges using the endpoint https://api.marasoftpay.live/account_history/account_statement. This shows a history for all the collection and payout activities that have occured within the specified date range
How to Integrate
1. Post required data to the endpoint https://api.marasoftpay.live/account_history/account_statement
Usage
API Endpoint - https://api.marasoftpay.live/account_history/account_statement
Method - POST
Data Type - FORM-DATA
Limit - No Limit
Param | Required? | Description |
---|---|---|
enc_key | yes | Your encryption Key |
start_date | yes | Start Date in format d-m-y |
end_date | yes | End Date in format d-m-y |
Code example
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.marasoftpay.live/account_history/account_statement',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array('enc_key' => 'your encryption key', 'start_date' => '06-03-2023', 'end_date' => '22-03-2023'),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
?>
var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append('enc_key', 'your encryption key');
data.append('start_date', '06-03-2023');
data.append('end_date', '22-03-2023');
var config = {
method: 'post',
url: 'https://api.marasoftpay.live/account_history/account_statement',
headers: {
...data.getHeaders()
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
import requests
url = "https://api.marasoftpay.live/account_history/account_statement"
payload={'enc_key': 'your encryption key',
'start_date': '06-03-2023',
'end_date': '22-03-2023'}
files=[
]
headers = {}
response = requests.request("POST", url, headers=headers, data=payload, files=files)
print(response.text)
Response
{
"request_status": true,
"transactions": [
{
"transaction_ref": "null",
"msft_reference": "_21258021178182",
"currency": "NGN",
"transaction_amount": "300",
"settled_amount": "298.5",
"charges": "1.5",
"balance_after": "16896",
"channel": "RESERVED_ACCOUNT",
"type": "CREDIT",
"created_at": "2023-Mar-06 12: 48: 01 AM"
},
{
"transaction_ref": "ref_CVAGDKKAURWH34566",
"msft_reference": "_21258021178182",
"currency": "NGN",
"transaction_amount": "1000",
"settled_amount": "1000",
"charges": "50",
"balance_after": "16896",
"channel": "PAYOUT",
"type": "DEBIT",
"created_at": "2023-Mar-06 12: 48: 01 AM"
}
]
}
Error Response
{
"request_status": false,
"error": "start_date cannot be greater than end_date",
}