Allocate Funds to Virtual Account
curl --request POST \
--url https://sandbox.cashfree.com/payout/v1/connected-wallet/recharge \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 500.01,
"paymentInstrumentId": "YES_CONNECTED_484576_4f21dfa",
"rechargeId": "recharge12",
"utr": 54600012345,
"remarks": "salary"
}
'import requests
url = "https://sandbox.cashfree.com/payout/v1/connected-wallet/recharge"
payload = {
"amount": 500.01,
"paymentInstrumentId": "YES_CONNECTED_484576_4f21dfa",
"rechargeId": "recharge12",
"utr": 54600012345,
"remarks": "salary"
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: 500.01,
paymentInstrumentId: 'YES_CONNECTED_484576_4f21dfa',
rechargeId: 'recharge12',
utr: 54600012345,
remarks: 'salary'
})
};
fetch('https://sandbox.cashfree.com/payout/v1/connected-wallet/recharge', 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://sandbox.cashfree.com/payout/v1/connected-wallet/recharge",
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' => 500.01,
'paymentInstrumentId' => 'YES_CONNECTED_484576_4f21dfa',
'rechargeId' => 'recharge12',
'utr' => 54600012345,
'remarks' => 'salary'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"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://sandbox.cashfree.com/payout/v1/connected-wallet/recharge"
payload := strings.NewReader("{\n \"amount\": 500.01,\n \"paymentInstrumentId\": \"YES_CONNECTED_484576_4f21dfa\",\n \"rechargeId\": \"recharge12\",\n \"utr\": 54600012345,\n \"remarks\": \"salary\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
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://sandbox.cashfree.com/payout/v1/connected-wallet/recharge")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 500.01,\n \"paymentInstrumentId\": \"YES_CONNECTED_484576_4f21dfa\",\n \"rechargeId\": \"recharge12\",\n \"utr\": 54600012345,\n \"remarks\": \"salary\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.cashfree.com/payout/v1/connected-wallet/recharge")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": 500.01,\n \"paymentInstrumentId\": \"YES_CONNECTED_484576_4f21dfa\",\n \"rechargeId\": \"recharge12\",\n \"utr\": 54600012345,\n \"remarks\": \"salary\"\n}"
response = http.request(request)
puts response.read_body{
"status": "SUCCESS",
"subCode": "200",
"message": "Recharge successful",
"data": {
"referenceId": 4379710,
"message": "Amount added to the merchant balance"
}
}
One Escrow
Allocate Funds to Virtual Account
Use this API to recharge the OneEscrow account (notional credit) using a payment instrument.
POST
/
v1
/
connected-wallet
/
recharge
Allocate Funds to Virtual Account
curl --request POST \
--url https://sandbox.cashfree.com/payout/v1/connected-wallet/recharge \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 500.01,
"paymentInstrumentId": "YES_CONNECTED_484576_4f21dfa",
"rechargeId": "recharge12",
"utr": 54600012345,
"remarks": "salary"
}
'import requests
url = "https://sandbox.cashfree.com/payout/v1/connected-wallet/recharge"
payload = {
"amount": 500.01,
"paymentInstrumentId": "YES_CONNECTED_484576_4f21dfa",
"rechargeId": "recharge12",
"utr": 54600012345,
"remarks": "salary"
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: 500.01,
paymentInstrumentId: 'YES_CONNECTED_484576_4f21dfa',
rechargeId: 'recharge12',
utr: 54600012345,
remarks: 'salary'
})
};
fetch('https://sandbox.cashfree.com/payout/v1/connected-wallet/recharge', 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://sandbox.cashfree.com/payout/v1/connected-wallet/recharge",
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' => 500.01,
'paymentInstrumentId' => 'YES_CONNECTED_484576_4f21dfa',
'rechargeId' => 'recharge12',
'utr' => 54600012345,
'remarks' => 'salary'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"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://sandbox.cashfree.com/payout/v1/connected-wallet/recharge"
payload := strings.NewReader("{\n \"amount\": 500.01,\n \"paymentInstrumentId\": \"YES_CONNECTED_484576_4f21dfa\",\n \"rechargeId\": \"recharge12\",\n \"utr\": 54600012345,\n \"remarks\": \"salary\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
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://sandbox.cashfree.com/payout/v1/connected-wallet/recharge")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 500.01,\n \"paymentInstrumentId\": \"YES_CONNECTED_484576_4f21dfa\",\n \"rechargeId\": \"recharge12\",\n \"utr\": 54600012345,\n \"remarks\": \"salary\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.cashfree.com/payout/v1/connected-wallet/recharge")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": 500.01,\n \"paymentInstrumentId\": \"YES_CONNECTED_484576_4f21dfa\",\n \"rechargeId\": \"recharge12\",\n \"utr\": 54600012345,\n \"remarks\": \"salary\"\n}"
response = http.request(request)
puts response.read_body{
"status": "SUCCESS",
"subCode": "200",
"message": "Recharge successful",
"data": {
"referenceId": 4379710,
"message": "Amount added to the merchant balance"
}
}
Headers
Bearer token for authentication.
Body
application/json
It is the recharge amount in decimal value up to 2 precision.
Example:
500.01
It is the unique ID to identify the payment instrument.
Example:
"YES_CONNECTED_484576_4f21dfa"
It is the unique ID to identify the recharge request.
Example:
"recharge12"
It is the unique transaction reference number for the recharge transaction (optional).
Example:
54600012345
Remarks for the recharge transaction (optional).
Example:
"salary"
Was this page helpful?
āI