Verify Transaction
Get a single transaction on your Terraswitch account
POST {{ BASE_URL }}/v1/corporate/verify-transaction
Url Parameters
Property
Data Type
Description
Example
Required
reference
string
The transaction reference
"TSX014ba225-00914672"
Yes
import Axios from 'axios';
// set the api url
const API_URL = `${BASE_URL}/v1/corporate/verify-transaction`;
// define request data
const data = {
reference: "VPX014ba225-00914672"
}
// make request using axios
Axios({
method: "POST",
url: `${API_URL}`,
headers: {
lg: 'en',
ch: 'web'
Authorization: `Bearer ${API_KEY}`,
'Content-Type': 'application/json',
},
data: data
}).then((resp) => {
console.log(resp)
}).catch((err) => {
console.log(err)
})
{
"error": false,
"errors": [],
"data": {
"status": "successful",
"type": "debit",
"reference": "TSX65f83c03-c11c4e54",
"merchantRef": "TSX65f83c03-c11c4e54",
"amount": 1000,
"currency": "NGN",
"description": "Wallet transfer from Blueray Solutions Limited to 0252872742|AGBELEYE OLUWATOBI EMMANUEL",
"feature": "wallet-transfer",
"fee": 100,
"ipAddress": "",
"bank": {
"name": "",
"accountName": "",
"accountNo": "",
"bankCode": ""
},
"card": {
"brand": "",
"cardBin": "",
"cardLast": "",
"expiryMonth": "",
"expiryYear": ""
},
"customer": {
"firstName": "AGBELEYE OLUWATOBI EMMANUEL",
"lastName": "AGBELEYE OLUWATOBI EMMANUEL",
"email": "",
"phoneNumber": "",
"phoneCode": "",
"city": "",
"state": "",
"accountNo": "0252872742",
"sourceAccount": "terraswitch"
},
"vasData": {
"ref": "",
"type": "",
"network": "",
"phoneNumber": "",
"billerCode": "",
"billerName": "",
"hasToken": false,
"token": ""
},
"createdAt": "2024-01-12T21:12:30.629Z",
"updatedAt": "2024-01-12T21:12:59.204Z"
},
"message": "successful",
"status": 200
}
Last updated