This API is used to refund the donation amount of the given pledge id. The refund amount is processed from the payment gateway which is configured in the event from the payment processing page. This API can be accessed by event admin and super admin. We need to pass an authentication token to authorize the user and pass the event URL in path param.
Here are the possible error messages, which return if any condition gets failed or required data is missing for processing.
|Error Code||Error Description|
|4060206||Unable to refund the pledge.|
|4040004||Could not find the pledge.|
|4060205||Sorry, only paid pledge can be refunded.|