cURL
curl --request GET \ --url https://api.example.com/api/v1/wallets/fiat/{walletId} \ --header 'x-api-key: <x-api-key>'
{ "status": true, "message": "wallet retrieved successfully", "data": { "id": "wal_abc123xyz", "customerId": "cus_123456789", "availableBalance": "10000.00", "ledgerBalance": "10000.00", "walletName": "Main Wallet", "customerType": "individual", "virtualAccount": { "accountNumber": "1234567890", "bankCode": "035", "bankName": "Wema Bank" } } }
Retrieve details of a specific fiat wallet
curl https://api-staging.fossapay.com/api/v1/wallets/fiat/wal_abc123xyz \ -H "x-api-key: fp_live_sk_xxxxxxxx"
const response = await fetch('https://api-staging.fossapay.com/api/v1/wallets/fiat/wal_abc123xyz', { headers: { 'x-api-key': 'fp_live_sk_xxxxxxxx' } }); const data = await response.json(); const wallet = data.data;
import requests url = "https://api-staging.fossapay.com/api/v1/wallets/fiat/wal_abc123xyz" headers = {"x-api-key": "fp_live_sk_xxxxxxxx"} response = requests.get(url, headers=headers) data = response.json() wallet = data["data"]
Show properties
WALLET_NOT_FOUND
UNAUTHORIZED