Validate an NGN bank account
curl --request POST \
--url https://sandbox-api.bullring.finance/v2/ramp/{storeId}/banking/ngn/validate \
--header 'Content-Type: application/json' \
--header 'X-Key-Id: <api-key>' \
--data '
{
"accountNumber": "0123456789",
"bankCode": "058"
}
'import requests
url = "https://sandbox-api.bullring.finance/v2/ramp/{storeId}/banking/ngn/validate"
payload = {
"accountNumber": "0123456789",
"bankCode": "058"
}
headers = {
"X-Key-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Key-Id': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({accountNumber: '0123456789', bankCode: '058'})
};
fetch('https://sandbox-api.bullring.finance/v2/ramp/{storeId}/banking/ngn/validate', 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://sandbox-api.bullring.finance/v2/ramp/{storeId}/banking/ngn/validate",
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([
'accountNumber' => '0123456789',
'bankCode' => '058'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Key-Id: <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://sandbox-api.bullring.finance/v2/ramp/{storeId}/banking/ngn/validate"
payload := strings.NewReader("{\n \"accountNumber\": \"0123456789\",\n \"bankCode\": \"058\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Key-Id", "<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://sandbox-api.bullring.finance/v2/ramp/{storeId}/banking/ngn/validate")
.header("X-Key-Id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"accountNumber\": \"0123456789\",\n \"bankCode\": \"058\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.bullring.finance/v2/ramp/{storeId}/banking/ngn/validate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Key-Id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"accountNumber\": \"0123456789\",\n \"bankCode\": \"058\"\n}"
response = http.request(request)
puts response.read_body{
"valid": true,
"bank": {
"name": "Example Bank",
"code": "058",
"nibssCode": "000058",
"cbnCode": "<string>"
},
"account_name": "SIMULATED HOLDER 1540",
"message": "<string>",
"provider": {},
"providerError": {}
}{
"statusCode": 123,
"code": "<string>",
"message": "<unknown>"
}{
"statusCode": 123,
"message": "<unknown>",
"code": "<string>"
}{
"statusCode": 123,
"message": "<unknown>",
"code": "<string>"
}NGN banking
Validate NGN account
Resolve and validate a Nigerian bank account before creating a recipient.
POST
/
v2
/
ramp
/
{storeId}
/
banking
/
ngn
/
validate
Validate an NGN bank account
curl --request POST \
--url https://sandbox-api.bullring.finance/v2/ramp/{storeId}/banking/ngn/validate \
--header 'Content-Type: application/json' \
--header 'X-Key-Id: <api-key>' \
--data '
{
"accountNumber": "0123456789",
"bankCode": "058"
}
'import requests
url = "https://sandbox-api.bullring.finance/v2/ramp/{storeId}/banking/ngn/validate"
payload = {
"accountNumber": "0123456789",
"bankCode": "058"
}
headers = {
"X-Key-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Key-Id': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({accountNumber: '0123456789', bankCode: '058'})
};
fetch('https://sandbox-api.bullring.finance/v2/ramp/{storeId}/banking/ngn/validate', 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://sandbox-api.bullring.finance/v2/ramp/{storeId}/banking/ngn/validate",
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([
'accountNumber' => '0123456789',
'bankCode' => '058'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Key-Id: <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://sandbox-api.bullring.finance/v2/ramp/{storeId}/banking/ngn/validate"
payload := strings.NewReader("{\n \"accountNumber\": \"0123456789\",\n \"bankCode\": \"058\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Key-Id", "<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://sandbox-api.bullring.finance/v2/ramp/{storeId}/banking/ngn/validate")
.header("X-Key-Id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"accountNumber\": \"0123456789\",\n \"bankCode\": \"058\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.bullring.finance/v2/ramp/{storeId}/banking/ngn/validate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Key-Id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"accountNumber\": \"0123456789\",\n \"bankCode\": \"058\"\n}"
response = http.request(request)
puts response.read_body{
"valid": true,
"bank": {
"name": "Example Bank",
"code": "058",
"nibssCode": "000058",
"cbnCode": "<string>"
},
"account_name": "SIMULATED HOLDER 1540",
"message": "<string>",
"provider": {},
"providerError": {}
}{
"statusCode": 123,
"code": "<string>",
"message": "<unknown>"
}{
"statusCode": 123,
"message": "<unknown>",
"code": "<string>"
}{
"statusCode": 123,
"message": "<unknown>",
"code": "<string>"
}Validate the account number with an institution code or institution name before creating an NGN recipient.
Successful validation returns the resolved institution and account holder name:
{
"valid": true,
"bank": {
"name": "GTBank",
"code": "058"
},
"account_name": "SIMULATED HOLDER 1540"
}
Authorizations
Headers
Body
application/json