Get Settlement Details API

API Command: get_settlement_details

You can use this API to retrieve settlement details which the bank has to settle for you. The input is the date for which settlement details are required, where the var1 parameter is the date you want to know the settlement status or UTR (Unique Transaction Reference number). This API can be posted with version (1 or 2) in the var5 parameter.

Sample request

For version 1

curl -X POST "
-H "accept: application/json" -H "Content-Type: application/x-www-form-urlencoded" -d


For version 2

curl -X POST "
-H "accept: application/json" -H "Content-Type: application/x-www-form-urlencoded" -d




The dates queried in the above requests using version 1 or version 2 are the same. The second sample request (under Sample Request for Version 2) includes the var5 parameter with the value 2 to indicate that it is for version 2.

Sample response

Success Scenario

On successful processing from PayU, the response is similar to the following:

	    [status] => 1
	    [msg] => 1 transactions settled on 2021-08-11
	    [Txn_details] => Array
			[1] => Array
                    [payuid] => 13799177287
                    [txnid] => 13818
                    [txndate] => 2021-08-10 23:46:25
                    [mode] => DC
                    [amount] => 11979.88
                    [requestid] => 9586840660
                    [requestdate] => 2021-08-10 23:49:16
                    [requestaction] => capture
                    [requestamount] => 11979.88
                    [mer_utr] => N223211598444659
                    [mer_service_fee] => 239.6000
                    [mer_service_tax] => 43.1300
                    [mer_net_amount] => 11697.1500
                    [bank_name] => MAST
                    [issuing_bank] => SBI
                    [merchant_subvention_amount] => 0.00
                    [cgst] => 0.00000
                    [igst] => 43.13000
                    [sgst] => 0.00000
                    [PG_TYPE] => HDFC_Internal_Plus
                    [Card Type] => 
                    [token] => 



Failure scenario

If the date format is incorrect:

      "status": 0,
      "msg": "Please check date format it should be YYYY-MM-DD"

If no data found for the particular date queried:

      [status] => 1
      [msg] => 0 transactions settled on 2015-05-01 
      [Txn_details] => Array
Response parameters description
payuidThis parameter contains a unique reference number created for each transaction at PayU’s end. You must note this transaction ID as this will be used as a reference for all the future actions on this transaction like Inquiry or Refund.403993715521937565
txn_idThis parameter contains the transaction ID of the transaction.13818
txn_dateThis parameter contains the date of the transaction.2021-08-10 23:46:25
modeThis parameter contains the mode of the transaction such as credit card, debit card, etc. For more information, refer to Payment Mode Codes.CC
amountThis parameter contains the original amount which was sent in the transaction request by the merchant.100
requestidThis parameter contains the request ID value posted by the merchant during the transaction request.131278418
requestdateThis parameter contains the request date and time stamp.2021-08-10 23:49:16
requestactionThis parameter contains the action taken on the transaction. The action can be any of the following:


chargeback reversal
requestamountThe parameter contains the amount requested by the merchant to the bank.100
mer_UTRThis parameter contains the merchant Unique Transaction Reference (UTR) number.N223211598444659
mer_service_feeThis parameter contains the service fee paid by the merchant to the bank. for the transaction239.6000
mer_service_taxThis parameter contains the tax on service fee paid by the merchant to the bank. for the transaction43.1300
mer_net_amountThis parameter contains the net amount to be settled by bank to merchant.100
bank_nameThis parameter contains the bank name or the card type based on the transaction.MAST
issuing_bankThis parameter contains the card issuing bank name is displayed.SBI
merchant_subvention_amountThis parameter contains merchant subvention amount.100
cgstThis parameter contains the CGST (Central GST) for the transaction.43.13000
igstThis parameter contains the IGST (Integrated GST) for the transaction.43.13000
sgstThis parameter contains the SGST (State GST) for the transaction where the supplier or merchant is from a different state of the customer.43.13000
PG_TYPEThis parameter contains the payment gateway type is displayed in this transaction.HDFC_Internal_Plus
Card TypeThis parameter indicates whether the card is international or domesticDomestic.
SettlementTypeThis describes about the charges whether its regular processing fee or instant chargesRegular or Instant

To learn more about the possible error codes and their description, refer to Error Codes.

Request parameters

keyFor more information on how to generate the Key and Salt, refer to any of the following:

- Production: Generate Merchant Key and Salt
- Test: Generate Test Merchant Key and Salt
hashHash logic for this API is:

Example values

Use the following sample values while trying out the API:

  • var1 (date of the transaction/UTR number): 2020-10-26
  • var2: 5
  • var3: 2000 or more
Click Try It! to start a request and see the response here!