Refunds
Cancel Refund
DELETE
/
api
/
refund
/
{refundId}
/
cancel
curl --request DELETE \
--url https://api.atoa.me/api/refund/{refundId}/cancel \
--header 'Authorization: Bearer <token>'
{
"status": 200,
"message": "Refund cancelled successfully",
"refundId": "4fcddd66-4425-4bf7-88cc-96463e279eb1"
}
This API allows you to cancel a refund that is still in a pending state and has not yet been processed. Once canceled, the refund will not be disbursed to the customer’s bank account.
You can only cancel refunds that are in a pending state and have not been processed yet.
Sandbox environment refund cancellations cannot be simulated.
Authorization
Bearer <token>
Request Body Schema
refundId
string
requiredThe unique identifier of the refund you want to cancel. This is the refundId that was returned when you initiated the refund from Initiate Refund.
Response
status
number
The HTTP status code indicating the result of the operation. A value of 200 indicates success.
message
string
A human-readable message describing the result of the operation.
refundId
string
The unique identifier of the refund that was cancelled.
curl --request DELETE \
--url https://api.atoa.me/api/refund/{refundId}/cancel \
--header 'Authorization: Bearer <token>'
{
"status": 200,
"message": "Refund cancelled successfully",
"refundId": "4fcddd66-4425-4bf7-88cc-96463e279eb1"
}