Get Wallet Transactions
Get list of transactions attached to your Terraswitch wallet.
GET {{ BASE_URL }}/v1/corporate/wallet-transactionsOptional Query Parameters
Property
Data Type
Description
Example
limit
string
Number of records per page
50
page
string
Page number to view
1
order
string
Arrangement of records in descending or ascending order
"asc" or "desc"
import Axios from 'axios';
// set the api url
const API_URL = `${BASE_URL}/v1/corporate/wallet-transactions`;
// make request using axios
Axios({
method: "GET",
url: `${API_URL}`,
headers: {
lg: 'en',
ch: 'web'
Authorization: `Bearer ${API_KEY}`,
'Content-Type': 'application/json',
}
}).then((resp) => {
console.log(resp)
}).catch((err) => {
console.log(err)
}){
"error": false,
"errors": [],
"count": 1,
"total": 11,
"pagination": {
"next": {
"page": 2,
"limit": 1
}
},
"data": [
{
"status": "successful",
"type": "debit",
"reference": "VPXa62a1ccd-ebce4367",
"vaceRef": "VPXa62a1ccd-ebce4367",
"amount": 4150,
"currency": "",
"description": "Wallet transfer from Softklin Services to 0252872742|AGBELEYE OLUWATOBI EMMANUEL",
"feature": "wallet-refund",
"fee": 0,
"ipAddress": "",
"isSettled": false,
"bank": {
"name": "",
"accountName": "",
"accountNo": "",
"bankCode": ""
},
"card": {
"brand": "",
"cardBin": "",
"cardLast": "",
"expiryMonth": "",
"expiryYear": ""
},
"customer": {
"ref": "",
"firstName": "AGBELEYE OLUWATOBI EMMANUEL",
"lastName": "AGBELEYE OLUWATOBI EMMANUEL",
"email": "",
"accountNo": "0252872742",
"sourceAccount": "Vacepay",
"city": "",
"phoneNumber": "",
"phoneCode": "",
"state": ""
},
"vasData": {
"ref": "",
"type": "",
"network": "",
"phoneNumber": "",
"billerCode": "",
"billerName": "",
"hasToken": false,
"token": ""
},
"createdAt": "2024-01-02T10:05:11.092Z",
"updatedAt": "2024-01-02T10:05:58.634Z"
}
],
"message": "successful",
"status": 200
}Last updated