Payengine:
Endpoint to create a cancelation a preauth transaction referencing the corresponding orderId and transactionId.
A cancel transaction can only be applied to a non expired preauth transaction that is in status SUCCESS. Partial cancelations are supported but the initialAmount cannot be higher than the amount that was authorized
More info: Cancel Request
Paygate:
The equivalent can be found here: REST API - Swagger#/Payments