Resolve a bank account or mobile-money wallet
curl --request POST \
--url https://sandbox.inflowafrica.com/api/v1/payout-accounts/resolve \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"accountNumber": "<string>",
"accountType": "bank_account",
"currency": "NGN",
"country": "NG",
"bankCode": "<string>",
"institutionId": "<string>",
"routingNumber": "<string>"
}
'import requests
url = "https://sandbox.inflowafrica.com/api/v1/payout-accounts/resolve"
payload = {
"accountNumber": "<string>",
"accountType": "bank_account",
"currency": "NGN",
"country": "NG",
"bankCode": "<string>",
"institutionId": "<string>",
"routingNumber": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
accountNumber: '<string>',
accountType: 'bank_account',
currency: 'NGN',
country: 'NG',
bankCode: '<string>',
institutionId: '<string>',
routingNumber: '<string>'
})
};
fetch('https://sandbox.inflowafrica.com/api/v1/payout-accounts/resolve', 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.inflowafrica.com/api/v1/payout-accounts/resolve",
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' => '<string>',
'accountType' => 'bank_account',
'currency' => 'NGN',
'country' => 'NG',
'bankCode' => '<string>',
'institutionId' => '<string>',
'routingNumber' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.inflowafrica.com/api/v1/payout-accounts/resolve"
payload := strings.NewReader("{\n \"accountNumber\": \"<string>\",\n \"accountType\": \"bank_account\",\n \"currency\": \"NGN\",\n \"country\": \"NG\",\n \"bankCode\": \"<string>\",\n \"institutionId\": \"<string>\",\n \"routingNumber\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.inflowafrica.com/api/v1/payout-accounts/resolve")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"accountNumber\": \"<string>\",\n \"accountType\": \"bank_account\",\n \"currency\": \"NGN\",\n \"country\": \"NG\",\n \"bankCode\": \"<string>\",\n \"institutionId\": \"<string>\",\n \"routingNumber\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.inflowafrica.com/api/v1/payout-accounts/resolve")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"accountNumber\": \"<string>\",\n \"accountType\": \"bank_account\",\n \"currency\": \"NGN\",\n \"country\": \"NG\",\n \"bankCode\": \"<string>\",\n \"institutionId\": \"<string>\",\n \"routingNumber\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyPayouts
Resolve a bank account or mobile-money wallet
Verifies a destination and returns its account name without creating a payout beneficiary. Use the provider identifiers returned by GET /v1/payouts/providers.
POST
/
v1
/
payout-accounts
/
resolve
Resolve a bank account or mobile-money wallet
curl --request POST \
--url https://sandbox.inflowafrica.com/api/v1/payout-accounts/resolve \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"accountNumber": "<string>",
"accountType": "bank_account",
"currency": "NGN",
"country": "NG",
"bankCode": "<string>",
"institutionId": "<string>",
"routingNumber": "<string>"
}
'import requests
url = "https://sandbox.inflowafrica.com/api/v1/payout-accounts/resolve"
payload = {
"accountNumber": "<string>",
"accountType": "bank_account",
"currency": "NGN",
"country": "NG",
"bankCode": "<string>",
"institutionId": "<string>",
"routingNumber": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
accountNumber: '<string>',
accountType: 'bank_account',
currency: 'NGN',
country: 'NG',
bankCode: '<string>',
institutionId: '<string>',
routingNumber: '<string>'
})
};
fetch('https://sandbox.inflowafrica.com/api/v1/payout-accounts/resolve', 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.inflowafrica.com/api/v1/payout-accounts/resolve",
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' => '<string>',
'accountType' => 'bank_account',
'currency' => 'NGN',
'country' => 'NG',
'bankCode' => '<string>',
'institutionId' => '<string>',
'routingNumber' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.inflowafrica.com/api/v1/payout-accounts/resolve"
payload := strings.NewReader("{\n \"accountNumber\": \"<string>\",\n \"accountType\": \"bank_account\",\n \"currency\": \"NGN\",\n \"country\": \"NG\",\n \"bankCode\": \"<string>\",\n \"institutionId\": \"<string>\",\n \"routingNumber\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.inflowafrica.com/api/v1/payout-accounts/resolve")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"accountNumber\": \"<string>\",\n \"accountType\": \"bank_account\",\n \"currency\": \"NGN\",\n \"country\": \"NG\",\n \"bankCode\": \"<string>\",\n \"institutionId\": \"<string>\",\n \"routingNumber\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.inflowafrica.com/api/v1/payout-accounts/resolve")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"accountNumber\": \"<string>\",\n \"accountType\": \"bank_account\",\n \"currency\": \"NGN\",\n \"country\": \"NG\",\n \"bankCode\": \"<string>\",\n \"institutionId\": \"<string>\",\n \"routingNumber\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Enter your API key starting with gtw_sk_
Body
application/json
Bank account number or mobile-wallet MSISDN
Available options:
bank_account, mobile_money Example:
"NGN"
ISO 3166-1 alpha-2 country code
Example:
"NG"
Required for Nigerian bank accounts
Required for mobile wallets; obtain it from GET /v1/payouts/providers
Routing number or sort code when required by the bank rail
Response
Account resolved