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

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

ParameterDescriptionValue
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(key|command|var1|salt)
sha512 is the encryption method used here
2a04a44ed058ca724a
17b4e4d4639aa15254a
343e0

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

"key=JP***g&command=get_settlement_details&var1=2020-10-26&hash=259ded5457ad8d078b3c06294413680d0b9eb341682a4f0eecad17256388c2e096f37f5077480e3a56000cc0a3585f7cd73a7d2d10d8225a05b3b93cd27fd5f8"

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"
}