Get Wallet Transactions
Last updated
Last updated
//A code snippet of 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/banking/wallet/transactions?from=2022-03-08&to=2022-03-09&search=fund&type=credit&status=pending", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
//A code snippet of how to consume the API
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://demo.backend.monicredit.com/api/v1/banking/wallet/transactions?from=2022-03-08&to=2022-03-09&search=fund&type=credit&status=pending',
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
{{BaseURL}}/banking/wallet/transactions
Name | Type | Description |
---|---|---|
{
"success": true,
"data": {
"current_page": 1,
"data": [
{
"id": 1,
"wallet_id": "W0000",
"order_id": null,
"amount": 000,
"type": "credit",
"status": "pending",
"balance": "000",
"tracking_reference": "W-622778f989bf4",
"description": "Funding wallet",
"date": "2022-03-08"
}
],
"first_page_url": "http://monicredit2.test/api/v1/wallet/transactions?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://monicredit2.test/api/v1/wallet/transactions?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "http://monicredit2.test/api/v1/wallet/transactions?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"next_page_url": null,
"path": "http://monicredit2.test/api/v1/wallet/transactions",
"per_page": 20,
"prev_page_url": null,
"to": 4,
"total": 4
}
}
Name | Type | Description |
---|---|---|
from
String
2022-01-01
to
String
2022-03-01
search
String
fund
type
String
credit
status
String
pending
Authorization*
String
{{bearer_token}}