get
https://dev.fintavapay.com/api/dev/customer/wallet/balance/
This endpoint helps you get the wallet balance of a particular customer. The only parameter needed for this is the walletId. The walletId is created after you run the create customer endpoint successfully.
WalletId is different from customerID
Please note that the WalletId is different from the customerID. To get the WalletId, run the Get customer list endpoint. The id within the wallet object is the walletId.
Below is a sample response of the Get customer list endpoint. The walletId is within the wallet object
{
"data": {
"userInfo": {
"firstName": "john",
"lastName": "ugochukwu",
"phoneNumber": "08030135863",
"roles": [
"USER"
],
"userType": "CUSTOMER",
"address": "lugbe,abuja",
"bvn": "21000000003",
"dateOfBirth": "1992-05-17",
"id": "ecca57f9-a1be-4463-a719-937ef287fb78",
"createdAt": "2023-10-08T15:51:30.312Z",
"updatedAt": "2023-10-08T15:51:30.312Z"
},
"wallet": {
"id": "0b134510-c981-40f9-a0a9-983ab22544e1",
"accountNumber": "1109854154",
"accountName": "john ugochukwu",
"isFrozen": false,
"status": "active",
"fundMethod": "STATIC_FUND"
}
},
"status": 200,
"message": "successful"
}