Transfer Funds Between VAs
curl --request POST \
--url https://sandbox.cashfree.com/payout/v1.2/internalTransfer \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 1000.5,
"toPaymentInstrumentId": "YES_CONNECTED_484576_4f21dfa",
"paymentInstrumentId": "YES_CONNECTED_484576_4f21dfb",
"transferId": "JUNOb23",
"remarks": "commission"
}
'import requests
url = "https://sandbox.cashfree.com/payout/v1.2/internalTransfer"
payload = {
"amount": 1000.5,
"toPaymentInstrumentId": "YES_CONNECTED_484576_4f21dfa",
"paymentInstrumentId": "YES_CONNECTED_484576_4f21dfb",
"transferId": "JUNOb23",
"remarks": "commission"
}
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: 1000.5,
toPaymentInstrumentId: 'YES_CONNECTED_484576_4f21dfa',
paymentInstrumentId: 'YES_CONNECTED_484576_4f21dfb',
transferId: 'JUNOb23',
remarks: 'commission'
})
};
fetch('https://sandbox.cashfree.com/payout/v1.2/internalTransfer', 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.2/internalTransfer",
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' => 1000.5,
'toPaymentInstrumentId' => 'YES_CONNECTED_484576_4f21dfa',
'paymentInstrumentId' => 'YES_CONNECTED_484576_4f21dfb',
'transferId' => 'JUNOb23',
'remarks' => 'commission'
]),
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.2/internalTransfer"
payload := strings.NewReader("{\n \"amount\": 1000.5,\n \"toPaymentInstrumentId\": \"YES_CONNECTED_484576_4f21dfa\",\n \"paymentInstrumentId\": \"YES_CONNECTED_484576_4f21dfb\",\n \"transferId\": \"JUNOb23\",\n \"remarks\": \"commission\"\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.2/internalTransfer")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 1000.5,\n \"toPaymentInstrumentId\": \"YES_CONNECTED_484576_4f21dfa\",\n \"paymentInstrumentId\": \"YES_CONNECTED_484576_4f21dfb\",\n \"transferId\": \"JUNOb23\",\n \"remarks\": \"commission\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.cashfree.com/payout/v1.2/internalTransfer")
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\": 1000.5,\n \"toPaymentInstrumentId\": \"YES_CONNECTED_484576_4f21dfa\",\n \"paymentInstrumentId\": \"YES_CONNECTED_484576_4f21dfb\",\n \"transferId\": \"JUNOb23\",\n \"remarks\": \"commission\"\n}"
response = http.request(request)
puts response.read_body{
"status": "SUCCESS",
"subCode": "200",
"message": "RefId-<TransferId>/<Remarks>-Internal Fund Transfer",
"data": {
"transferId": "<TransferId>"
}
}One Escrow
Transfer Funds Between VAs
Use this API to transfer funds between virtual accounts (VAs).
POST
/
v1.2
/
internalTransfer
Transfer Funds Between VAs
curl --request POST \
--url https://sandbox.cashfree.com/payout/v1.2/internalTransfer \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 1000.5,
"toPaymentInstrumentId": "YES_CONNECTED_484576_4f21dfa",
"paymentInstrumentId": "YES_CONNECTED_484576_4f21dfb",
"transferId": "JUNOb23",
"remarks": "commission"
}
'import requests
url = "https://sandbox.cashfree.com/payout/v1.2/internalTransfer"
payload = {
"amount": 1000.5,
"toPaymentInstrumentId": "YES_CONNECTED_484576_4f21dfa",
"paymentInstrumentId": "YES_CONNECTED_484576_4f21dfb",
"transferId": "JUNOb23",
"remarks": "commission"
}
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: 1000.5,
toPaymentInstrumentId: 'YES_CONNECTED_484576_4f21dfa',
paymentInstrumentId: 'YES_CONNECTED_484576_4f21dfb',
transferId: 'JUNOb23',
remarks: 'commission'
})
};
fetch('https://sandbox.cashfree.com/payout/v1.2/internalTransfer', 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.2/internalTransfer",
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' => 1000.5,
'toPaymentInstrumentId' => 'YES_CONNECTED_484576_4f21dfa',
'paymentInstrumentId' => 'YES_CONNECTED_484576_4f21dfb',
'transferId' => 'JUNOb23',
'remarks' => 'commission'
]),
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.2/internalTransfer"
payload := strings.NewReader("{\n \"amount\": 1000.5,\n \"toPaymentInstrumentId\": \"YES_CONNECTED_484576_4f21dfa\",\n \"paymentInstrumentId\": \"YES_CONNECTED_484576_4f21dfb\",\n \"transferId\": \"JUNOb23\",\n \"remarks\": \"commission\"\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.2/internalTransfer")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 1000.5,\n \"toPaymentInstrumentId\": \"YES_CONNECTED_484576_4f21dfa\",\n \"paymentInstrumentId\": \"YES_CONNECTED_484576_4f21dfb\",\n \"transferId\": \"JUNOb23\",\n \"remarks\": \"commission\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.cashfree.com/payout/v1.2/internalTransfer")
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\": 1000.5,\n \"toPaymentInstrumentId\": \"YES_CONNECTED_484576_4f21dfa\",\n \"paymentInstrumentId\": \"YES_CONNECTED_484576_4f21dfb\",\n \"transferId\": \"JUNOb23\",\n \"remarks\": \"commission\"\n}"
response = http.request(request)
puts response.read_body{
"status": "SUCCESS",
"subCode": "200",
"message": "RefId-<TransferId>/<Remarks>-Internal Fund Transfer",
"data": {
"transferId": "<TransferId>"
}
}Headers
Authorization header with tokens.
Body
application/json
It is the transfer amount.
Example:
1000.5
It is the unique ID of the payment instrument that you want to transfer the amount.
Example:
"YES_CONNECTED_484576_4f21dfa"
It is the unique ID of the payment instrument that you want the debit the transfer amount.
Example:
"YES_CONNECTED_484576_4f21dfb"
It is the unique ID to identify the transfer request.
Example:
"JUNOb23"
It is the additional remarks for the transfer.
Example:
"commission"
Response
Internal transfer successful
It displays the status of the request (SUCCESS/FAILURE).
Example:
"SUCCESS"
It displays the sub code of the request.
Example:
"200"
It displays the outcome of the request.
Example:
"FundSource Details Retrieved"
Response data.
- Option 1
- Option 2
Show child attributes
Show child attributes
Was this page helpful?
āI