Xsolla-logo

Request chargeback

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

Requests chargeback in the sandbox mode:

  • To access the sandbox mode, pass "mode":"sandbox" when you get the token.

  • Test payment has to be made in the sandbox mode in the same project that you use for testing.

  • Transaction status has to be other than refunded, cancelled.

  • Your role in Publisher Account has to be at least Financial manager. (You can find it in the Company settings > Users section.)

  • Refer to the instruction for more information about this testing scenario.

Note

Refer to the documentation for more information about other testing scenarios.

SecuritybasicAuth
Request
path Parameters
merchant_id
required
integer

Merchant ID.

project_id
required
integer

Project ID.

transaction_id
required
integer

Transaction ID.

Request Body schema: application/json
object or null

For the API call to work correctly, the request body must be empty.

Responses
204

No Content (No error).

404

Transaction Not Found.

422

Unprocessable Entity (Invalid request parameters).

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