Used to cancel the collect request

Request Headers

Header Name

Header Value

Content-Type

application/json

X-VERIFY

SHA256("/v3/charge/{merchantId}/{transactionId}/cancel" +
salt key) + ### + salt index

Path Parameters

Parameter Name

Description

merchantId
String
Mandatory

Unique Merchant ID assigned to the merchant by PhonePe

transactionId
String
Mandatory

Unique Transaction ID generated by the merchant to track this request to PhonePe

Response Parameters

Parameter Name

Description

success
Boolean

Success status of the request

code
Enum

See below section for list of codes

message
String

Short message about status

data
Object

Empty object

Response Codes

The code in the above API response could be.

  • SUCCESS
  • INTERNAL_SERVER_ERROR : There can be internal server error. Merchant should retry the cancel API request.
  • INVALID_TRANSACTION_ID
  • PAYMENT_ALREADY_COMPLETED : Payment has been succesful hence can't cancel the request. For this case merchant should trigger successful transaction, generating the bill.
Language
Click Try It! to start a request and see the response here!