Get Order Details
curl --request GET \
--url https://api-pacb-uat.eximpe.com/pg/orders/{order_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/orders/{order_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/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://api-pacb-uat.eximpe.com/pg/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: <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/orders/{order_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/orders/{order_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/orders/{order_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": "Order fetched successfully",
"data": {
"order_id": "OD2024120934567",
"reference_id": "ORD_BOOKS_2024_3QWD98",
"amount": "1899.00",
"currency": "INR",
"opted_mop_type": "upi",
"buyer": {
"name": "Vikash Gupta",
"email": "[email protected]",
"phone": "+919456789012",
"address": {
"line_1": "C-45, Sector 62, Institutional Area",
"line_2": "Near Metro Station",
"city": "Noida",
"state": "Uttar Pradesh",
"postal_code": "201309"
},
"pan_number": "ABCPV1234G",
"dob": "1987-03-15"
},
"product": {
"name": "Complete Python Programming Course Bundle",
"description": "Comprehensive online course with 50+ hours of content, projects, and certification",
"hs_code": "49019900",
"hs_code_description": "Printed books, brochures, leaflets and similar printed matter",
"type_of_goods": "service"
},
"invoice": {
"number": "INV_EDU_20241205",
"date": "2024-12-05",
"file": "https://eximpe.com/invoice_file.pdf"
},
"air_waybills": [
{
"number": "AWB23498234",
"file": "https://eximpe.com/awb_file.pdf"
}
],
"payments": [
{
"payment_id": "PR3932678387",
"mop_type": "upi",
"status": "captured",
"status_message": null,
"settlement": {
"status": "ready_for_settlement",
"message": null,
"settlement_details": {
"settlement_id": "ST8865592169",
"settlement_completed_at": "2025-08-20T20:30:00.212494Z",
"settlement_currency": "USD",
"transaction_amount": "1000.00",
"merchant_service_fee": "20.00",
"merchant_service_tax": "3.60",
"merchant_net_amount": "976.40",
"sgst": "0.00",
"cgst": "0.00",
"igst": "0.00",
"merchant_transaction_id": "OD8967030165-PR3932678387",
"card_type": "domestic",
"offer_service_fee": "0.00",
"offer_service_tax": "0.00",
"forex_rate": "86",
"discount": "0.00",
"additional_tdr_fee": "0.00",
"additional_tdr_tax": "0.00",
"total_processing_fee": "0.00",
"total_service_tax": "0.00",
"transaction_currency": "INR"
}
},
"created_at": "2025-08-20T06:13:30.033816Z"
}
],
"business_model": "B2C",
"purpose_code": "S0101",
"status": "payment_successful",
"status_message": "Payment captured successfully",
"created_at": "2025-08-20T06:13:29.988329Z"
}
}{
"success": false,
"error": {
"code": "ERR_AUTH_000",
"message": "Missing credentials",
"details": {
"authentication": "Missing credentials."
}
}
}{
"success": false,
"error": {
"code": "ERR_ORDER_001",
"message": "Order not found",
"details": {
"order_id": "Order not found"
}
}
}{
"success": false,
"error": {
"code": "ERR_SERVICE_ERROR_000",
"message": "Payment gateway error",
"details": {
"error": "An unexpected error occurred. Please try again later"
}
}
}Order
Get Order Details
Retrieve order details by order ID.
GET
/
pg
/
orders
/
{order_id}
/
Get Order Details
curl --request GET \
--url https://api-pacb-uat.eximpe.com/pg/orders/{order_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/orders/{order_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/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://api-pacb-uat.eximpe.com/pg/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: <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/orders/{order_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/orders/{order_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/orders/{order_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": "Order fetched successfully",
"data": {
"order_id": "OD2024120934567",
"reference_id": "ORD_BOOKS_2024_3QWD98",
"amount": "1899.00",
"currency": "INR",
"opted_mop_type": "upi",
"buyer": {
"name": "Vikash Gupta",
"email": "[email protected]",
"phone": "+919456789012",
"address": {
"line_1": "C-45, Sector 62, Institutional Area",
"line_2": "Near Metro Station",
"city": "Noida",
"state": "Uttar Pradesh",
"postal_code": "201309"
},
"pan_number": "ABCPV1234G",
"dob": "1987-03-15"
},
"product": {
"name": "Complete Python Programming Course Bundle",
"description": "Comprehensive online course with 50+ hours of content, projects, and certification",
"hs_code": "49019900",
"hs_code_description": "Printed books, brochures, leaflets and similar printed matter",
"type_of_goods": "service"
},
"invoice": {
"number": "INV_EDU_20241205",
"date": "2024-12-05",
"file": "https://eximpe.com/invoice_file.pdf"
},
"air_waybills": [
{
"number": "AWB23498234",
"file": "https://eximpe.com/awb_file.pdf"
}
],
"payments": [
{
"payment_id": "PR3932678387",
"mop_type": "upi",
"status": "captured",
"status_message": null,
"settlement": {
"status": "ready_for_settlement",
"message": null,
"settlement_details": {
"settlement_id": "ST8865592169",
"settlement_completed_at": "2025-08-20T20:30:00.212494Z",
"settlement_currency": "USD",
"transaction_amount": "1000.00",
"merchant_service_fee": "20.00",
"merchant_service_tax": "3.60",
"merchant_net_amount": "976.40",
"sgst": "0.00",
"cgst": "0.00",
"igst": "0.00",
"merchant_transaction_id": "OD8967030165-PR3932678387",
"card_type": "domestic",
"offer_service_fee": "0.00",
"offer_service_tax": "0.00",
"forex_rate": "86",
"discount": "0.00",
"additional_tdr_fee": "0.00",
"additional_tdr_tax": "0.00",
"total_processing_fee": "0.00",
"total_service_tax": "0.00",
"transaction_currency": "INR"
}
},
"created_at": "2025-08-20T06:13:30.033816Z"
}
],
"business_model": "B2C",
"purpose_code": "S0101",
"status": "payment_successful",
"status_message": "Payment captured successfully",
"created_at": "2025-08-20T06:13:29.988329Z"
}
}{
"success": false,
"error": {
"code": "ERR_AUTH_000",
"message": "Missing credentials",
"details": {
"authentication": "Missing credentials."
}
}
}{
"success": false,
"error": {
"code": "ERR_ORDER_001",
"message": "Order not found",
"details": {
"order_id": "Order not found"
}
}
}{
"success": false,
"error": {
"code": "ERR_SERVICE_ERROR_000",
"message": "Payment gateway error",
"details": {
"error": "An unexpected error occurred. Please try again later"
}
}
}