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

Settlement APIs

This API is used to retrieve Settlement Details for the merchant. The input is the date for which Settlement Details are required, var1 is the date you want to know the settlement status for.

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_settlement_details
var1 Date for which Settlement Data is required – in YYYY-MM-DD format 2020-10-26
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

  • If date format is incorrect
{
      "status": 0,
      "msg": "Please check date formate it should be YYYY-MM-DD"
}
  • If no data found for the particular date
Array 
(
      [status] => 1
      [msg] => 0 transactions settled on 2015-05-01 
      [Txn_details] => Array
                (
                 ) 
)
  • If successfully fetched
Array 
( 
       [status] => 1
       [msg] => 6565 transactions settled on 2015-08-01 
       [Txn_details] => Array
           (
                [0] => Array
                          (
                              [payuid] => 204131224
                              [txnid] => GOFLCF519911416076450 
                              [txndate] => 2014-11-16 00:08:40 
                              [mode] => DC
                              [amount] => 2580.00
                              [requestid] => 262698935 
                              [requestdate] => 2015-08-01 17:43:25 
                              [requestaction] => capture 
                              [requestamount] => 186.00
                              [mer_utr] => CITIH15213701843 
                              [mer_service_fee] => 0.00000 
                              [mer_service_tax] => 0.00000 
                              [mer_net_amount] => 186.00000 
                              [bank_name] => VISA
                              [issuing_bank] => BOB
                            )
                )
)