curl --request GET \
--url https://api-staging.eximpe.com/pg/payments/{payment_id}/ \
--header 'X-Client-ID: <api-key>' \
--header 'X-Client-Secret: <api-key>'
{
"success": true,
"message": "Domestic payment request details retrieved successfully",
"data": {
"payment_id": "PR3828502708",
"order": {
"order_id": "OD6530655496",
"reference_id": "TEST_9P81ZL",
"amount": 1000,
"currency": "INR",
"mop_type": "UPI",
"buyer": {
"name": "John Doe",
"email": "[email protected]",
"phone": "+919876543210",
"address": {
"line_1": "123 Main Street",
"line_2": "Apt 4B",
"city": "City",
"state": "State",
"postal_code": "123456"
},
"pan_number": "BNYPG1231L",
"dob": "2025-06-19"
},
"product": {
"name": "Sample Product",
"description": "This is a sample product description",
"hs_code": "98051000",
"hs_code_description": "Portable automatic data processing machines",
"type_of_goods": "goods"
},
"status": "payment_successful",
"status_message": "Payment captured successfully",
"created_at": "2025-06-19T09:17:56.338741Z"
},
"settlement": {
"id": "ST4353980017",
"settlement_id": "d42eda3f-41b6-4d82-add5-2665181f9eea",
"settlement_completed_date": "2025-06-20T08:06:59.293548Z",
"settlement_amount": 1000,
"settlement_currency": "USD",
"utr_number": "092dc30a-4f19-4318-9798-ad08b48801f6",
"number_of_transactions": 1,
"created_date": "2025-06-20T08:06:59.307056Z"
},
"refund": [
{
"refund_id": "RF8370660295",
"refund_amount": 12,
"refund_status": "INITIATED",
"refunded_at": null,
"message": "No action status found",
"payment_id": "PR3828502708"
}
],
"collection_mode": "HOSTED_PAYMENT",
"mop_type": "UPI",
"bank_ref_num": "OD6530655496-PR3828502708",
"mop_detail": {
"upi_id": "pay@payu"
},
"payment_completed_at": "2025-06-19T14:48:11.000000Z",
"status": "CAPTURED",
"status_message": "Invoice and AWB file missing",
"created_date": "2025-06-19T09:18:10.637579Z"
}
}
Retrieve payment details by payment ID.
curl --request GET \
--url https://api-staging.eximpe.com/pg/payments/{payment_id}/ \
--header 'X-Client-ID: <api-key>' \
--header 'X-Client-Secret: <api-key>'
{
"success": true,
"message": "Domestic payment request details retrieved successfully",
"data": {
"payment_id": "PR3828502708",
"order": {
"order_id": "OD6530655496",
"reference_id": "TEST_9P81ZL",
"amount": 1000,
"currency": "INR",
"mop_type": "UPI",
"buyer": {
"name": "John Doe",
"email": "[email protected]",
"phone": "+919876543210",
"address": {
"line_1": "123 Main Street",
"line_2": "Apt 4B",
"city": "City",
"state": "State",
"postal_code": "123456"
},
"pan_number": "BNYPG1231L",
"dob": "2025-06-19"
},
"product": {
"name": "Sample Product",
"description": "This is a sample product description",
"hs_code": "98051000",
"hs_code_description": "Portable automatic data processing machines",
"type_of_goods": "goods"
},
"status": "payment_successful",
"status_message": "Payment captured successfully",
"created_at": "2025-06-19T09:17:56.338741Z"
},
"settlement": {
"id": "ST4353980017",
"settlement_id": "d42eda3f-41b6-4d82-add5-2665181f9eea",
"settlement_completed_date": "2025-06-20T08:06:59.293548Z",
"settlement_amount": 1000,
"settlement_currency": "USD",
"utr_number": "092dc30a-4f19-4318-9798-ad08b48801f6",
"number_of_transactions": 1,
"created_date": "2025-06-20T08:06:59.307056Z"
},
"refund": [
{
"refund_id": "RF8370660295",
"refund_amount": 12,
"refund_status": "INITIATED",
"refunded_at": null,
"message": "No action status found",
"payment_id": "PR3828502708"
}
],
"collection_mode": "HOSTED_PAYMENT",
"mop_type": "UPI",
"bank_ref_num": "OD6530655496-PR3828502708",
"mop_detail": {
"upi_id": "pay@payu"
},
"payment_completed_at": "2025-06-19T14:48:11.000000Z",
"status": "CAPTURED",
"status_message": "Invoice and AWB file missing",
"created_date": "2025-06-19T09:18:10.637579Z"
}
}
Client app ID. You can find your app id in the merchant dashboard.
Client secret key. You can find your secret in the merchant dashboard.
The ID of the payment to retrieve.
The details of the payment.
The response is of type object
.