Get Wallet Transactions

//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));

GET {{BaseURL}}/banking/wallet/transactions

Query Parameters

NameTypeDescription

from

String

2022-01-01

to

String

2022-03-01

search

String

fund

type

String

credit

status

String

pending

Headers

NameTypeDescription

Authorization*

String

{{bearer_token}}

{
    "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
    }
}

Last updated