Skip to main content
GET
/
api
/
v1
/
wallets
/
fiat
/
{walletId}
Get Wallet
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"
    }
  }
}

Path Parameters

walletId
string
required
The unique identifier of the wallet

Request

x-api-key
string
required
API Key for authentication

Request Example

curl https://api-staging.fossapay.com/api/v1/wallets/fiat/wal_abc123xyz \
  -H "x-api-key: fp_live_sk_xxxxxxxx"
const wallet = await client.wallets.get('wal_abc123xyz');
wallet = client.wallets.get('wal_abc123xyz')

Response

status
boolean
Response status
message
string
Human-readable response message
data
object

Response Example

{
  "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"
    }
  }
}

Error Codes

CodeDescription
WALLET_NOT_FOUNDWallet with this ID does not exist
UNAUTHORIZEDInvalid API key or insufficient permissions