BVN Number OTP
This API allows you to verify a user's identity by sending an OTP to their registered phone number and verifying the OTP against their BVN.
BVN Verification
POST https://api.getspendo.com/gateway/api/v1/verify/bvn
Headers
Name
Type
Description
apiKey*
String
The API key that you get from spendo's dashboard.
Request Body
Name
Type
Description
otp*
Integer
The OTP code that you want to send, represented as a string. This parameter is usually generated by your system or a third-party authentication provider.
number*
String
The user's BVN, represented as a string of 11 digits.
{
"success": true,
"message": "OTP sent",
"code": 0,
"data": null
}{
"success": false,
"message": "Error sending OTP",
"code": 0,
"data": null
}Take a look at how you might call this method using our official libraries, or via curl:
curl --location --request POST 'https://api.getspendo.com/gateway/api/v1/verify/bvn' \
--header 'apiKey: test_api_key' \
--header 'Content-Type: application/json' \
--data-raw '{
"number": "string",
"otp": "string"
}'var axios = require('axios');
var data = JSON.stringify({
"number": "string",
"otp": "string"
});
var config = {
method: 'post',
url: 'https://api.getspendo.com/gateway/api/v1/verify/bvn',
headers: {
'apiKey': 'test_api_key',
'Content-Type': 'application/json'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
Last updated
Was this helpful?