Skip to main content
POST
/
v1
/
transfer-requests
/
{id}
/
confirm-rate
Confirm the quoted exchange rate
curl --request POST \
  --url https://api.railsfromthecrypt.com/v1/transfer-requests/{id}/confirm-rate \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --data '
{
  "amount": 10000
}
'
{
  "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": "Polygon",
        "wallet_address": "0xABC123DEF456...",
        "symbol": "USDT"
      }
    },
    "payment_instructions": {}
  }
}
Accept the quoted exchange rate for a transfer request. Once confirmed, the rate is locked and payment instructions are generated.

Headers

x-api-key
string
required

API key for authentication

Path Parameters

id
string
required

Unique transfer request ID

Example:

"c17d2777-e604-45e2-b6d5-7743652eadf1"

Body

application/json
amount
number
required

The transfer amount to confirm the rate for.

Example:

10000

Response

Rate confirmed and payment instructions generated

success
boolean
Example:

true

message
string
Example:

"Rate confirmed successfully"

data
object