Transaction Cancel API
This Transaction Cancel API is used to cancel the raised transaction to the customer before payment is done.
| Header Name | Header Value |
|---|
Content-Type | application/json |
X-VERIFY | SHA256(“/v1/payment/{merchantId}/{phonepeTransactionId}/cancel ” + saltKey) + ### + saltIndex |
X-PROVIDER-ID | Used for the cases where the merchants are getting onboarded via their Providers |
Path Parameters
| Parameter Name | Type | Description | Mandatory |
|---|
merchantId | STRING | Unique Merchant ID assigned to the merchant by PhonePe | Yes |
merchantTransactionId | STRING | Merchant transactionID whose transaction needs to be cancelled | Yes |
Response Parameters
| Parameter Name | Type | Description |
|---|
success | BOOLEAN | A boolean to indicate the success/failure of the request. |
| merchantId | STRING | merchant ID |
| terminalId | STRING | Terminal ID |
| merchantTransactionId | STRING | Merchant Transaction ID |
| message | STRING | Successfully processed Message |