Resolve an account name
curl --request POST \
--url https://api.spendin.app/v1/banks/resolve \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--header 'X-API-Key: <api-key>' \
--data '
{
"destination_type": "BANK_ACCOUNT",
"destination_currency": "NGN",
"destination_account_unique": "0123456789",
"destination_provider_code": "044"
}
'import requests
url = "https://api.spendin.app/v1/banks/resolve"
payload = {
"destination_type": "BANK_ACCOUNT",
"destination_currency": "NGN",
"destination_account_unique": "0123456789",
"destination_provider_code": "044"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
'X-API-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
destination_type: 'BANK_ACCOUNT',
destination_currency: 'NGN',
destination_account_unique: '0123456789',
destination_provider_code: '044'
})
};
fetch('https://api.spendin.app/v1/banks/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://api.spendin.app/v1/banks/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([
'destination_type' => 'BANK_ACCOUNT',
'destination_currency' => 'NGN',
'destination_account_unique' => '0123456789',
'destination_provider_code' => '044'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>",
"X-API-Key: <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.spendin.app/v1/banks/resolve"
payload := strings.NewReader("{\n \"destination_type\": \"BANK_ACCOUNT\",\n \"destination_currency\": \"NGN\",\n \"destination_account_unique\": \"0123456789\",\n \"destination_provider_code\": \"044\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("X-API-Key", "<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.spendin.app/v1/banks/resolve")
.header("Idempotency-Key", "<idempotency-key>")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"destination_type\": \"BANK_ACCOUNT\",\n \"destination_currency\": \"NGN\",\n \"destination_account_unique\": \"0123456789\",\n \"destination_provider_code\": \"044\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spendin.app/v1/banks/resolve")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"destination_type\": \"BANK_ACCOUNT\",\n \"destination_currency\": \"NGN\",\n \"destination_account_unique\": \"0123456789\",\n \"destination_provider_code\": \"044\"\n}"
response = http.request(request)
puts response.read_body{
"destination_account_name": "KWAME MENSAH",
"destination_account_unique": "0123456789",
"destination_provider_code": "044",
"destination_type": "MOBILE_MONEY"
}banks
Resolve an account name
Name enquiry against the destination institution. Use the returned name as destination_account_name on the payout — it is the institution-confirmed name, not a merchant guess. Results are cached briefly per account.
POST
/
v1
/
banks
/
resolve
Resolve an account name
curl --request POST \
--url https://api.spendin.app/v1/banks/resolve \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--header 'X-API-Key: <api-key>' \
--data '
{
"destination_type": "BANK_ACCOUNT",
"destination_currency": "NGN",
"destination_account_unique": "0123456789",
"destination_provider_code": "044"
}
'import requests
url = "https://api.spendin.app/v1/banks/resolve"
payload = {
"destination_type": "BANK_ACCOUNT",
"destination_currency": "NGN",
"destination_account_unique": "0123456789",
"destination_provider_code": "044"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
'X-API-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
destination_type: 'BANK_ACCOUNT',
destination_currency: 'NGN',
destination_account_unique: '0123456789',
destination_provider_code: '044'
})
};
fetch('https://api.spendin.app/v1/banks/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://api.spendin.app/v1/banks/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([
'destination_type' => 'BANK_ACCOUNT',
'destination_currency' => 'NGN',
'destination_account_unique' => '0123456789',
'destination_provider_code' => '044'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>",
"X-API-Key: <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.spendin.app/v1/banks/resolve"
payload := strings.NewReader("{\n \"destination_type\": \"BANK_ACCOUNT\",\n \"destination_currency\": \"NGN\",\n \"destination_account_unique\": \"0123456789\",\n \"destination_provider_code\": \"044\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("X-API-Key", "<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.spendin.app/v1/banks/resolve")
.header("Idempotency-Key", "<idempotency-key>")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"destination_type\": \"BANK_ACCOUNT\",\n \"destination_currency\": \"NGN\",\n \"destination_account_unique\": \"0123456789\",\n \"destination_provider_code\": \"044\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spendin.app/v1/banks/resolve")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"destination_type\": \"BANK_ACCOUNT\",\n \"destination_currency\": \"NGN\",\n \"destination_account_unique\": \"0123456789\",\n \"destination_provider_code\": \"044\"\n}"
response = http.request(request)
puts response.read_body{
"destination_account_name": "KWAME MENSAH",
"destination_account_unique": "0123456789",
"destination_provider_code": "044",
"destination_type": "MOBILE_MONEY"
}Authorizations
Headers
Unique idempotency token per logical write (UUID v4). Re-send the same value on safe retries.
Example:
"a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6"
Body
application/json
Available options:
BANK_ACCOUNT, MOBILE_MONEY Example:
"BANK_ACCOUNT"
ISO 4217 currency code of the destination
Example:
"NGN"
Bank account number or mobile number
Example:
"0123456789"
Bank code or mobile money code — from GET /v1/banks
Example:
"044"
Response
The name the institution holds for this account. Use this as destination_account_name on the payout — never the merchant-typed guess.
Example:
"KWAME MENSAH"
Example:
"0123456789"
Example:
"044"
Available options:
MOBILE_MONEY, BANK_ACCOUNT, CRYPTO_WALLET