Get Split and Settlement Details by OrderID
curl --request GET \
--url https://sandbox.cashfree.com/pg/easy-split/orders/{order_id} \
--header 'x-api-version: <x-api-version>' \
--header 'x-client-id: <api-key>' \
--header 'x-client-secret: <api-key>'import requests
url = "https://sandbox.cashfree.com/pg/easy-split/orders/{order_id}"
headers = {
"x-api-version": "<x-api-version>",
"x-client-id": "<api-key>",
"x-client-secret": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'x-api-version': '<x-api-version>',
'x-client-id': '<api-key>',
'x-client-secret': '<api-key>'
}
};
fetch('https://sandbox.cashfree.com/pg/easy-split/orders/{order_id}', 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/pg/easy-split/orders/{order_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-version: <x-api-version>",
"x-client-id: <api-key>",
"x-client-secret: <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"
"net/http"
"io"
)
func main() {
url := "https://sandbox.cashfree.com/pg/easy-split/orders/{order_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-version", "<x-api-version>")
req.Header.Add("x-client-id", "<api-key>")
req.Header.Add("x-client-secret", "<api-key>")
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/pg/easy-split/orders/{order_id}")
.header("x-api-version", "<x-api-version>")
.header("x-client-id", "<api-key>")
.header("x-client-secret", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.cashfree.com/pg/easy-split/orders/{order_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-version"] = '<x-api-version>'
request["x-client-id"] = '<api-key>'
request["x-client-secret"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"settlement": {
"entity": "settlement",
"cf_settlement_id": 4301319325,
"cf_payment_id": 5114912996630,
"order_id": "order_1527072nQIWwJ96IRVKmGnysmYtqekXLv",
"order_currency": "INR",
"transfer_id": null,
"order_amount": 3000,
"service_charge": 57,
"service_tax": 10.26,
"settlement_amount": 2100,
"settlement_currency": "INR",
"transfer_utr": null,
"transfer_time": null,
"payment_time": "2024-10-14T15:12:08+05:30"
},
"refunds": [],
"vendors": [
{
"vendor_id": "test02",
"settlement_id": 87168,
"settlement_amount": 600,
"settlement_eligibility_date": "2024-10-14 15:27:08"
},
{
"vendor_id": "test03",
"settlement_id": 87167,
"settlement_amount": 300,
"settlement_eligibility_date": "2024-10-14 15:27:08"
}
]
}{
"message": "Order Reference Id does not exist",
"code": "order_not_found",
"type": "invalid_request_error"
}Settlements
Get Split and Settlement Details by OrderID
Use this API to get all the split details, settled and unsettled transactions details of each vendor who were part of a particular order by providing order Id or start date and end date.
GET
/
easy-split
/
orders
/
{order_id}
Get Split and Settlement Details by OrderID
curl --request GET \
--url https://sandbox.cashfree.com/pg/easy-split/orders/{order_id} \
--header 'x-api-version: <x-api-version>' \
--header 'x-client-id: <api-key>' \
--header 'x-client-secret: <api-key>'import requests
url = "https://sandbox.cashfree.com/pg/easy-split/orders/{order_id}"
headers = {
"x-api-version": "<x-api-version>",
"x-client-id": "<api-key>",
"x-client-secret": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'x-api-version': '<x-api-version>',
'x-client-id': '<api-key>',
'x-client-secret': '<api-key>'
}
};
fetch('https://sandbox.cashfree.com/pg/easy-split/orders/{order_id}', 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/pg/easy-split/orders/{order_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-version: <x-api-version>",
"x-client-id: <api-key>",
"x-client-secret: <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"
"net/http"
"io"
)
func main() {
url := "https://sandbox.cashfree.com/pg/easy-split/orders/{order_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-version", "<x-api-version>")
req.Header.Add("x-client-id", "<api-key>")
req.Header.Add("x-client-secret", "<api-key>")
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/pg/easy-split/orders/{order_id}")
.header("x-api-version", "<x-api-version>")
.header("x-client-id", "<api-key>")
.header("x-client-secret", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.cashfree.com/pg/easy-split/orders/{order_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-version"] = '<x-api-version>'
request["x-client-id"] = '<api-key>'
request["x-client-secret"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"settlement": {
"entity": "settlement",
"cf_settlement_id": 4301319325,
"cf_payment_id": 5114912996630,
"order_id": "order_1527072nQIWwJ96IRVKmGnysmYtqekXLv",
"order_currency": "INR",
"transfer_id": null,
"order_amount": 3000,
"service_charge": 57,
"service_tax": 10.26,
"settlement_amount": 2100,
"settlement_currency": "INR",
"transfer_utr": null,
"transfer_time": null,
"payment_time": "2024-10-14T15:12:08+05:30"
},
"refunds": [],
"vendors": [
{
"vendor_id": "test02",
"settlement_id": 87168,
"settlement_amount": 600,
"settlement_eligibility_date": "2024-10-14 15:27:08"
},
{
"vendor_id": "test03",
"settlement_id": 87167,
"settlement_amount": 300,
"settlement_eligibility_date": "2024-10-14 15:27:08"
}
]
}{
"message": "Order Reference Id does not exist",
"code": "order_not_found",
"type": "invalid_request_error"
}Authorizations
XClientID & XClientSecretXClientID & XPartnerAPIKeyXClientID & XClientSignatureHeaderXPartnerMerchantID & XPartnerAPIKey
Client app ID. You can find your app id in the Merchant Dashboard.
Client secret key. You can find your secret key in the Merchant Dashboard.
Headers
Response
Get Split and Settlement Details by OrderID
Was this page helpful?