curl --request PUT \
--url https://api.spendin.app/v1/refund-destinations \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--header 'X-API-Key: <api-key>' \
--data '
{
"currency": "USDT",
"type": "CRYPTO_ADDRESS",
"bank_code": "058",
"account_number": "0123456789",
"bank_name": "Guaranty Trust Bank",
"address": "TXyz1234abcd...",
"tag": null
}
'import requests
url = "https://api.spendin.app/v1/refund-destinations"
payload = {
"currency": "USDT",
"type": "CRYPTO_ADDRESS",
"bank_code": "058",
"account_number": "0123456789",
"bank_name": "Guaranty Trust Bank",
"address": "TXyz1234abcd...",
"tag": None
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
'Idempotency-Key': '<idempotency-key>',
'X-API-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
currency: 'USDT',
type: 'CRYPTO_ADDRESS',
bank_code: '058',
account_number: '0123456789',
bank_name: 'Guaranty Trust Bank',
address: 'TXyz1234abcd...',
tag: null
})
};
fetch('https://api.spendin.app/v1/refund-destinations', 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/refund-destinations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'currency' => 'USDT',
'type' => 'CRYPTO_ADDRESS',
'bank_code' => '058',
'account_number' => '0123456789',
'bank_name' => 'Guaranty Trust Bank',
'address' => 'TXyz1234abcd...',
'tag' => null
]),
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/refund-destinations"
payload := strings.NewReader("{\n \"currency\": \"USDT\",\n \"type\": \"CRYPTO_ADDRESS\",\n \"bank_code\": \"058\",\n \"account_number\": \"0123456789\",\n \"bank_name\": \"Guaranty Trust Bank\",\n \"address\": \"TXyz1234abcd...\",\n \"tag\": null\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.spendin.app/v1/refund-destinations")
.header("Idempotency-Key", "<idempotency-key>")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"currency\": \"USDT\",\n \"type\": \"CRYPTO_ADDRESS\",\n \"bank_code\": \"058\",\n \"account_number\": \"0123456789\",\n \"bank_name\": \"Guaranty Trust Bank\",\n \"address\": \"TXyz1234abcd...\",\n \"tag\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spendin.app/v1/refund-destinations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"currency\": \"USDT\",\n \"type\": \"CRYPTO_ADDRESS\",\n \"bank_code\": \"058\",\n \"account_number\": \"0123456789\",\n \"bank_name\": \"Guaranty Trust Bank\",\n \"address\": \"TXyz1234abcd...\",\n \"tag\": null\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"currency": "USDT",
"type": "BANK_ACCOUNT",
"bank_name": "Guaranty Trust Bank",
"bank_code": "058",
"account_number_masked": "******6789",
"account_name": "ACME LTD",
"network": "TRON",
"address_masked": "TXyz...abcd",
"is_verified": true,
"is_active": true,
"created_at": "<string>",
"updated_at": "<string>"
}Set a refund destination
NGN routes to a Nigerian bank account (verified by name enquiry before saving); USDT routes to a crypto address on TRON or BSC. One destination per currency — setting it again replaces it. Required before payouts can be created.
curl --request PUT \
--url https://api.spendin.app/v1/refund-destinations \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--header 'X-API-Key: <api-key>' \
--data '
{
"currency": "USDT",
"type": "CRYPTO_ADDRESS",
"bank_code": "058",
"account_number": "0123456789",
"bank_name": "Guaranty Trust Bank",
"address": "TXyz1234abcd...",
"tag": null
}
'import requests
url = "https://api.spendin.app/v1/refund-destinations"
payload = {
"currency": "USDT",
"type": "CRYPTO_ADDRESS",
"bank_code": "058",
"account_number": "0123456789",
"bank_name": "Guaranty Trust Bank",
"address": "TXyz1234abcd...",
"tag": None
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
'Idempotency-Key': '<idempotency-key>',
'X-API-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
currency: 'USDT',
type: 'CRYPTO_ADDRESS',
bank_code: '058',
account_number: '0123456789',
bank_name: 'Guaranty Trust Bank',
address: 'TXyz1234abcd...',
tag: null
})
};
fetch('https://api.spendin.app/v1/refund-destinations', 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/refund-destinations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'currency' => 'USDT',
'type' => 'CRYPTO_ADDRESS',
'bank_code' => '058',
'account_number' => '0123456789',
'bank_name' => 'Guaranty Trust Bank',
'address' => 'TXyz1234abcd...',
'tag' => null
]),
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/refund-destinations"
payload := strings.NewReader("{\n \"currency\": \"USDT\",\n \"type\": \"CRYPTO_ADDRESS\",\n \"bank_code\": \"058\",\n \"account_number\": \"0123456789\",\n \"bank_name\": \"Guaranty Trust Bank\",\n \"address\": \"TXyz1234abcd...\",\n \"tag\": null\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.spendin.app/v1/refund-destinations")
.header("Idempotency-Key", "<idempotency-key>")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"currency\": \"USDT\",\n \"type\": \"CRYPTO_ADDRESS\",\n \"bank_code\": \"058\",\n \"account_number\": \"0123456789\",\n \"bank_name\": \"Guaranty Trust Bank\",\n \"address\": \"TXyz1234abcd...\",\n \"tag\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spendin.app/v1/refund-destinations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"currency\": \"USDT\",\n \"type\": \"CRYPTO_ADDRESS\",\n \"bank_code\": \"058\",\n \"account_number\": \"0123456789\",\n \"bank_name\": \"Guaranty Trust Bank\",\n \"address\": \"TXyz1234abcd...\",\n \"tag\": null\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"currency": "USDT",
"type": "BANK_ACCOUNT",
"bank_name": "Guaranty Trust Bank",
"bank_code": "058",
"account_number_masked": "******6789",
"account_name": "ACME LTD",
"network": "TRON",
"address_masked": "TXyz...abcd",
"is_verified": true,
"is_active": true,
"created_at": "<string>",
"updated_at": "<string>"
}Authorizations
Headers
Unique idempotency token per logical write (UUID v4). Re-send the same value on safe retries.
"a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6"
Body
Settlement currency: 'NGN' or 'USDT'
"USDT"
BANK_ACCOUNT, CRYPTO_ADDRESS "CRYPTO_ADDRESS"
Required for BANK_ACCOUNT
"058"
Required for BANK_ACCOUNT — 10-digit NUBAN
"0123456789"
"Guaranty Trust Bank"
Required for CRYPTO_ADDRESS — TRON or BSC only
TRON, BSC Required for CRYPTO_ADDRESS
"TXyz1234abcd..."
Destination tag/memo, where the chain uses one
null
Response
Destination saved
"USDT"
BANK_ACCOUNT, CRYPTO_ADDRESS "Guaranty Trust Bank"
"058"
Masked — last 4 digits only
"******6789"
Bank-confirmed name
"ACME LTD"
TRON, BSC Masked — first 6 / last 4
"TXyz...abcd"
Bank accounts only — crypto addresses cannot be verified
true