Get Payment Verification Details
curl --request GET \
--url https://sandbox.cashfree.com/import/transactions/{cf_payment_id}import requests
url = "https://sandbox.cashfree.com/import/transactions/{cf_payment_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sandbox.cashfree.com/import/transactions/{cf_payment_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/import/transactions/{cf_payment_id}",
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/import/transactions/{cf_payment_id}"
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/import/transactions/{cf_payment_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.cashfree.com/import/transactions/{cf_payment_id}")
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{
"cf_payment_id": 5114910606536,
"payment_status": "SUCCESS",
"payment_verification_status": "ACTION_REQUIRED",
"payment_expiry": "2024-07-10T15:39:49",
"remarks": null,
"details": [
{
"doc_name": "goods_description",
"doc_type": "VALUE",
"doc_status": "ACTION_REQUIRED",
"remarks": null,
"added_on": null,
"last_updated_on": null
},
{
"doc_name": "invoice_number",
"doc_type": "VALUE",
"doc_status": "IN_REVIEW",
"remarks": null,
"added_on": null,
"last_updated_on": null
},
{
"doc_name": "importer_name",
"doc_type": "VALUE",
"doc_status": "IN_REVIEW",
"remarks": null,
"added_on": null,
"last_updated_on": null
},
{
"doc_name": "importer_address",
"doc_type": "VALUE",
"doc_status": "IN_REVIEW",
"remarks": null,
"added_on": null,
"last_updated_on": null
},
{
"doc_name": "country_of_origin",
"doc_type": "VALUE",
"doc_status": "IN_REVIEW",
"remarks": null,
"added_on": null,
"last_updated_on": null
},
{
"doc_name": "invoice_file",
"doc_type": "DOCUMENT",
"doc_status": "IN_REVIEW",
"remarks": null,
"added_on": null,
"last_updated_on": null
},
{
"doc_name": "ecommerce_order_serial_number",
"doc_type": "VALUE",
"doc_status": "ACTION_REQUIRED",
"remarks": null,
"added_on": null,
"last_updated_on": null
},
{
"doc_name": "hs_code",
"doc_type": "VALUE",
"doc_status": "IN_REVIEW",
"remarks": null,
"added_on": null,
"last_updated_on": null
},
{
"doc_name": "shipment_date",
"doc_type": "VALUE",
"doc_status": "ACTION_REQUIRED",
"remarks": null,
"added_on": null,
"last_updated_on": null
},
{
"doc_name": "port_of_loading",
"doc_type": "VALUE",
"doc_status": "IN_REVIEW",
"remarks": null,
"added_on": null,
"last_updated_on": null
},
{
"doc_name": "awb_number",
"doc_type": "VALUE",
"doc_status": "IN_REVIEW",
"remarks": null,
"added_on": null,
"last_updated_on": null
}
]
}{
"message": "Transaction not found",
"code": "transaction_not_found",
"type": "invalid_request_error"
}Collect from India
Get payment verification details
GET
/
import
/
transactions
/
{cf_payment_id}
Get Payment Verification Details
curl --request GET \
--url https://sandbox.cashfree.com/import/transactions/{cf_payment_id}import requests
url = "https://sandbox.cashfree.com/import/transactions/{cf_payment_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sandbox.cashfree.com/import/transactions/{cf_payment_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/import/transactions/{cf_payment_id}",
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/import/transactions/{cf_payment_id}"
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/import/transactions/{cf_payment_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.cashfree.com/import/transactions/{cf_payment_id}")
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{
"cf_payment_id": 5114910606536,
"payment_status": "SUCCESS",
"payment_verification_status": "ACTION_REQUIRED",
"payment_expiry": "2024-07-10T15:39:49",
"remarks": null,
"details": [
{
"doc_name": "goods_description",
"doc_type": "VALUE",
"doc_status": "ACTION_REQUIRED",
"remarks": null,
"added_on": null,
"last_updated_on": null
},
{
"doc_name": "invoice_number",
"doc_type": "VALUE",
"doc_status": "IN_REVIEW",
"remarks": null,
"added_on": null,
"last_updated_on": null
},
{
"doc_name": "importer_name",
"doc_type": "VALUE",
"doc_status": "IN_REVIEW",
"remarks": null,
"added_on": null,
"last_updated_on": null
},
{
"doc_name": "importer_address",
"doc_type": "VALUE",
"doc_status": "IN_REVIEW",
"remarks": null,
"added_on": null,
"last_updated_on": null
},
{
"doc_name": "country_of_origin",
"doc_type": "VALUE",
"doc_status": "IN_REVIEW",
"remarks": null,
"added_on": null,
"last_updated_on": null
},
{
"doc_name": "invoice_file",
"doc_type": "DOCUMENT",
"doc_status": "IN_REVIEW",
"remarks": null,
"added_on": null,
"last_updated_on": null
},
{
"doc_name": "ecommerce_order_serial_number",
"doc_type": "VALUE",
"doc_status": "ACTION_REQUIRED",
"remarks": null,
"added_on": null,
"last_updated_on": null
},
{
"doc_name": "hs_code",
"doc_type": "VALUE",
"doc_status": "IN_REVIEW",
"remarks": null,
"added_on": null,
"last_updated_on": null
},
{
"doc_name": "shipment_date",
"doc_type": "VALUE",
"doc_status": "ACTION_REQUIRED",
"remarks": null,
"added_on": null,
"last_updated_on": null
},
{
"doc_name": "port_of_loading",
"doc_type": "VALUE",
"doc_status": "IN_REVIEW",
"remarks": null,
"added_on": null,
"last_updated_on": null
},
{
"doc_name": "awb_number",
"doc_type": "VALUE",
"doc_status": "IN_REVIEW",
"remarks": null,
"added_on": null,
"last_updated_on": null
}
]
}{
"message": "Transaction not found",
"code": "transaction_not_found",
"type": "invalid_request_error"
}Path Parameters
Successful payment ID for the created order.
Response
Success response for getting the payment verification details.
Successful payment ID for the created order
Example:
5114910606536
Payment status
Example:
"SUCCESS"
Payment verification status
Available options:
ACTION_REQUIRED, IN_REVIEW, VERIFIED, EXPIRED Example:
"ACTION_REQUIRED"
Date and time at which the payment will expire if the required docs are not uploaded
Example:
"2025-01-16T12:34:10+05:30"
Verification remarks for the transaction
Example:
"Transaction reject due to invalid doc"
Show child attributes
Show child attributes
Was this page helpful?
āI