Training Material

CGPEY API Integration Guide

Welcome! Below is the detailed documentation for integrating the CGPEY payment APIs into your system.


🔐 API Headers

"x-api-key"   : "GET FROM DEVELOPER SETTING IN DASHBOARD"
"x-secret-key": "GET FROM DEVELOPER SETTING IN DASHBOARD"
"ip-address"  : "Pass whitelisted IP in every Request"

💳 Make Payment API Request

Api Url: https://merchant.cgpey.com/api/v2/makepayment

Request Body:
{
 "user_id": "G2TEQk",
 "name": "deepak kumar",
 "mobile_number": 9534812497,
 "amount": 51,
 "transaction_id": "TXNl2dd1589392",
 "return_url" : "https://your_return_url.com"
}
Response:
{
  "system_time": 1754288400,
  "status": true,
  "code": 200,
  "message": "Payment intent created successfully.",
  "data": {
    "qrData": "",
    "amount": "1",
    "statusDesc": "Intent generated successfully",
    "clientRefId": "TXT33137629743",
    "payeeVPA": "",
    "intentData": "",
    "paymentState": "INITIATED",
    "payerVPA": null,
    "txnId": "537247581047423525",
    "status": "INITIATED",
    "statusCode": "0"
  }
}

Note: Use intentData object to open the payment intent on your website and complete the payment. Once the payment succeeds, you'll receive a success callback at your provided callback URL.

📥 Callback URL Response
{
  "status": "SUCCESS",
  "order_id": "order_id",
  "message": "Transaction Successfully",
  "utr": "291935438261",
  "amount": "11.00",
  "date": "2025-07-24 18:35:19"
}

🔎 Check Transaction Status

Api Url: https://merchant.cgpey.com/api/v2/payment-check-status

Request:
{
  "transaction_id": "Transaction ID"
}
Response:
{
  "status": "success",
  "name": "name",
  "amount": 500,
  "user_id": "user_id",
  "customer_mobile": "mobile_number",
  "transaction_id": "Transaction ID",
  "date": "2025-10-31 17:14:25",
  "utr": "UTR...."
}

For further assistance, please contact our integration team.