Xsolla-logo

请求退款

put/merchants/{merchant_id}/reports/transactions/{transaction_id}/refund

发送向用户退款的请求。请阅读退款功能了解详细过程。

Note

此API方法在高负载状态下不可用。请求数量过多的情况下可能会限流。如需了解此API方法的流量控制详情,请联系您的帐户经理。
Request
Security:
path Parameters
merchant_id
required
integer

商户ID。

transaction_id
required
integer

交易ID。

Request Body schema: application/json
description
required
string <= 4000 characters

退款原因。

email
string <= 100 characters

用户电子邮件。

Responses
200

OK.

204

No Content (无错误).

401

Unauthorized.

404

未找到交易。

422

Unprocessable Entity (请求参数无效) 。

Request samples
application/json
{
  • "description": "test refund request"
}
Response samples
application/json
{
  • "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."
}