Account Name Validation
Verify bank account details and retrieve the account holder's name before initiating payments. This helps prevent payment errors and ensures funds are sent to the correct recipient.
Endpoint
POST https://api.budpay.com/api/v2/account_name_verifySample Request
curl https://api.budpay.com/api/v2/account_name_verify \
-H "Authorization: Bearer YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"bank_code": "000013",
"account_number": "0050883605"
}' \
-X POSTSample Response
{
"success": true,
"message": "Account name retrieved",
"data": "SAMUEL OWOLABI BLESSING"
}Try it out
Request Parameters
Header Parameters
| Field Name | Description | Required |
|---|---|---|
| Authorization | Bearer token with your secret key | Yes |
| Content-Type | application/json | Yes |
Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
bank_code | String | Yes | Bank code from the bank list API |
account_number | String | Yes | Bank account number to verify |
Response Fields
| Field | Type | Description |
|---|---|---|
success | Boolean | Indicates if verification was successful |
message | String | Response message |
data | String | Account holder's name |
Error Handling
400 Bad Request
{
"success": false,
"message": "Invalid bank code or account number"
}401 Unauthorized
{
"success": false,
"message": "Authentication failed"
}404 Not Found
{
"success": false,
"message": "Account not found"
}422 Validation Error
{
"success": false,
"message": "Validation error",
"errors": {
"bank_code": ["The bank code field is required"],
"account_number": ["The account number field is required"]
}
}Best Practices
Tip: Always verify account details before initiating payments to prevent errors and ensure funds reach the correct recipient.
- Verify Before Payment: Always validate account details before processing payments
- Match Names: Compare returned name with expected recipient name
- Handle Errors: Implement proper error handling for invalid accounts
- User Confirmation: Display retrieved name for user verification
- Cache Results: Store verified accounts to reduce API calls
- Timeout Handling: Set appropriate timeouts for verification requests
Security Considerations
⚠️
Security: Never store or log full account numbers in plain text. Use masked formats for display purposes.
- Validate Input: Sanitize bank codes and account numbers before sending
- Server-Side Only: Perform verification from your secure backend
- HTTPS Only: Always use secure connections for API requests
- Rate Limiting: Implement rate limiting to prevent abuse
Next Steps
- Bank List - Get list of supported banks
- Bank Transfer - Initiate bank transfer payment
- Transaction Verification - Verify payment status