The Seamless Debit Enquiry API provides transaction status for a debit request. This API is essential for reconciliation and transaction verification purposes, allowing you to confirm the final status of payment transactions.
Environment URL Test https://test.payu.in/merchant/postservice.php?form=2
Production https://info.payu.in/merchant/postservice.php?form=2
HTTP Method : POST
Parameter
Description
Content-Typemandatory
String
application/x-www-form-urlencoded
The request body contains both encrypted and decrypted parameters.
Parameter
Description
encdatamandatory
String
Encrypted request body containing all the decrypted parameters
Parameter
Description
Example
keymandatory
String(50)
Merchant key provided by PayU
JPM7Fg
commandmandatory
String(20)
Set to 'verify_payment'
verify_payment
var1mandatory
String(25)
Transaction ID (txnid) for the transaction to be verified
IhfgcZnXR...
hashmandatory
String(128)
SHA512 hash calculated for the request
a0ae79...
Parameter
Description
Example
status
Status of the verification request
1
msg
Message indicating verification result
Transaction found
transaction_details
JSON object with detailed transaction information. For more information, refer to Transaction details object
Refer to Transaction details object
Parameter
Description
Example
mihpayid
PayU transaction reference number
1735903830180094
request_id
Original request ID
56882
bank_ref_num
Bank reference number
123456789
amt
Transaction amount
41.00
disc
Discount amount
0.00
mode
Payment mode used
CLW
PG_TYPE
Payment gateway type
CLW
status
Transaction status
success/failure
unmappedstatus
Detailed status
captured
Merchant_UTR
Merchant UTR number
UTR123456
txnid
Transaction ID
56882
key
Merchant key
JPM7Fg
net_amount_debit
Net amount debited
41.00
addedon
Transaction date and time
2023-08-22 18:30:15
productinfo
Product information
iPhone
firstname
Customer first name
Sourav
lastname
Customer last name
Mishra
email
Customer email
[email protected]
phone
Customer phone
919988776655
hash
Response hash
def456ghi789...
error_code
Error code (if failed)
E000
error_Message
Error message (if failed)
Insufficient balance
Bash
curl --location --request POST 'https://test.payu.in/merchant/postservice.php?form=2' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'encdata=h/0YSUd9jKOQ8+2Dc3Phr4s7vxyz123...'
key=JPM7Fg&command=verify_payment&var1=IhfgcZnXR&hash=a0ae79...
JSON
{
"status": 1,
"msg": "Transaction found",
"transaction_details": {
"mihpayid": "1735903830180094",
"request_id": "56882",
"bank_ref_num": "123456789",
"amt": "41.00",
"disc": "0.00",
"mode": "CLW",
"PG_TYPE": "CLW",
"status": "success",
"unmappedstatus": "captured",
"Merchant_UTR": "UTR123456",
"txnid": "56882",
"key": "JPM7Fg",
"net_amount_debit": "41.00",
"addedon": "2023-08-22 18:30:15",
"productinfo": "iPhone",
"firstname": "Sourav",
"lastname": "Mishra",
"email": "[email protected] ",
"phone": "919988776655",
"hash": "def456ghi789..."
}
}
JSON
{
"status": 0,
"msg": "Transaction not found"
}
Status Code Description 200 OK - Request processed successfully 400 Bad Request - Invalid request parameters 401 Unauthorized - Authentication failed 500 Internal Server Error