KYC - South Africa
Bank Account Verification
Verifies client bank account numbers for South African banks, validating account details against identity information.
POST
/
v2
/
api
/
identity
/
za
/
bav
Bank Account Verification
curl --request POST \
--url https://api.youverify.co/v2/api/identity/za/bav \
--header 'Content-Type: application/json' \
--header 'token: <api-key>' \
--data '
{
"validations": {
"data": {
"firstName": "CONCO",
"middleName": "",
"lastName": "",
"email": "email@email.com",
"phoneNumber": "0795030317"
}
},
"accountDetails": {
"bankBranchCode": "470010",
"bank": "",
"accountNumber": "1443535328",
"accountType": "Savings"
},
"id": "8203170496089",
"isSubjectConsent": true
}
'import requests
url = "https://api.youverify.co/v2/api/identity/za/bav"
payload = {
"validations": { "data": {
"firstName": "CONCO",
"middleName": "",
"lastName": "",
"email": "email@email.com",
"phoneNumber": "0795030317"
} },
"accountDetails": {
"bankBranchCode": "470010",
"bank": "",
"accountNumber": "1443535328",
"accountType": "Savings"
},
"id": "8203170496089",
"isSubjectConsent": True
}
headers = {
"token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
validations: {
data: {
firstName: 'CONCO',
middleName: '',
lastName: '',
email: 'email@email.com',
phoneNumber: '0795030317'
}
},
accountDetails: {
bankBranchCode: '470010',
bank: '',
accountNumber: '1443535328',
accountType: 'Savings'
},
id: '8203170496089',
isSubjectConsent: true
})
};
fetch('https://api.youverify.co/v2/api/identity/za/bav', 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.youverify.co/v2/api/identity/za/bav",
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([
'validations' => [
'data' => [
'firstName' => 'CONCO',
'middleName' => '',
'lastName' => '',
'email' => 'email@email.com',
'phoneNumber' => '0795030317'
]
],
'accountDetails' => [
'bankBranchCode' => '470010',
'bank' => '',
'accountNumber' => '1443535328',
'accountType' => 'Savings'
],
'id' => '8203170496089',
'isSubjectConsent' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"token: <api-key>"
],
]);
$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.youverify.co/v2/api/identity/za/bav"
payload := strings.NewReader("{\n \"validations\": {\n \"data\": {\n \"firstName\": \"CONCO\",\n \"middleName\": \"\",\n \"lastName\": \"\",\n \"email\": \"email@email.com\",\n \"phoneNumber\": \"0795030317\"\n }\n },\n \"accountDetails\": {\n \"bankBranchCode\": \"470010\",\n \"bank\": \"\",\n \"accountNumber\": \"1443535328\",\n \"accountType\": \"Savings\"\n },\n \"id\": \"8203170496089\",\n \"isSubjectConsent\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
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.youverify.co/v2/api/identity/za/bav")
.header("token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"validations\": {\n \"data\": {\n \"firstName\": \"CONCO\",\n \"middleName\": \"\",\n \"lastName\": \"\",\n \"email\": \"email@email.com\",\n \"phoneNumber\": \"0795030317\"\n }\n },\n \"accountDetails\": {\n \"bankBranchCode\": \"470010\",\n \"bank\": \"\",\n \"accountNumber\": \"1443535328\",\n \"accountType\": \"Savings\"\n },\n \"id\": \"8203170496089\",\n \"isSubjectConsent\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.youverify.co/v2/api/identity/za/bav")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"validations\": {\n \"data\": {\n \"firstName\": \"CONCO\",\n \"middleName\": \"\",\n \"lastName\": \"\",\n \"email\": \"email@email.com\",\n \"phoneNumber\": \"0795030317\"\n }\n },\n \"accountDetails\": {\n \"bankBranchCode\": \"470010\",\n \"bank\": \"\",\n \"accountNumber\": \"1443535328\",\n \"accountType\": \"Savings\"\n },\n \"id\": \"8203170496089\",\n \"isSubjectConsent\": true\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"statusCode": 200,
"message": "success",
"data": {
"id": "645bca7cd80de606cd7e5ad3",
"validations": {
"data": {
"phoneNumber": {
"validated": false,
"value": "0795030317"
},
"fullName": {
"validated": true,
"value": "CONCO"
},
"email": {
"validated": false,
"value": "bonisiwez466@gmail.com"
}
},
"validationMessages": "Email does not match, Phone Number does not match"
},
"parentId": null,
"status": "found",
"reason": null,
"dataValidation": true,
"identityNumberValid": "No",
"accountTypeValid": "Yes",
"accountStatus": "Open",
"acceptsDebits": "Yes",
"acceptsCredits": "Yes",
"accountNumberValid": "Yes",
"bavRiskOutcome": "Low",
"isConsent": true,
"accountNumber": "1443535328",
"idNumber": "8203170496089",
"businessId": "628b38f03ae28a14f52d4bf7",
"type": "zaBAV",
"allValidationPassed": false,
"requestedAt": "2023-05-10T16:47:20.552Z",
"requestedById": "628b38f13ae28a7b742d4bf9",
"country": "ZA",
"createdAt": "2023-05-10T16:47:20.938Z",
"lastModifiedAt": "2023-05-10T16:47:20.938Z",
"metadata": {},
"requestedBy": {
"firstName": "Onyeka",
"lastName": "Ijeh",
"middleName": "",
"id": "628b38f13ae28a7b742d4bf9"
}
},
"links": []
}{
"success": false,
"statusCode": 401,
"message": "Permission denied",
"name": "UnauthorizedError",
"data": {}
}{
"success": false,
"statusCode": 402,
"message": "Insufficient fund",
"name": "PaymentRequiredError",
"data": {}
}{
"success": false,
"statusCode": 404,
"message": "You have attempted to get a resource that does not exist.",
"name": "ResourceNotFoundError",
"data": {}
}{
"success": false,
"statusCode": 429,
"message": "Too many requests",
"name": "RateLimitError",
"data": {}
}{
"success": false,
"statusCode": 500,
"message": "Internal Server Error",
"name": "Error",
"data": {}
}Authorizations
Your Youverify API secret key. Never expose client-side.
Headers
API secret token
Body
application/json
Response
Success
⌘I
Bank Account Verification
curl --request POST \
--url https://api.youverify.co/v2/api/identity/za/bav \
--header 'Content-Type: application/json' \
--header 'token: <api-key>' \
--data '
{
"validations": {
"data": {
"firstName": "CONCO",
"middleName": "",
"lastName": "",
"email": "email@email.com",
"phoneNumber": "0795030317"
}
},
"accountDetails": {
"bankBranchCode": "470010",
"bank": "",
"accountNumber": "1443535328",
"accountType": "Savings"
},
"id": "8203170496089",
"isSubjectConsent": true
}
'import requests
url = "https://api.youverify.co/v2/api/identity/za/bav"
payload = {
"validations": { "data": {
"firstName": "CONCO",
"middleName": "",
"lastName": "",
"email": "email@email.com",
"phoneNumber": "0795030317"
} },
"accountDetails": {
"bankBranchCode": "470010",
"bank": "",
"accountNumber": "1443535328",
"accountType": "Savings"
},
"id": "8203170496089",
"isSubjectConsent": True
}
headers = {
"token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
validations: {
data: {
firstName: 'CONCO',
middleName: '',
lastName: '',
email: 'email@email.com',
phoneNumber: '0795030317'
}
},
accountDetails: {
bankBranchCode: '470010',
bank: '',
accountNumber: '1443535328',
accountType: 'Savings'
},
id: '8203170496089',
isSubjectConsent: true
})
};
fetch('https://api.youverify.co/v2/api/identity/za/bav', 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.youverify.co/v2/api/identity/za/bav",
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([
'validations' => [
'data' => [
'firstName' => 'CONCO',
'middleName' => '',
'lastName' => '',
'email' => 'email@email.com',
'phoneNumber' => '0795030317'
]
],
'accountDetails' => [
'bankBranchCode' => '470010',
'bank' => '',
'accountNumber' => '1443535328',
'accountType' => 'Savings'
],
'id' => '8203170496089',
'isSubjectConsent' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"token: <api-key>"
],
]);
$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.youverify.co/v2/api/identity/za/bav"
payload := strings.NewReader("{\n \"validations\": {\n \"data\": {\n \"firstName\": \"CONCO\",\n \"middleName\": \"\",\n \"lastName\": \"\",\n \"email\": \"email@email.com\",\n \"phoneNumber\": \"0795030317\"\n }\n },\n \"accountDetails\": {\n \"bankBranchCode\": \"470010\",\n \"bank\": \"\",\n \"accountNumber\": \"1443535328\",\n \"accountType\": \"Savings\"\n },\n \"id\": \"8203170496089\",\n \"isSubjectConsent\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
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.youverify.co/v2/api/identity/za/bav")
.header("token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"validations\": {\n \"data\": {\n \"firstName\": \"CONCO\",\n \"middleName\": \"\",\n \"lastName\": \"\",\n \"email\": \"email@email.com\",\n \"phoneNumber\": \"0795030317\"\n }\n },\n \"accountDetails\": {\n \"bankBranchCode\": \"470010\",\n \"bank\": \"\",\n \"accountNumber\": \"1443535328\",\n \"accountType\": \"Savings\"\n },\n \"id\": \"8203170496089\",\n \"isSubjectConsent\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.youverify.co/v2/api/identity/za/bav")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"validations\": {\n \"data\": {\n \"firstName\": \"CONCO\",\n \"middleName\": \"\",\n \"lastName\": \"\",\n \"email\": \"email@email.com\",\n \"phoneNumber\": \"0795030317\"\n }\n },\n \"accountDetails\": {\n \"bankBranchCode\": \"470010\",\n \"bank\": \"\",\n \"accountNumber\": \"1443535328\",\n \"accountType\": \"Savings\"\n },\n \"id\": \"8203170496089\",\n \"isSubjectConsent\": true\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"statusCode": 200,
"message": "success",
"data": {
"id": "645bca7cd80de606cd7e5ad3",
"validations": {
"data": {
"phoneNumber": {
"validated": false,
"value": "0795030317"
},
"fullName": {
"validated": true,
"value": "CONCO"
},
"email": {
"validated": false,
"value": "bonisiwez466@gmail.com"
}
},
"validationMessages": "Email does not match, Phone Number does not match"
},
"parentId": null,
"status": "found",
"reason": null,
"dataValidation": true,
"identityNumberValid": "No",
"accountTypeValid": "Yes",
"accountStatus": "Open",
"acceptsDebits": "Yes",
"acceptsCredits": "Yes",
"accountNumberValid": "Yes",
"bavRiskOutcome": "Low",
"isConsent": true,
"accountNumber": "1443535328",
"idNumber": "8203170496089",
"businessId": "628b38f03ae28a14f52d4bf7",
"type": "zaBAV",
"allValidationPassed": false,
"requestedAt": "2023-05-10T16:47:20.552Z",
"requestedById": "628b38f13ae28a7b742d4bf9",
"country": "ZA",
"createdAt": "2023-05-10T16:47:20.938Z",
"lastModifiedAt": "2023-05-10T16:47:20.938Z",
"metadata": {},
"requestedBy": {
"firstName": "Onyeka",
"lastName": "Ijeh",
"middleName": "",
"id": "628b38f13ae28a7b742d4bf9"
}
},
"links": []
}{
"success": false,
"statusCode": 401,
"message": "Permission denied",
"name": "UnauthorizedError",
"data": {}
}{
"success": false,
"statusCode": 402,
"message": "Insufficient fund",
"name": "PaymentRequiredError",
"data": {}
}{
"success": false,
"statusCode": 404,
"message": "You have attempted to get a resource that does not exist.",
"name": "ResourceNotFoundError",
"data": {}
}{
"success": false,
"statusCode": 429,
"message": "Too many requests",
"name": "RateLimitError",
"data": {}
}{
"success": false,
"statusCode": 500,
"message": "Internal Server Error",
"name": "Error",
"data": {}
}