Quote a transfer
curl --request POST \
--url https://api.yara.cash/v1/transfers/quotes \
--header 'Content-Type: application/json' \
--header 'X-Idempotency-Key: <x-idempotency-key>' \
--header 'X-Yara-API-Key: <api-key>' \
--data '
{
"amount": {
"currency": "USD",
"value": "100.00"
},
"funding_source": {
"asset": "USDC",
"currency": "NGN",
"method": "BANK_TRANSFER",
"network": "BASE"
},
"recipient_id": "3bf24579-a35a-4ba9-a936-5df9c1d809f9"
}
'import requests
url = "https://api.yara.cash/v1/transfers/quotes"
payload = {
"amount": {
"currency": "USD",
"value": "100.00"
},
"funding_source": {
"asset": "USDC",
"currency": "NGN",
"method": "BANK_TRANSFER",
"network": "BASE"
},
"recipient_id": "3bf24579-a35a-4ba9-a936-5df9c1d809f9"
}
headers = {
"X-Idempotency-Key": "<x-idempotency-key>",
"X-Yara-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Idempotency-Key': '<x-idempotency-key>',
'X-Yara-API-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
amount: {currency: 'USD', value: '100.00'},
funding_source: {asset: 'USDC', currency: 'NGN', method: 'BANK_TRANSFER', network: 'BASE'},
recipient_id: '3bf24579-a35a-4ba9-a936-5df9c1d809f9'
})
};
fetch('https://api.yara.cash/v1/transfers/quotes', 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.yara.cash/v1/transfers/quotes",
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([
'amount' => [
'currency' => 'USD',
'value' => '100.00'
],
'funding_source' => [
'asset' => 'USDC',
'currency' => 'NGN',
'method' => 'BANK_TRANSFER',
'network' => 'BASE'
],
'recipient_id' => '3bf24579-a35a-4ba9-a936-5df9c1d809f9'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Idempotency-Key: <x-idempotency-key>",
"X-Yara-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.yara.cash/v1/transfers/quotes"
payload := strings.NewReader("{\n \"amount\": {\n \"currency\": \"USD\",\n \"value\": \"100.00\"\n },\n \"funding_source\": {\n \"asset\": \"USDC\",\n \"currency\": \"NGN\",\n \"method\": \"BANK_TRANSFER\",\n \"network\": \"BASE\"\n },\n \"recipient_id\": \"3bf24579-a35a-4ba9-a936-5df9c1d809f9\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Idempotency-Key", "<x-idempotency-key>")
req.Header.Add("X-Yara-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.yara.cash/v1/transfers/quotes")
.header("X-Idempotency-Key", "<x-idempotency-key>")
.header("X-Yara-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": {\n \"currency\": \"USD\",\n \"value\": \"100.00\"\n },\n \"funding_source\": {\n \"asset\": \"USDC\",\n \"currency\": \"NGN\",\n \"method\": \"BANK_TRANSFER\",\n \"network\": \"BASE\"\n },\n \"recipient_id\": \"3bf24579-a35a-4ba9-a936-5df9c1d809f9\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.yara.cash/v1/transfers/quotes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Idempotency-Key"] = '<x-idempotency-key>'
request["X-Yara-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": {\n \"currency\": \"USD\",\n \"value\": \"100.00\"\n },\n \"funding_source\": {\n \"asset\": \"USDC\",\n \"currency\": \"NGN\",\n \"method\": \"BANK_TRANSFER\",\n \"network\": \"BASE\"\n },\n \"recipient_id\": \"3bf24579-a35a-4ba9-a936-5df9c1d809f9\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"destination_amount": {
"asset": "USDC",
"currency": "USD",
"network": "BASE",
"value": "100.00"
},
"destination_rail": "US_BANK_ACCOUNT",
"expires_at": "2026-06-16T03:05:00Z",
"funding": {
"expires_at": "2026-06-16T03:05:00Z",
"fee": {
"asset": "USDC",
"currency": "USD",
"network": "BASE",
"value": "100.00"
},
"method": "BANK_TRANSFER",
"rate": {
"base_currency": "USD",
"quote_currency": "NGN",
"value": "1600"
},
"required_amount": {
"asset": "USDC",
"currency": "USD",
"network": "BASE",
"value": "100.00"
}
},
"id": "0e0f7b9c-f47b-4f42-b56e-991b8f7a1cb3",
"status": "ACTIVE",
"total_debit": {
"asset": "USDC",
"currency": "USD",
"network": "BASE",
"value": "100.00"
},
"transfer_fee": {
"asset": "USDC",
"currency": "USD",
"network": "BASE",
"value": "100.00"
}
}
}{
"error": {
"code": "validation_error",
"message": "invalid JSON body"
}
}{
"error": {
"code": "validation_error",
"message": "invalid JSON body"
}
}{
"error": {
"code": "validation_error",
"message": "invalid JSON body"
}
}{
"error": {
"code": "validation_error",
"message": "invalid JSON body"
}
}Transfers
Quote a transfer
Quotes a transfer to an already whitelisted recipient. USD bank transfers require the authenticated merchant’s verified Tier 2 business profile and approved USD banking capability; no customer identity is accepted as the transfer principal.
POST
/
v1
/
transfers
/
quotes
Quote a transfer
curl --request POST \
--url https://api.yara.cash/v1/transfers/quotes \
--header 'Content-Type: application/json' \
--header 'X-Idempotency-Key: <x-idempotency-key>' \
--header 'X-Yara-API-Key: <api-key>' \
--data '
{
"amount": {
"currency": "USD",
"value": "100.00"
},
"funding_source": {
"asset": "USDC",
"currency": "NGN",
"method": "BANK_TRANSFER",
"network": "BASE"
},
"recipient_id": "3bf24579-a35a-4ba9-a936-5df9c1d809f9"
}
'import requests
url = "https://api.yara.cash/v1/transfers/quotes"
payload = {
"amount": {
"currency": "USD",
"value": "100.00"
},
"funding_source": {
"asset": "USDC",
"currency": "NGN",
"method": "BANK_TRANSFER",
"network": "BASE"
},
"recipient_id": "3bf24579-a35a-4ba9-a936-5df9c1d809f9"
}
headers = {
"X-Idempotency-Key": "<x-idempotency-key>",
"X-Yara-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Idempotency-Key': '<x-idempotency-key>',
'X-Yara-API-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
amount: {currency: 'USD', value: '100.00'},
funding_source: {asset: 'USDC', currency: 'NGN', method: 'BANK_TRANSFER', network: 'BASE'},
recipient_id: '3bf24579-a35a-4ba9-a936-5df9c1d809f9'
})
};
fetch('https://api.yara.cash/v1/transfers/quotes', 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.yara.cash/v1/transfers/quotes",
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([
'amount' => [
'currency' => 'USD',
'value' => '100.00'
],
'funding_source' => [
'asset' => 'USDC',
'currency' => 'NGN',
'method' => 'BANK_TRANSFER',
'network' => 'BASE'
],
'recipient_id' => '3bf24579-a35a-4ba9-a936-5df9c1d809f9'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Idempotency-Key: <x-idempotency-key>",
"X-Yara-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.yara.cash/v1/transfers/quotes"
payload := strings.NewReader("{\n \"amount\": {\n \"currency\": \"USD\",\n \"value\": \"100.00\"\n },\n \"funding_source\": {\n \"asset\": \"USDC\",\n \"currency\": \"NGN\",\n \"method\": \"BANK_TRANSFER\",\n \"network\": \"BASE\"\n },\n \"recipient_id\": \"3bf24579-a35a-4ba9-a936-5df9c1d809f9\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Idempotency-Key", "<x-idempotency-key>")
req.Header.Add("X-Yara-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.yara.cash/v1/transfers/quotes")
.header("X-Idempotency-Key", "<x-idempotency-key>")
.header("X-Yara-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": {\n \"currency\": \"USD\",\n \"value\": \"100.00\"\n },\n \"funding_source\": {\n \"asset\": \"USDC\",\n \"currency\": \"NGN\",\n \"method\": \"BANK_TRANSFER\",\n \"network\": \"BASE\"\n },\n \"recipient_id\": \"3bf24579-a35a-4ba9-a936-5df9c1d809f9\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.yara.cash/v1/transfers/quotes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Idempotency-Key"] = '<x-idempotency-key>'
request["X-Yara-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": {\n \"currency\": \"USD\",\n \"value\": \"100.00\"\n },\n \"funding_source\": {\n \"asset\": \"USDC\",\n \"currency\": \"NGN\",\n \"method\": \"BANK_TRANSFER\",\n \"network\": \"BASE\"\n },\n \"recipient_id\": \"3bf24579-a35a-4ba9-a936-5df9c1d809f9\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"destination_amount": {
"asset": "USDC",
"currency": "USD",
"network": "BASE",
"value": "100.00"
},
"destination_rail": "US_BANK_ACCOUNT",
"expires_at": "2026-06-16T03:05:00Z",
"funding": {
"expires_at": "2026-06-16T03:05:00Z",
"fee": {
"asset": "USDC",
"currency": "USD",
"network": "BASE",
"value": "100.00"
},
"method": "BANK_TRANSFER",
"rate": {
"base_currency": "USD",
"quote_currency": "NGN",
"value": "1600"
},
"required_amount": {
"asset": "USDC",
"currency": "USD",
"network": "BASE",
"value": "100.00"
}
},
"id": "0e0f7b9c-f47b-4f42-b56e-991b8f7a1cb3",
"status": "ACTIVE",
"total_debit": {
"asset": "USDC",
"currency": "USD",
"network": "BASE",
"value": "100.00"
},
"transfer_fee": {
"asset": "USDC",
"currency": "USD",
"network": "BASE",
"value": "100.00"
}
}
}{
"error": {
"code": "validation_error",
"message": "invalid JSON body"
}
}{
"error": {
"code": "validation_error",
"message": "invalid JSON body"
}
}{
"error": {
"code": "validation_error",
"message": "invalid JSON body"
}
}{
"error": {
"code": "validation_error",
"message": "invalid JSON body"
}
}Authorizations
Public merchant API key. You can also send Authorization: ApiKey .
Headers
Idempotency key
Body
application/json
Transfer quote request
Response
Created
Show child attributes
Show child attributes
⌘I