API Reference

Cancel Transaction

Cancel (Void) transaction API is used to cancel (void) the transaction with PG. Usually, this API can get the transaction cancelled (voided) when transaction is still in non-terminal state i.e. PROCESSING, AUTHORIZED, CAPTURED, PROCESSING. It supports cancellation of AUTH, PURCHASE, CAPTURE and REFUND transactions. Based on the transactionUtr provided in the request, checkout will identify which transaction needs to be cancelled.

HTTP Status and Response Status Matrix

HTTP
Status
Response StatusResponse Message
200CANCELLEDSuccessfully cancelled (voided).
200ALREADY_CANCELLEDProvided transaction is already cancelled(voided)
400VALIDATION_ERRORIn case of VALIDATION_ERROR, field specific validation details will be returned.
400REJECTEDNo transaction found to initiate cancel(void). Please provide valid transactionUtr.
400ERROR_FROM_PGThis will be populated by processor
400REJECTEDCancel (Void) transaction not allowed as the original transaction is already processed
404ERROR_FROM_PGThis will be populated by processor
404TRANSACTION_NOT_FOUNDThis will be populated by processor
500ERROR_FROM_PGThis will be populated by processor
500ERROR_FROM_PGError in gateway response
500INTERNAL_PROCESSING _ERRORSomething went wrong at our end, try again after some time
502ERROR_CONNECTING_PGGateway connectivity unavailable
503ERROR_CONNECTING_PGGateway connectivity unavailable
503SERVICE_UNAVAILABLEWe see a downtime at our end. Please try again sometime!
Language
Credentials
Bearer
Click Try It! to start a request and see the response here!