List Transactions
Get a list of transactions on Terraswitch account.
GET {{ BASE_URL }}/v1/corporate/transactions
Optional 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/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": 10,
"pagination": {
"next": {
"page": 2,
"limit": 1
}
},
"data": [
{
"status": "successful",
"type": "credit",
"reference": "VPXf6126884-7bfc4b35",
"vaceRef": "VPXf6126884-7bfc4b35",
"amount": 5000,
"currency": "NGN",
"description": "incoming payment of NGN5,000 to Blueray Solutions Limited via payment link",
"feature": "payment-link",
"fee": 200,
"ipAddress": "172.31.63.134",
"bank": {
"name": "",
"accountName": "",
"accountNo": "",
"bankCode": ""
},
"card": {
"brand": "verve",
"cardBin": "507850",
"cardLast": "7812",
"expiryMonth": "01",
"expiryYear": "2025"
},
"customer": {
"firstName": "Oluwatobi",
"lastName": "Immanuel",
"email": "tobi@test.com",
"phoneNumber": "08137031202",
"phoneCode": "+234",
"city": "",
"state": "",
"accountNo": "",
"sourceAccount": ""
},
"vasData": {
"ref": "",
"type": "",
"network": "",
"phoneNumber": "",
"billerCode": "",
"billerName": "",
"hasToken": false,
"token": ""
},
"createdAt": "2024-01-13T06:12:47.241Z",
"updatedAt": "2024-01-13T06:12:53.141Z"
}
],
"message": "successful",
"status": 200
}
Last updated