Skip to main content

Check Wallet Balance

Get the current balance of a Chimoney wallet.

Endpoint

GET /v0.2/wallets/lookup

Description

This endpoint allows you to retrieve the current balance and details of a Chimoney wallet. You can lookup wallets by email, phone number, or Chimoney tag.

Authentication

Requires API key authentication. Include your API key in the request headers:

X-API-KEY: your_api_key_here

Query Parameters

ParameterTypeRequiredDescription
emailstringOptional*Email address associated with the wallet
phonestringOptional*Phone number associated with the wallet
tagstringOptional*Chimoney tag for the wallet

*At least one parameter is required

Example Request

cURL

curl -X GET "https://api.chimoney.io/v0.2/wallets/lookup?email=user@example.com" \
-H "X-API-KEY: your_api_key_here" \
-H "Content-Type: application/json"

JavaScript

const response = await fetch('https://api.chimoney.io/v0.2/wallets/lookup?email=user@example.com', {
method: 'GET',
headers: {
'X-API-KEY': 'your_api_key_here',
'Content-Type': 'application/json'
}
});

const data = await response.json();

Example Response

Success Response (200)

{
"status": "success",
"data": {
"id": "wallet_123456789",
"email": "user@example.com",
"phone": "+1234567890",
"tag": "user123",
"balance": {
"USD": 150.75,
"NGN": 62500.00,
"GHS": 850.25
},
"created_at": "2024-01-15T10:30:00Z",
"verified": true,
"status": "active"
}
}

Error Response (404)

{
"status": "error",
"error": "Wallet not found",
"message": "No wallet found with the provided credentials"
}

Response Fields

FieldTypeDescription
statusstringResponse status ("success" or "error")
data.idstringUnique wallet identifier
data.emailstringEmail associated with the wallet
data.phonestringPhone number associated with the wallet
data.tagstringChimoney tag for the wallet
data.balanceobjectBalance in different currencies
data.created_atstringISO 8601 timestamp of wallet creation
data.verifiedbooleanWhether the wallet is verified
data.statusstringWallet status (active, suspended, etc.)

Error Codes

Status CodeErrorDescription
400Bad RequestMissing required parameters or invalid format
401UnauthorizedInvalid or missing API key
404Not FoundWallet not found with provided credentials
429Rate LimitedToo many requests
500Internal Server ErrorServer error occurred

Notes

  • The balance object contains amounts in various supported currencies
  • Only verified wallets can perform certain operations
  • Rate limiting applies: 100 requests per minute per API key
  • This endpoint does not reveal sensitive information like transaction history