Confirm the quoted exchange rate
curl --request POST \
--url https://api.staging.railsfromthecrypt.com/v1/transfer-requests/{id}/confirm-rate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 10000
}
'import requests
url = "https://api.staging.railsfromthecrypt.com/v1/transfer-requests/{id}/confirm-rate"
payload = { "amount": 10000 }
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({amount: 10000})
};
fetch('https://api.staging.railsfromthecrypt.com/v1/transfer-requests/{id}/confirm-rate', 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.staging.railsfromthecrypt.com/v1/transfer-requests/{id}/confirm-rate",
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' => 10000
]),
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://api.staging.railsfromthecrypt.com/v1/transfer-requests/{id}/confirm-rate"
payload := strings.NewReader("{\n \"amount\": 10000\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://api.staging.railsfromthecrypt.com/v1/transfer-requests/{id}/confirm-rate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 10000\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.staging.railsfromthecrypt.com/v1/transfer-requests/{id}/confirm-rate")
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 \"amount\": 10000\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Rate confirmed successfully",
"data": {
"id": "c17d2777-e604-45e2-b6d5-7743652eadf1",
"type": "onramp",
"status": "fetching_rates",
"source": {
"amount": 10000,
"currency": "NGN"
},
"destination": {
"amount": 0,
"currency": "USDC"
},
"events": [
{
"status": "pending",
"timestamp": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z"
}
],
"payments": [],
"created_at": "2025-10-10T09:15:21Z",
"reference": "TXN-2Z82FVYO6BW22RC7",
"rate": {
"value": 0,
"expires_at": null
},
"recipient": {
"id": "rec_01J8V9ZP3A7",
"type": "crypto",
"name": "My USDT Wallet",
"details": {
"network": "Ethereum",
"wallet_address": "0xABC123DEF456...",
"symbol": "USDT"
}
},
"payment_instructions": {
"type": "bank_transfer",
"bank_transfer": {
"account_number": "1234567890",
"account_name": "HashRails Ltd",
"bank_name": "Wema Bank",
"bank_code": "035"
}
}
}
}Transfer Request
Confirm Rate
POST
/
v1
/
transfer-requests
/
{id}
/
confirm-rate
Confirm the quoted exchange rate
curl --request POST \
--url https://api.staging.railsfromthecrypt.com/v1/transfer-requests/{id}/confirm-rate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 10000
}
'import requests
url = "https://api.staging.railsfromthecrypt.com/v1/transfer-requests/{id}/confirm-rate"
payload = { "amount": 10000 }
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({amount: 10000})
};
fetch('https://api.staging.railsfromthecrypt.com/v1/transfer-requests/{id}/confirm-rate', 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.staging.railsfromthecrypt.com/v1/transfer-requests/{id}/confirm-rate",
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' => 10000
]),
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://api.staging.railsfromthecrypt.com/v1/transfer-requests/{id}/confirm-rate"
payload := strings.NewReader("{\n \"amount\": 10000\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://api.staging.railsfromthecrypt.com/v1/transfer-requests/{id}/confirm-rate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 10000\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.staging.railsfromthecrypt.com/v1/transfer-requests/{id}/confirm-rate")
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 \"amount\": 10000\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Rate confirmed successfully",
"data": {
"id": "c17d2777-e604-45e2-b6d5-7743652eadf1",
"type": "onramp",
"status": "fetching_rates",
"source": {
"amount": 10000,
"currency": "NGN"
},
"destination": {
"amount": 0,
"currency": "USDC"
},
"events": [
{
"status": "pending",
"timestamp": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z"
}
],
"payments": [],
"created_at": "2025-10-10T09:15:21Z",
"reference": "TXN-2Z82FVYO6BW22RC7",
"rate": {
"value": 0,
"expires_at": null
},
"recipient": {
"id": "rec_01J8V9ZP3A7",
"type": "crypto",
"name": "My USDT Wallet",
"details": {
"network": "Ethereum",
"wallet_address": "0xABC123DEF456...",
"symbol": "USDT"
}
},
"payment_instructions": {
"type": "bank_transfer",
"bank_transfer": {
"account_number": "1234567890",
"account_name": "HashRails Ltd",
"bank_name": "Wema Bank",
"bank_code": "035"
}
}
}
}Accept the quoted exchange rate for a transfer request. Once confirmed, the rate is locked and payment instructions are generated.
Authorizations
JWT access token from POST /v1/auth/token/issue. Send as: Authorization: Bearer <access_token>
Path Parameters
Unique transfer request ID
Example:
"c17d2777-e604-45e2-b6d5-7743652eadf1"
Body
application/json
The transfer amount to confirm the rate for.
Example:
10000