Transaction Cancel API

This Transaction Cancel API is used to cancel the raised transaction to the customer before payment is done.

Header NameHeader Value
Content-Typeapplication/json
X-VERIFYSHA256(“/v1/payment/{merchantId}/{phonepeTransactionId}/cancel
” + saltKey) + ### + saltIndex
X-PROVIDER-IDUsed for the cases where the merchants are getting onboarded via their Providers
Parameter NameTypeDescriptionMandatory
merchantIdSTRINGUnique Merchant ID assigned to the merchant by PhonePeYes
merchantTransactionIdSTRINGMerchant transactionID whose transaction needs to be cancelledYes
Parameter NameTypeDescription
successBOOLEANA boolean to indicate the success/failure of the request.
merchantIdSTRINGmerchant ID
terminalIdSTRINGTerminal ID
merchantTransactionIdSTRINGMerchant Transaction ID
messageSTRINGSuccessfully processed Message
Is this article helpful?