Fund Customer SCW (On-Ramp)
curl --request POST \
--url https://api.rach.finance/caas/api/v1/users/fund \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"deposit_id": "dep_001_20240601",
"local_fiat_amount": "11000.00",
"phone_number": "+2250700000001",
"stablecoin_amount": "1.000000",
"target_token": "USDC"
}
'import requests
url = "https://api.rach.finance/caas/api/v1/users/fund"
payload = {
"deposit_id": "dep_001_20240601",
"local_fiat_amount": "11000.00",
"phone_number": "+2250700000001",
"stablecoin_amount": "1.000000",
"target_token": "USDC"
}
headers = {
"X-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-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
deposit_id: 'dep_001_20240601',
local_fiat_amount: '11000.00',
phone_number: '+2250700000001',
stablecoin_amount: '1.000000',
target_token: 'USDC'
})
};
fetch('https://api.rach.finance/caas/api/v1/users/fund', 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.rach.finance/caas/api/v1/users/fund",
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([
'deposit_id' => 'dep_001_20240601',
'local_fiat_amount' => '11000.00',
'phone_number' => '+2250700000001',
'stablecoin_amount' => '1.000000',
'target_token' => 'USDC'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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.rach.finance/caas/api/v1/users/fund"
payload := strings.NewReader("{\n \"deposit_id\": \"dep_001_20240601\",\n \"local_fiat_amount\": \"11000.00\",\n \"phone_number\": \"+2250700000001\",\n \"stablecoin_amount\": \"1.000000\",\n \"target_token\": \"USDC\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.post("https://api.rach.finance/caas/api/v1/users/fund")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"deposit_id\": \"dep_001_20240601\",\n \"local_fiat_amount\": \"11000.00\",\n \"phone_number\": \"+2250700000001\",\n \"stablecoin_amount\": \"1.000000\",\n \"target_token\": \"USDC\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rach.finance/caas/api/v1/users/fund")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"deposit_id\": \"dep_001_20240601\",\n \"local_fiat_amount\": \"11000.00\",\n \"phone_number\": \"+2250700000001\",\n \"stablecoin_amount\": \"1.000000\",\n \"target_token\": \"USDC\"\n}"
response = http.request(request)
puts response.read_body{
"created_at": "<string>",
"deposit_id": "<string>",
"message": "<string>",
"status": "<string>"
}{}{}{}{}{}B2B - Users
Fund Customer SCW (On-Ramp)
Credits a customer’s Smart Contract Wallet with USDC on Polygon PoS. This triggers an ERC-20 transfer from the Rach treasury EOA to the customer’s SCW address. Debits your internal tenant USDC balance atomically before dispatching — returns 402 if your balance is insufficient. Idempotent: supply a stable deposit_id to safely retry without double-crediting.
POST
/
v1
/
users
/
fund
Fund Customer SCW (On-Ramp)
curl --request POST \
--url https://api.rach.finance/caas/api/v1/users/fund \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"deposit_id": "dep_001_20240601",
"local_fiat_amount": "11000.00",
"phone_number": "+2250700000001",
"stablecoin_amount": "1.000000",
"target_token": "USDC"
}
'import requests
url = "https://api.rach.finance/caas/api/v1/users/fund"
payload = {
"deposit_id": "dep_001_20240601",
"local_fiat_amount": "11000.00",
"phone_number": "+2250700000001",
"stablecoin_amount": "1.000000",
"target_token": "USDC"
}
headers = {
"X-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-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
deposit_id: 'dep_001_20240601',
local_fiat_amount: '11000.00',
phone_number: '+2250700000001',
stablecoin_amount: '1.000000',
target_token: 'USDC'
})
};
fetch('https://api.rach.finance/caas/api/v1/users/fund', 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.rach.finance/caas/api/v1/users/fund",
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([
'deposit_id' => 'dep_001_20240601',
'local_fiat_amount' => '11000.00',
'phone_number' => '+2250700000001',
'stablecoin_amount' => '1.000000',
'target_token' => 'USDC'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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.rach.finance/caas/api/v1/users/fund"
payload := strings.NewReader("{\n \"deposit_id\": \"dep_001_20240601\",\n \"local_fiat_amount\": \"11000.00\",\n \"phone_number\": \"+2250700000001\",\n \"stablecoin_amount\": \"1.000000\",\n \"target_token\": \"USDC\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.post("https://api.rach.finance/caas/api/v1/users/fund")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"deposit_id\": \"dep_001_20240601\",\n \"local_fiat_amount\": \"11000.00\",\n \"phone_number\": \"+2250700000001\",\n \"stablecoin_amount\": \"1.000000\",\n \"target_token\": \"USDC\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rach.finance/caas/api/v1/users/fund")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"deposit_id\": \"dep_001_20240601\",\n \"local_fiat_amount\": \"11000.00\",\n \"phone_number\": \"+2250700000001\",\n \"stablecoin_amount\": \"1.000000\",\n \"target_token\": \"USDC\"\n}"
response = http.request(request)
puts response.read_body{
"created_at": "<string>",
"deposit_id": "<string>",
"message": "<string>",
"status": "<string>"
}{}{}{}{}{}Authorizations
Your Rach B2B API key. Use rach_sk_live_* for production (on-chain) or rach_sk_test_* for sandbox (no-chain simulation).
Body
application/json
Deposit payload
⌘I

