Account Name Validation
The Account Name Validation endpoint allows you to validate the account name associated with a bank account number. This is useful for ensuring accuracy before initiating a transfer.
Endpoint
POST https://api.cashonrails.com/api/v1/account_name
Request Headers
| Header | Type | Description |
|---|---|---|
| Authorization | string | Bearer token with your secret key |
Sample cURL Request
curl -X POST https://api.cashonrails.com/api/v1/account_name \
-H "Content-Type: application/json" \
-d '{
"account_number": "0123456789",
"bank_code": "000013",
"currency": "NGN"
}'Request Body
| Parameter | Type | Description |
|---|---|---|
| account_number | string | The bank account number |
| bank_code | string | The bank code |
| currency | string | The currency code (e.g., NGN, USD) |
Sample Request
{
"account_number": "0123456789",
"bank_code": "000013",
"currency": "NGN"
}Sample Response
{
"success": true,
"status": "00",
"message": "Account Found",
"data": "John Doe"
}Last updated on