1. Home
  2. Docs
  3. Developers Guide
  4. Integration APIs
  5. Refund APIs
  6. check_action_status (1st Usage)

check_action_status (1st Usage)

This API is used to check the status of refund/cancel requests. Whenever the cancel_refund_transaction API is executed successfully, a Request ID is returned in the output parameters for that particular request. In check_action_status API, you need to input this Request ID to get the current status of the request. The return parameters are MIHPayID, Amount, Discount, Mode, and Status of transaction.

ParameterDescriptionSample Value
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. check_action_status
var1 In this parameter, you can
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 mihpayid isn’t found:

      "status": 0,
      "msg": "0 out of 1 Transactions Fetched Successfully",
      "transaction_details": {
            "13127842": "No action status found"

b. if mihpayid is missing:

      "status": 0,
      "msg": "Parameter missing"

c. if successfully fetched:

      "status": 1,
      "msg": "1 out of 1 Transactions Fetched Successfully",
      "transaction_details": {
            "131278422": {
                  "131278422": {
                        "mihpayid": "403993715521937565",
                        "bank_ref_num": "527013524405",
                        "request_id": "131278422",
                        "amt": "10.00",
                        "mode": "CC",
                        "action": "refund",
                        "token": "20201105secrettokenatur",
                        "status": "success",
                        "bank_arn": null,
                        "settlement_id": null,
                        "amount_settled": null,
                        "UTR_no": null,
                        "value_date": null,
                        "refund_mode": "Back to Source"