Verify account
curl --request POST \
--url https://api.sendpadi.com/api/v1/merchant/transfers/validate \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--header 'X-Signature: <x-signature>' \
--header 'X-Timestamp: <x-timestamp>' \
--data '
{
"toAccountNumber": "**********",
"toBankCode": "100004",
"country": "Nigeria"
}
'const options = {
method: 'POST',
headers: {
'X-Timestamp': '<x-timestamp>',
'X-Signature': '<x-signature>',
'X-Api-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({toAccountNumber: '**********', toBankCode: '100004', country: 'Nigeria'})
};
fetch('https://api.sendpadi.com/api/v1/merchant/transfers/validate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sendpadi.com/api/v1/merchant/transfers/validate"
payload = {
"toAccountNumber": "**********",
"toBankCode": "100004",
"country": "Nigeria"
}
headers = {
"X-Timestamp": "<x-timestamp>",
"X-Signature": "<x-signature>",
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"data": {
"isValid": true,
"accountName": "John Doe",
"bankName": "OPay",
"bankCode": "100004",
"fee": 0
}
}{
"success": false,
"message": "Invalid account number, please check and try again",
"error": "ACCOUNT_VERIFICATION_FAILED",
"data": {
"isValid": false,
"accountName": "",
"bankName": "OPay",
"bankCode": "100004",
"fee": null,
"error": "Invalid account number, please check and try again"
}
}Transfers
Verify account
Name enquiry before creating a transfer. Returns the resolved accountName to use as toAccountName on Local transfer. Scope: transfers:write.
POST
/
api
/
v1
/
merchant
/
transfers
/
validate
Verify account
curl --request POST \
--url https://api.sendpadi.com/api/v1/merchant/transfers/validate \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--header 'X-Signature: <x-signature>' \
--header 'X-Timestamp: <x-timestamp>' \
--data '
{
"toAccountNumber": "**********",
"toBankCode": "100004",
"country": "Nigeria"
}
'const options = {
method: 'POST',
headers: {
'X-Timestamp': '<x-timestamp>',
'X-Signature': '<x-signature>',
'X-Api-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({toAccountNumber: '**********', toBankCode: '100004', country: 'Nigeria'})
};
fetch('https://api.sendpadi.com/api/v1/merchant/transfers/validate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sendpadi.com/api/v1/merchant/transfers/validate"
payload = {
"toAccountNumber": "**********",
"toBankCode": "100004",
"country": "Nigeria"
}
headers = {
"X-Timestamp": "<x-timestamp>",
"X-Signature": "<x-signature>",
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"data": {
"isValid": true,
"accountName": "John Doe",
"bankName": "OPay",
"bankCode": "100004",
"fee": 0
}
}{
"success": false,
"message": "Invalid account number, please check and try again",
"error": "ACCOUNT_VERIFICATION_FAILED",
"data": {
"isValid": false,
"accountName": "",
"bankName": "OPay",
"bankCode": "100004",
"fee": null,
"error": "Invalid account number, please check and try again"
}
}Use
toBankCode from List banks. Pass data.accountName as toAccountName on Local transfer.Authorizations
API key id (sp_test_… / sp_live_…)
Headers
Unix time in seconds
HMAC-SHA256 signature
Response
OK
The response is of type object.

