Find APIs – PayU Documentation

Find APIs

Overview

 

“Find” is a set of API’s to extract transactional level details of past transactions, it is useful for reconciliation and settlement purposes.

Here, you’ll find detailed information on how to integrate “Find” API’s.

Pre-requisites

  • Test key and salt
  • Live Key and salt

Steps Involved

 

The following APIs are needed to integrate the “find” APIs to fetch detailed information of past transactions:

  1. get_transactional_details
  2. get_transaction_info
  3. get_tdr

Integrating get_Transactional_Details

 

This API is used to extract the transaction details between two given time periods. The API takes the input as date range. The output would consist of the status of the API (success or failed) and all the transaction details in an array form or a JSON form.

Post

In order to call get_Transaction_Details API, you will have to send  following parameters:

Environment URL
Test https://test.payu.in/merchant/postservice.php?form=1 (to receive response in array format)
https://test.payu.in/merchant/postservice.php?form=2 (to receive response in json format)

Parameters:

Parameter Description Sample value
key Your key provided by payu  JBiPgT
command Name of web service call  get_Transaction_Details
hash Security parameter—- SHA512(key|command|var1|salt)
var1 Starting Date (From when the transaction details are needed) in yyyy-mm-dd format  2016-03-10
var2 End Date (till when the transaction details are needed) in yyyy-mm-dd format 2016-03-11

Response

Integration  get_transactional_info

 

This API works exactly the same way as get_Transaction_Details API. The only enhancement is that this API can take input as the exact time in terms of minutes and seconds also. Output would be in the same format as get_Transaction_Details API output.

Post:

In order to call get_transaction_info API, you will have to send   following parameters

 

Environment URL
Test https://test.payu.in/merchant/postservice.php?form=1 (to receive response in array format)
https://test.payu.in/merchant/postservice.php?form=2 (to receive response in json format)

 

Parameters:

Parameter Description Sample value
key Your key provided by payu  JBiPgT
command Name of web service call   

get_transactional_info

hash Security parameter— SHA512(key|command|var1|salt)
var1 Starting Time (From when the transaction details are needed) in yyyy-mm-dd hh:mm:ss format  2016-03-10 00:12:00
var2 Ending Time (Till when the transaction details are needed) in yyyy-mm-dd hh:mm:ss format 2016-03-10 01:11:00

Response

Integrating get_TDR

 

This API is used to get the Transaction Discount Rate (TDR) value of a transaction with PayU. It is a simple API for which you need to provide  payuid of the transaction as input and get TDR value as an output.

Post:

In order to call get_transaction_info API, you will have to send us following parameters

 

Environment URL
Test https://test.payu.in/merchant/postservice.php?form=1 (to receive response in array format)
https://test.payu.in/merchant/postservice.php?form=2 (to receive response in json format)

 

Parameters:

Parameter Description Sample value
key Your key provided by payu  JBiPgT
command Name of web service call  get_TDR
hash Security parameter— SHA512(key|command|var1|salt)
var1 PayU ID=payuid of transaction  123432345

Response

Still have question?

Our team will be more than happy to help you. You can reach out to them at tech@payu.in