Xsolla-logo
  • 文档
  • 创建帐户

请求拒付

post/merchants/{merchant_id}/projects/{project_id}/payments/{transaction_id}/chargeback

在沙盒模式下请求拒付:

  • 要访问沙盒模式,请在获取令牌时传入"mode":"sandbox"

  • 需在用于测试的同一个项目中以沙盒模式进行测试支付。

  • 交易状态必须不能refundedcancelled

  • 您在发布商帐户中的角色必须至少为财务经理。(可在公司设置 > 用户部分找到。)

  • 请参阅说明了解此测试场景的更多信息。

注:

请参阅文档了解其他测试场景的更多信息。

SecuritybasicAuth
Request
path Parameters
merchant_id
required
integer

商户ID。

project_id
required
integer

项目ID。

transaction_id
required
integer

交易ID。

Request Body schema: application/json
object or null

要让API调用正常工作,请求正文必需为空。

Responses
204

No Content (无错误).

404

Transaction Not Found.

422

Unprocessable Entity (请求参数无效) 。

Request samples
application/json
{ }
Response samples
application/json
{
  • "message": "Not test payment. Chargeback is possible only for payments made in sandbox mode."
}