Get Initiated Transaction Info
This API endpoint retrieves transaction information for the specified transaction ID (ACX0000000
).
//A code snippet on how to consume the API
var myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
myHeaders.append("Authorization", "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL2RlbW8ubW9uaWNyZWRpdC5jb20vYXBpL3YxL2NvcmUvYXV0aC9sb2dpbiIsImlhdCI6MTY2ODk2NzQ0MywiZXhwIjoxNjY4OTcxMDQzLCJuYmYiOjE2Njg5Njc0NDMsImp0aSI6ImF0UE9GVHE4cU4yN2lBWlciLCJzdWIiOiJVU0FETUlOIiwicHJ2IjoiMjNiZDVjODk0OWY2MDBhZGIzOWU3MDFjNDAwODcyZGI3YTU5NzZmNyJ9.shrbQUV29vXRF30qMeBN3zxlc5JXd03QyMeD6ekzudU");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://demo.backend.monicredit.com/api/v1/payment/transactions/init-transaction-info/ACX6363503A73308", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
//A code snippet on how to consume the API
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'http://demo.monicredit2.test//payment/transactions/init-transaction-info/ACX6363503A73308',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Accept: application/json',
'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL2RlbW8ubW9uaWNyZWRpdC5jb20vYXBpL3YxL2NvcmUvYXV0aC9sb2dpbiIsImlhdCI6MTY2ODk2NzQ0MywiZXhwIjoxNjY4OTcxMDQzLCJuYmYiOjE2Njg5Njc0NDMsImp0aSI6ImF0UE9GVHE4cU4yN2lBWlciLCJzdWIiOiJVU0FETUlOIiwicHJ2IjoiMjNiZDVjODk0OWY2MDBhZGIzOWU3MDFjNDAwODcyZGI3YTU5NzZmNyJ9.shrbQUV29vXRF30qMeBN3zxlc5JXd03QyMeD6ekzudU'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
GET
https://demo.backend.monicredit.com/api/v1/payment/transactions/init-transaction-info/ACX0000000
Headers
Name | Type | Description |
---|---|---|
Authroization | String | {{bearer_token}} |
{
"status": true,
"data": {
"amount": 0000,
"charges": 0000,
"total_amount": 00000,
"transid": "ACX000000",
"status": "APPROVED",
"merchant": {
"business_name": "MONI INVENTS",
"business_email": "test@test.com",
"business_logo": null,
"account_id": "AC000",
"webhook": "www.moni.ac/invoice/test",
"account": {
"id": "TEST",
"aggregator_id": "AGG0000000"
}
},
"customer": {
"wallet_id": "W0000000",
"customer_id": "CUS00000000",
"customer_email": "test@test.com",
"account_name": "MC| Test Test",
"account_number": "0000",
"bank_name": "WEMA",
"balance": 000
}
}
}
Last updated