Create Off-Ramp Account
curl --request POST \
--url https://api.example.com/v1/ramp/recipients/{id}/offramp-accountsimport requests
url = "https://api.example.com/v1/ramp/recipients/{id}/offramp-accounts"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/v1/ramp/recipients/{id}/offramp-accounts', 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.example.com/v1/ramp/recipients/{id}/offramp-accounts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/ramp/recipients/{id}/offramp-accounts"
req, _ := http.NewRequest("POST", url, nil)
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.example.com/v1/ramp/recipients/{id}/offramp-accounts")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/ramp/recipients/{id}/offramp-accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyRamping — Accounts
Create Off-Ramp Account
POST /v1/ramp/recipients//offramp-accounts — Create a crypto deposit address for off-ramping
POST
/
v1
/
ramp
/
recipients
/
{id}
/
offramp-accounts
Create Off-Ramp Account
curl --request POST \
--url https://api.example.com/v1/ramp/recipients/{id}/offramp-accountsimport requests
url = "https://api.example.com/v1/ramp/recipients/{id}/offramp-accounts"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/v1/ramp/recipients/{id}/offramp-accounts', 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.example.com/v1/ramp/recipients/{id}/offramp-accounts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/ramp/recipients/{id}/offramp-accounts"
req, _ := http.NewRequest("POST", url, nil)
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.example.com/v1/ramp/recipients/{id}/offramp-accounts")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/ramp/recipients/{id}/offramp-accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyEndpoint:
POST https://api.rebelfi.io/v1/ramp/recipients/{id}/offramp-accountsPath Parameters
| Field | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | Recipient ID |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
org_wallet_id | integer | Yes | ID of the organization wallet |
source_asset | string | No | Source crypto asset (default: "USDC") |
rail | string | No | Payment rail (default: "ach") |
bank_details | object | Yes | Destination bank account details |
bank_details.routing_number | string | Yes | Bank routing number |
bank_details.account_number | string | Yes | Bank account number |
bank_details.account_type | string | Yes | Account type ("checking" or "savings") |
bank_details.account_holder_name | string | Yes | Name on the bank account |
bank_details.bank_name | string | Yes | Name of the bank |
Example Request
curl -X POST "https://api.rebelfi.io/v1/ramp/recipients/1/offramp-accounts" \
-H "x-api-key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"org_wallet_id": 42,
"source_asset": "USDC",
"rail": "ach",
"bank_details": {
"routing_number": "021000021",
"account_number": "987654321",
"account_type": "checking",
"account_holder_name": "OnEdge Inc",
"bank_name": "Chase Bank"
}
}'
const offrampAccount = await client.ramp.createRecipientOfframpAccount(1, {
orgWalletId: 42,
bankDetails: {
routingNumber: '021000021',
accountNumber: '987654321',
accountType: 'checking',
accountHolderName: 'OnEdge Inc',
bankName: 'Chase Bank'
}
});
Example Response
{
"id": 1,
"source_crypto_address": "0xABC123...",
"source_asset": "USDC",
"destination_asset": "USD",
"network_id": "solana-mainnet",
"rail": "ach",
"fiat_bank_name": "Chase Bank",
"fiat_account_type": "checking",
"fiat_account_holder_name": "OnEdge Inc",
"status": "active"
}
Response Fields
| Field | Type | Description |
|---|---|---|
id | number | Off-ramp account identifier |
source_crypto_address | string | Crypto deposit address for off-ramping |
source_asset | string | Source crypto asset |
destination_asset | string | Destination fiat currency |
network_id | string | Blockchain network identifier |
rail | string | Payment rail |
fiat_bank_name | string | Destination bank name |
fiat_account_type | string | Bank account type |
fiat_account_holder_name | string | Name on the bank account |
status | string | Account status (active) |