Sends a refund request to return a payment to a user. Read about the Refund feature to learn more about the process.
Note
You can call this API method in sandbox mode. To do this, pass the test payment data in the request. Refer to the instruction for more information about sandbox mode access and testing scenarios.
Notice
This API call does not contain the project_id
path parameter, so you need to use the API key that is valid in all the company’s projects to set up authorization.
OK (No error).
Refund request accepted.
Unauthorized (Access denied).
Transaction Not Found.
Unprocessable Entity (Invalid request parameters).
{- "description": "test refund request"
}
{- "message": "The request for a refund has been accepted. Xsolla CS will automatically send the customer an email with alternative refund options as the user's method does not support direct refunds."
}