1. Home
  2. Docs
  3. Developers Guide
  4. Integration APIs
  5. TDR APIs


This command is used to get the TDR value of a transaction with PayU. It is a simple API for which you need to provide the PayU ID of the transaction as input and the TDR value is returned in the output, var1 is Payu id (mihpayid) of the transaction.

API Endpoint : POST  https://test.payu.in/merchant/postservice?form=2

Request Parameters

keyMerchant key provided by PayU. Please refer to the first entry in the Post Parameters table for a detailed description of this parameter JPTXg
command This parameter must have the name of the web-service. get_TDR
var1 Payu id (mihpayid) of transaction 403993715521891555
hashThis parameter must contain the hash value to be calculated at your end. The string used for calculating the hash is mentioned below:
sha512 is the encryption method used here

Request body

curl -X POST "https://test.payu.in/merchant/postservice?form=2
-H "accept: application/json" -H "Content-Type: application/x-www-form-urlencoded" -d


Response Format

a. If successfully fetched

      "status": 1,
      "msg": "Transaction Fetched Successfully",
      "TDR_details": {
            "TDR": 0

b. If mihpayid is not found

      "status": 0,
      "msg": "Invalid PayU ID"