Get a transaction
Look up any of your project's transactions by your own reference.
GET
/payments/{reference}Returns a collection, payout or refund by its external_reference. If it’s still pending, RazPay also asks the provider once, so this doubles as a status check.
referencepathstringrequiredThe transaction’s external_reference.
Response
A transaction, plus:
refundsarrayrequiredFor a collection, its refunds (each a transaction with type: refund). Empty otherwise.
refund_summaryobjectrequiredFor a collection, how much has been returned.
properties
refundednumberrequiredTotal of successful refunds.
pendingnumberrequiredTotal of refunds still in progress.
refundablenumberrequiredWhat’s left to refund. 0 for anything that can’t be refunded.
