Get Fund Source Details
curl --request GET \
--url https://sandbox.cashfree.com/payout/v1/fundsources/{paymentInstrumentId}import requests
url = "https://sandbox.cashfree.com/payout/v1/fundsources/{paymentInstrumentId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sandbox.cashfree.com/payout/v1/fundsources/{paymentInstrumentId}', 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/fundsources/{paymentInstrumentId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://sandbox.cashfree.com/payout/v1/fundsources/{paymentInstrumentId}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.cashfree.com/payout/v1/fundsources/{paymentInstrumentId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.cashfree.com/payout/v1/fundsources/{paymentInstrumentId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"status": "SUCCESS",
"subCode": "200",
"message": "FundSource Details Retrieved",
"data": {
"id": 123,
"fsDisplayType": "Bank Account",
"fsDescription": "Main operational account",
"accountHolderName": "John Doe",
"bankName": "Bank of India",
"balance": "1000.00",
"availableBalance": "950.00",
"fundsOnHold": "50.00",
"overdraft": "0.00",
"bankAccount": "1234567890",
"ifsc": "BOFA0XXXXXX",
"addedOn": "2024-01-01T12:00:00Z",
"updatedOn": "2024-08-01T12:00:00Z",
"fsName": "Operational Account",
"displayName": "Main Account",
"virtualAccount": "VA1234567890",
"status": "ACTIVE"
}
}{
"status": "ERROR",
"subCode": "422",
"message": "Specified paymentInstrumentId not available."
}{
"title": "Error",
"details": "Detailed error message",
"metaData": {},
"violations": {}
}One Escrow
Get Fund Source Details
Use this API to get the details of the fund source.
GET
/
v1
/
fundsources
/
{paymentInstrumentId}
Get Fund Source Details
curl --request GET \
--url https://sandbox.cashfree.com/payout/v1/fundsources/{paymentInstrumentId}import requests
url = "https://sandbox.cashfree.com/payout/v1/fundsources/{paymentInstrumentId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sandbox.cashfree.com/payout/v1/fundsources/{paymentInstrumentId}', 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/fundsources/{paymentInstrumentId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://sandbox.cashfree.com/payout/v1/fundsources/{paymentInstrumentId}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.cashfree.com/payout/v1/fundsources/{paymentInstrumentId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.cashfree.com/payout/v1/fundsources/{paymentInstrumentId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"status": "SUCCESS",
"subCode": "200",
"message": "FundSource Details Retrieved",
"data": {
"id": 123,
"fsDisplayType": "Bank Account",
"fsDescription": "Main operational account",
"accountHolderName": "John Doe",
"bankName": "Bank of India",
"balance": "1000.00",
"availableBalance": "950.00",
"fundsOnHold": "50.00",
"overdraft": "0.00",
"bankAccount": "1234567890",
"ifsc": "BOFA0XXXXXX",
"addedOn": "2024-01-01T12:00:00Z",
"updatedOn": "2024-08-01T12:00:00Z",
"fsName": "Operational Account",
"displayName": "Main Account",
"virtualAccount": "VA1234567890",
"status": "ACTIVE"
}
}{
"status": "ERROR",
"subCode": "422",
"message": "Specified paymentInstrumentId not available."
}{
"title": "Error",
"details": "Detailed error message",
"metaData": {},
"violations": {}
}Path Parameters
It is the unique ID of the payment instrument.
Response
Fund source details retrieved
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