Get Payment
curl --request GET \
--url https://api-pacb-uat.eximpe.com/pg/payments/{payment_id}/ \
--header 'X-API-Version: <api-key>' \
--header 'X-Client-ID: <api-key>' \
--header 'X-Client-Secret: <api-key>'import requests
url = "https://api-pacb-uat.eximpe.com/pg/payments/{payment_id}/"
headers = {
"X-Client-ID": "<api-key>",
"X-Client-Secret": "<api-key>",
"X-API-Version": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'X-Client-ID': '<api-key>',
'X-Client-Secret': '<api-key>',
'X-API-Version': '<api-key>'
}
};
fetch('https://api-pacb-uat.eximpe.com/pg/payments/{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://api-pacb-uat.eximpe.com/pg/payments/{payment_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: <api-key>",
"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://api-pacb-uat.eximpe.com/pg/payments/{payment_id}/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Client-ID", "<api-key>")
req.Header.Add("X-Client-Secret", "<api-key>")
req.Header.Add("X-API-Version", "<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://api-pacb-uat.eximpe.com/pg/payments/{payment_id}/")
.header("X-Client-ID", "<api-key>")
.header("X-Client-Secret", "<api-key>")
.header("X-API-Version", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-pacb-uat.eximpe.com/pg/payments/{payment_id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Client-ID"] = '<api-key>'
request["X-Client-Secret"] = '<api-key>'
request["X-API-Version"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Domestic payment request details retrieved successfully",
"data": {
"payment_id": "PR2099558561",
"order": {
"order_id": "OD2024120678912",
"reference_id": "ORD_CONSULTING_2024_RC0YKG",
"amount": "12500.00",
"currency": "INR",
"opted_mop_type": "upi",
"buyer": {
"name": "Amit Khanna",
"email": "[email protected]",
"phone": "+919123456780",
"address": {
"line_1": "701, Business Square, Netaji Subhash Place",
"line_2": "Near Pitampura Metro",
"city": "New Delhi",
"state": "Delhi",
"postal_code": "110034"
},
"pan_number": "CDEPK9876L",
"dob": "1985-11-28"
},
"product": {
"name": "Digital Marketing Strategy Consultation",
"description": "Comprehensive 3-month digital marketing strategy and implementation consultation",
"hs_code": "99831000",
"hs_code_description": "Professional, technical and other services",
"type_of_goods": "service"
},
"status": "payment_successful",
"status_message": "Payment captured successfully",
"created_at": "2025-09-04T09:38:39.819054Z"
},
"settlement": {
"id": "ST6937597440",
"settlement_id": "67c41a7a-010a-4667-82f2-fb529cdcdbe6",
"settlement_completed_at": "2025-09-04T09:40:58.189094Z",
"settlement_amount": "976.40",
"settlement_currency": "USD",
"utr_number": "cea2ae3a-182c-457a-aa57-fa425000cfb8",
"number_of_transactions": 1,
"created_at": "2025-09-04T09:40:58.199249Z",
"last_updated_at": "2025-09-04T09:40:58.199249Z"
},
"refund": [],
"collection_mode": "hosted_payment",
"mop_type": "upi",
"bank_ref_num": "OD1729756084-PR2099558561",
"mop_detail": {
"vpa": "buyer@payu",
"upi_instrument": "upi_cc",
"upi_app": "PhonePe"
},
"payment_completed_at": "2025-09-04T09:38:44.000000Z",
"status": "captured",
"status_message": null,
"created_at": "2025-09-04T09:38:43.422672Z"
}
}{
"success": false,
"error": {
"code": "ERR_AUTH_000",
"message": "Missing credentials",
"details": {
"authentication": "Missing credentials."
}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Payment
Get Payment
Retrieve payment details by payment ID.
GET
/
pg
/
payments
/
{payment_id}
/
Get Payment
curl --request GET \
--url https://api-pacb-uat.eximpe.com/pg/payments/{payment_id}/ \
--header 'X-API-Version: <api-key>' \
--header 'X-Client-ID: <api-key>' \
--header 'X-Client-Secret: <api-key>'import requests
url = "https://api-pacb-uat.eximpe.com/pg/payments/{payment_id}/"
headers = {
"X-Client-ID": "<api-key>",
"X-Client-Secret": "<api-key>",
"X-API-Version": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'X-Client-ID': '<api-key>',
'X-Client-Secret': '<api-key>',
'X-API-Version': '<api-key>'
}
};
fetch('https://api-pacb-uat.eximpe.com/pg/payments/{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://api-pacb-uat.eximpe.com/pg/payments/{payment_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: <api-key>",
"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://api-pacb-uat.eximpe.com/pg/payments/{payment_id}/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Client-ID", "<api-key>")
req.Header.Add("X-Client-Secret", "<api-key>")
req.Header.Add("X-API-Version", "<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://api-pacb-uat.eximpe.com/pg/payments/{payment_id}/")
.header("X-Client-ID", "<api-key>")
.header("X-Client-Secret", "<api-key>")
.header("X-API-Version", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-pacb-uat.eximpe.com/pg/payments/{payment_id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Client-ID"] = '<api-key>'
request["X-Client-Secret"] = '<api-key>'
request["X-API-Version"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Domestic payment request details retrieved successfully",
"data": {
"payment_id": "PR2099558561",
"order": {
"order_id": "OD2024120678912",
"reference_id": "ORD_CONSULTING_2024_RC0YKG",
"amount": "12500.00",
"currency": "INR",
"opted_mop_type": "upi",
"buyer": {
"name": "Amit Khanna",
"email": "[email protected]",
"phone": "+919123456780",
"address": {
"line_1": "701, Business Square, Netaji Subhash Place",
"line_2": "Near Pitampura Metro",
"city": "New Delhi",
"state": "Delhi",
"postal_code": "110034"
},
"pan_number": "CDEPK9876L",
"dob": "1985-11-28"
},
"product": {
"name": "Digital Marketing Strategy Consultation",
"description": "Comprehensive 3-month digital marketing strategy and implementation consultation",
"hs_code": "99831000",
"hs_code_description": "Professional, technical and other services",
"type_of_goods": "service"
},
"status": "payment_successful",
"status_message": "Payment captured successfully",
"created_at": "2025-09-04T09:38:39.819054Z"
},
"settlement": {
"id": "ST6937597440",
"settlement_id": "67c41a7a-010a-4667-82f2-fb529cdcdbe6",
"settlement_completed_at": "2025-09-04T09:40:58.189094Z",
"settlement_amount": "976.40",
"settlement_currency": "USD",
"utr_number": "cea2ae3a-182c-457a-aa57-fa425000cfb8",
"number_of_transactions": 1,
"created_at": "2025-09-04T09:40:58.199249Z",
"last_updated_at": "2025-09-04T09:40:58.199249Z"
},
"refund": [],
"collection_mode": "hosted_payment",
"mop_type": "upi",
"bank_ref_num": "OD1729756084-PR2099558561",
"mop_detail": {
"vpa": "buyer@payu",
"upi_instrument": "upi_cc",
"upi_app": "PhonePe"
},
"payment_completed_at": "2025-09-04T09:38:44.000000Z",
"status": "captured",
"status_message": null,
"created_at": "2025-09-04T09:38:43.422672Z"
}
}{
"success": false,
"error": {
"code": "ERR_AUTH_000",
"message": "Missing credentials",
"details": {
"authentication": "Missing credentials."
}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}