Skip to main content

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
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.
Response:

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.
Response:

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:

Quick Reference

Get Bank Codes:
Name Enquiry:

Error Handling

Common Errors

Example Error Response

Best Practices

  1. Cache Bank List: Fetch and cache the bank list instead of fetching on every page load
  2. Validate Before Enquiry: Check account number is exactly 10 digits before calling API
  3. Show Loading State: Display loading indicator during verification
  4. Handle Errors Gracefully: Provide clear error messages to users
  5. Confirm Before Proceeding: Always show retrieved name for user confirmation
  6. Store Validated Data: Save validated beneficiary details for future use

Security Considerations

  1. API Key Protection: Never expose your API key in frontend code
  2. Backend Validation: Always verify account details on your backend
  3. Rate Limiting: Implement rate limiting to prevent abuse
  4. 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

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