Name Enquiry Implementation Guide
This guide shows you how to implement bank account validation for Nigerian Naira (NGN) payouts using Mavapay’s Name Enquiry API.Name enquiry is currently supported for Nigerian Naira (NGN) accounts only.
API Reference
View the complete API documentation for the Name Enquiry endpoint
Recommended Flow
Follow this flow to collect and validate beneficiary bank details:1. Fetch List of Supported Banks
Get all Nigerian banks with their NIP bank codes using the Get Bank Codes endpoint.2. Let User Select Their Bank
Present the list of banks to your user and let them select their bank. Store the bank name and NIP bank code.3. Collect Account Number
Ask the user to enter their 10-digit Nigerian bank account number.4. Verify Account Details
Call the Name Enquiry endpoint to get the account name.5. Display for Confirmation
Show the retrieved account name to the user for confirmation.6. Create Quote with Validated Details
Once confirmed, use the validated details to create a quote.Complete Implementation Example
React/Next.js Example
Node.js/Express Example
API Endpoints Reference
For complete API documentation, see:- Get Bank Codes endpoint - Fetch list of Nigerian banks
- Name Enquiry endpoint - Validate bank account details
Quick Reference
Get Bank Codes:Error Handling
Common Errors
Example Error Response
Best Practices
- Cache Bank List: Fetch and cache the bank list instead of fetching on every page load
- Validate Before Enquiry: Check account number is exactly 10 digits before calling API
- Show Loading State: Display loading indicator during verification
- Handle Errors Gracefully: Provide clear error messages to users
- Confirm Before Proceeding: Always show retrieved name for user confirmation
- Store Validated Data: Save validated beneficiary details for future use
Security Considerations
- API Key Protection: Never expose your API key in frontend code
- Backend Validation: Always verify account details on your backend
- Rate Limiting: Implement rate limiting to prevent abuse
- Input Validation: Validate all user inputs before making API calls
Limitations
- Only available for Nigerian (NGN) bank accounts
- Not available for South African Rand (ZAR) or Kenyan Shilling (KES)
- Requires valid NIP bank code
- Account must be active and valid
Related Documentation
Name Enquiry API
Complete API reference for the Name Enquiry endpoint
Get Bank Codes API
API reference for fetching Nigerian bank codes
Beneficiary Formats
Required formats for all supported currencies
Create Quote
Learn how to create quotes with validated details
Next Steps
- View beneficiary formats for all currencies
- Learn how to create quotes
- Explore quote examples for different currency pairs
- Set up webhook notifications for payment tracking
