Basic BVN Verification
curl --request POST \
--url https://api.payvessel.com/kyc/api/v1/merchant/bvn/basic \
--header 'Content-Type: <content-type>' \
--header 'api-key: <api-key>' \
--header 'api-secret: <api-secret>' \
--data '
{
"bvn": "22123456789",
"first_name": "John",
"middle_name": "Adebayo",
"last_name": "Doe",
"gender": "MALE",
"birthday": "1992-08-14",
"phone_number": "08012345678"
}
'import requests
url = "https://api.payvessel.com/kyc/api/v1/merchant/bvn/basic"
payload = {
"bvn": "22123456789",
"first_name": "John",
"middle_name": "Adebayo",
"last_name": "Doe",
"gender": "MALE",
"birthday": "1992-08-14",
"phone_number": "08012345678"
}
headers = {
"api-key": "<api-key>",
"api-secret": "<api-secret>",
"Content-Type": "<content-type>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'api-key': '<api-key>',
'api-secret': '<api-secret>',
'Content-Type': '<content-type>'
},
body: JSON.stringify({
bvn: '22123456789',
first_name: 'John',
middle_name: 'Adebayo',
last_name: 'Doe',
gender: 'MALE',
birthday: '1992-08-14',
phone_number: '08012345678'
})
};
fetch('https://api.payvessel.com/kyc/api/v1/merchant/bvn/basic', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.payvessel.com/kyc/api/v1/merchant/bvn/basic",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'bvn' => '22123456789',
'first_name' => 'John',
'middle_name' => 'Adebayo',
'last_name' => 'Doe',
'gender' => 'MALE',
'birthday' => '1992-08-14',
'phone_number' => '08012345678'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: <content-type>",
"api-key: <api-key>",
"api-secret: <api-secret>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.payvessel.com/kyc/api/v1/merchant/bvn/basic"
payload := strings.NewReader("{\n \"bvn\": \"22123456789\",\n \"first_name\": \"John\",\n \"middle_name\": \"Adebayo\",\n \"last_name\": \"Doe\",\n \"gender\": \"MALE\",\n \"birthday\": \"1992-08-14\",\n \"phone_number\": \"08012345678\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("api-key", "<api-key>")
req.Header.Add("api-secret", "<api-secret>")
req.Header.Add("Content-Type", "<content-type>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.payvessel.com/kyc/api/v1/merchant/bvn/basic")
.header("api-key", "<api-key>")
.header("api-secret", "<api-secret>")
.header("Content-Type", "<content-type>")
.body("{\n \"bvn\": \"22123456789\",\n \"first_name\": \"John\",\n \"middle_name\": \"Adebayo\",\n \"last_name\": \"Doe\",\n \"gender\": \"MALE\",\n \"birthday\": \"1992-08-14\",\n \"phone_number\": \"08012345678\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.payvessel.com/kyc/api/v1/merchant/bvn/basic")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["api-key"] = '<api-key>'
request["api-secret"] = '<api-secret>'
request["Content-Type"] = '<content-type>'
request.body = "{\n \"bvn\": \"22123456789\",\n \"first_name\": \"John\",\n \"middle_name\": \"Adebayo\",\n \"last_name\": \"Doe\",\n \"gender\": \"MALE\",\n \"birthday\": \"1992-08-14\",\n \"phone_number\": \"08012345678\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "BVN verification completed successfully",
"data": {
"name_match_rlt": "MATCH",
"names_match_percentage": "96",
"birthday_match_rlt": "MATCH",
"gender_match_rlt": "MATCH",
"phone_number_match_rlt": "MATCH"
},
"charges": {
"charged": false,
"charged_amount": "0.00"
}
}Identity Verification
Verify BVN (Basic)
BVN verification API: match customer identity fields against Bank Verification Number records (basic endpoint).
POST
/
api
/
v1
/
merchant
/
bvn
/
basic
Basic BVN Verification
curl --request POST \
--url https://api.payvessel.com/kyc/api/v1/merchant/bvn/basic \
--header 'Content-Type: <content-type>' \
--header 'api-key: <api-key>' \
--header 'api-secret: <api-secret>' \
--data '
{
"bvn": "22123456789",
"first_name": "John",
"middle_name": "Adebayo",
"last_name": "Doe",
"gender": "MALE",
"birthday": "1992-08-14",
"phone_number": "08012345678"
}
'import requests
url = "https://api.payvessel.com/kyc/api/v1/merchant/bvn/basic"
payload = {
"bvn": "22123456789",
"first_name": "John",
"middle_name": "Adebayo",
"last_name": "Doe",
"gender": "MALE",
"birthday": "1992-08-14",
"phone_number": "08012345678"
}
headers = {
"api-key": "<api-key>",
"api-secret": "<api-secret>",
"Content-Type": "<content-type>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'api-key': '<api-key>',
'api-secret': '<api-secret>',
'Content-Type': '<content-type>'
},
body: JSON.stringify({
bvn: '22123456789',
first_name: 'John',
middle_name: 'Adebayo',
last_name: 'Doe',
gender: 'MALE',
birthday: '1992-08-14',
phone_number: '08012345678'
})
};
fetch('https://api.payvessel.com/kyc/api/v1/merchant/bvn/basic', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.payvessel.com/kyc/api/v1/merchant/bvn/basic",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'bvn' => '22123456789',
'first_name' => 'John',
'middle_name' => 'Adebayo',
'last_name' => 'Doe',
'gender' => 'MALE',
'birthday' => '1992-08-14',
'phone_number' => '08012345678'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: <content-type>",
"api-key: <api-key>",
"api-secret: <api-secret>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.payvessel.com/kyc/api/v1/merchant/bvn/basic"
payload := strings.NewReader("{\n \"bvn\": \"22123456789\",\n \"first_name\": \"John\",\n \"middle_name\": \"Adebayo\",\n \"last_name\": \"Doe\",\n \"gender\": \"MALE\",\n \"birthday\": \"1992-08-14\",\n \"phone_number\": \"08012345678\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("api-key", "<api-key>")
req.Header.Add("api-secret", "<api-secret>")
req.Header.Add("Content-Type", "<content-type>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.payvessel.com/kyc/api/v1/merchant/bvn/basic")
.header("api-key", "<api-key>")
.header("api-secret", "<api-secret>")
.header("Content-Type", "<content-type>")
.body("{\n \"bvn\": \"22123456789\",\n \"first_name\": \"John\",\n \"middle_name\": \"Adebayo\",\n \"last_name\": \"Doe\",\n \"gender\": \"MALE\",\n \"birthday\": \"1992-08-14\",\n \"phone_number\": \"08012345678\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.payvessel.com/kyc/api/v1/merchant/bvn/basic")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["api-key"] = '<api-key>'
request["api-secret"] = '<api-secret>'
request["Content-Type"] = '<content-type>'
request.body = "{\n \"bvn\": \"22123456789\",\n \"first_name\": \"John\",\n \"middle_name\": \"Adebayo\",\n \"last_name\": \"Doe\",\n \"gender\": \"MALE\",\n \"birthday\": \"1992-08-14\",\n \"phone_number\": \"08012345678\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "BVN verification completed successfully",
"data": {
"name_match_rlt": "MATCH",
"names_match_percentage": "96",
"birthday_match_rlt": "MATCH",
"gender_match_rlt": "MATCH",
"phone_number_match_rlt": "MATCH"
},
"charges": {
"charged": false,
"charged_amount": "0.00"
}
}Headers
Your Payvessel public API key
Your Payvessel secret
Request content type
Available options:
application/json Body
application/json
Customer BVN
Example:
"22123456789"
Customer first name
Example:
"John"
Customer middle name
Example:
"Adebayo"
Customer last name
Example:
"Doe"
Customer gender
Available options:
MALE, FEMALE Example:
"MALE"
Customer date of birth
Example:
"1992-08-14"
Customer phone number
Example:
"08012345678"
⌘I
